--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cc.templates
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.templates
@@ -0,0 +1,6 @@
+Template: eucalyptus/cluster-name
+Type: string
+_Description: Eucalyptus cluster name:
+ Enter a name for this cluster. The name should contain only ASCII letters,
+ digits, hyphens, and underscores. It will be shown to users as the name of
+ an availability zone.
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.links
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.links
@@ -0,0 +1,3 @@
+usr/lib/axis2/lib /etc/eucalyptus/axis2/lib
+usr/lib/axis2/modules /etc/eucalyptus/axis2/modules
+usr/lib/axis2/services /etc/eucalyptus/axis2/services
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.install
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.install
@@ -0,0 +1,2 @@
+debian/local/euca_find_cluster usr/bin
+/usr/lib/finish-install.d
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cloud.dirs
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-cloud.dirs
@@ -0,0 +1,2 @@
+/var/lib/eucalyptus/db
+/var/lib/eucalyptus/keys
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cloud.install
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-cloud.install
@@ -0,0 +1,8 @@
+/etc/init.d/eucalyptus-cloud
+/etc/init.d/eucalyptus-walrus
+/etc/eucalyptus/cloud.d
+/usr/lib/eucalyptus/liblvm2control.so
+/usr/sbin/eucalyptus-cloud
+/usr/share/eucalyptus/euca*1.6*.jar
+/var/lib/eucalyptus/modules
+/var/lib/eucalyptus/webapps
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.postinst
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.postinst
@@ -0,0 +1,66 @@
+#! /bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+. /lib/preseed/preseed.sh
+
+set_question () {
+ echo "$1 $2 $3 $4" >>"$logfile"
+ if ! db_fget "$2" seen; then
+ db_register debian-installer/dummy "$2"
+ db_subst "$2" ID "$2"
+ db_fget "$2" seen
+ fi
+ if [ "$RET" = false ]; then
+ db_set "$2" "$4"
+ db_fset "$2" seen true
+ fi
+}
+
+clusters="$(euca_find_cluster)"
+if [ "$clusters" ]; then
+ num_clusters="$(echo "$clusters" | wc -l)"
+ db_set eucalyptus/install-mode node
+ db_metaget eucalyptus/install-mode-default-node description
+else
+ num_clusters=0
+ db_set eucalyptus/install-mode cluster
+ db_metaget eucalyptus/install-mode-default-cluster description
+fi
+db_subst eucalyptus/install-mode DEFAULT_TEXT "$RET"
+db_input critical eucalyptus/install-mode || true
+db_go
+
+db_get eucalyptus/install-mode
+if [ "$RET" = node ]; then
+ set_question tasksel tasksel/first multiselect eucalyptus-node
+
+ if [ "$num_clusters" -gt 1 ]; then
+ NL='
+'
+ IFS_SAVE="$IFS"
+ choices=
+ IFS="$NL"
+ for line in $clusters; do
+ choices="${choices:+$choices, }$line"
+ done
+ IFS="$IFS_SAVE"
+ db_subst eucalyptus/cluster-address CHOICES "$choices"
+ db_input critical eucalyptus/cluster-address || true
+ db_go
+ db_get eucalyptus/cluster-address
+ cluster="$RET"
+ elif [ "$num_clusters" = 1 ]; then
+ cluster="$clusters"
+ else
+ cluster=
+ fi
+
+ if [ "$cluster" ]; then
+ preseed_location "http://$cluster/node-preseed"
+ fi
+else
+ set_question tasksel tasksel/first multiselect eucalyptus-simple-cluster
+fi
+
+exit 0
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-nc.postinst
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-nc.postinst
@@ -0,0 +1,45 @@
+#!/bin/sh
+
+if [ "$1" = "configure" ]
+then
+ if dpkg --compare-versions "$2" lt 1.5~bzr198-0ubuntu4
+ then
+ euca_conf -hypervisor kvm /etc/eucalyptus/eucalyptus.conf
+ fi
+
+ if dpkg --compare-versions "$2" lt 1.6~bzr588-0ubuntu5
+ then
+ euca_conf --instances /var/lib/eucalyptus/instances /etc/eucalyptus/eucalyptus.conf
+ fi
+
+ if dpkg --compare-versions "$2" lt 1.5~bzr203-0ubuntu2
+ then
+ adduser eucalyptus libvirtd
+ fi
+
+ EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:`
+ if ! [ -d "$EUCA_HOME/.ssh" ]
+ then
+ mkdir "$EUCA_HOME/.ssh"
+ fi
+ if ! [ -f "$EUCA_HOME/.ssh/authorized_keys" ]
+ then
+ touch "$EUCA_HOME/.ssh/authorized_keys"
+ fi
+
+ if dpkg --compare-versions "$2" lt 1.5~bzr212-0ubuntu2
+ then
+ if [ -d "$EUCA_HOME/.ssh" ]
+ then
+ chown eucalyptus "$EUCA_HOME/.ssh"
+ chmod 755 "$EUCA_HOME/.ssh"
+ fi
+ if [ -f "$EUCA_HOME/.ssh/authorized_keys" ]
+ then
+ chown eucalyptus "$EUCA_HOME/.ssh/authorized_keys"
+ chmod 600 "$EUCA_HOME/.ssh/authorized_keys"
+ fi
+ fi
+fi
+
+#DEBHELPER#
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-nc.dirs
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-nc.dirs
@@ -0,0 +1 @@
+var/lib/eucalyptus/instances
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cc.install
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.install
@@ -0,0 +1,3 @@
+/etc/init.d/eucalyptus-cc
+/usr/lib/axis2/services/EucalyptusCC
+/var/lib/eucalyptus/keys/nc-client-policy.xml
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.postrm
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+case "$1" in
+purge)
+ dpkg-statoverride --remove /usr/lib/eucalyptus/euca_rootwrap || true
+ ;;
+esac
--- eucalyptus-1.6~bzr588.orig/debian/axis2.xml
+++ eucalyptus-1.6~bzr588/debian/axis2.xml
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6060
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+ HTTP/1.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cloud.links
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-cloud.links
@@ -0,0 +1,77 @@
+/usr/share/java/axiom-api.jar /usr/share/eucalyptus/axiom-api.jar
+/usr/share/java/axiom-dom.jar /usr/share/eucalyptus/axiom-dom.jar
+/usr/share/java/axiom-impl.jar /usr/share/eucalyptus/axiom-impl.jar
+/usr/share/java/backport-util-concurrent.jar /usr/share/eucalyptus/backport-util-concurrent.jar
+/usr/share/java/bcprov.jar /usr/share/eucalyptus/bcprov.jar
+/usr/share/java/commons-fileupload.jar /usr/share/eucalyptus/commons-fileupload.jar
+/usr/share/java/commons-httpclient.jar /usr/share/eucalyptus/commons-httpclient.jar
+/usr/share/java/commons-lang.jar /usr/share/eucalyptus/commons-lang.jar
+/usr/share/java/commons-pool.jar /usr/share/eucalyptus/commons-pool.jar
+/usr/share/java/dnsjava.jar /usr/share/eucalyptus/dnsjava.jar
+/usr/share/java/drools-core.jar /usr/share/eucalyptus/drools-core.jar
+/usr/share/java/drools-compiler.jar /usr/share/eucalyptus/drools-compiler.jar
+/usr/share/java/gnumail.jar /usr/share/eucalyptus/gnumail.jar
+/usr/share/java/geronimo-jpa-3.0-spec.jar /usr/share/eucalyptus/geronimo-jpa-3.0-spec.jar
+/usr/share/java/google-collect.jar /usr/share/eucalyptus/google-collect.jar
+/usr/share/java/groovy.jar /usr/share/eucalyptus/groovy.jar
+/usr/share/java/gwt-servlet.jar /usr/share/eucalyptus/gwt-servlet.jar
+/usr/share/java/gwt-user.jar /usr/share/eucalyptus/gwt-user.jar
+/usr/share/java/jaxp-1.3.jar /usr/share/eucalyptus/jaxp-1.3.jar
+/usr/share/java/jetty6.jar /usr/share/eucalyptus/jetty6.jar
+/usr/share/java/jibx-run.jar /usr/share/eucalyptus/jibx-run.jar
+/usr/share/java/json-lib.jar /usr/share/eucalyptus/json-lib.jar
+/usr/share/java/junit.jar /usr/share/eucalyptus/junit.jar
+/usr/share/java/log4j-1.2.jar /usr/share/eucalyptus/log4j-1.2.jar
+/usr/share/java/netty.jar /usr/share/eucalyptus/netty.jar
+/usr/share/java/servlet-api-2.5.jar /usr/share/eucalyptus/servlet-api-2.5.jar
+/usr/share/java/wss4j.jar /usr/share/eucalyptus/wss4j.jar
+/usr/share/java/xalan2.jar /usr/share/eucalyptus/xalan2.jar
+/usr/share/java/xercesImpl.jar /usr/share/eucalyptus/xercesImpl.jar
+/usr/share/java/xml-security.jar /usr/share/eucalyptus/xml-security.jar
+/usr/share/java/antlr3-3.0.1+dfsg.jar /usr/share/eucalyptus/antlr3-3.0.1+dfsg.jar
+/usr/share/java/asm2.jar /usr/share/eucalyptus/asm2.jar
+/usr/share/java/bcel.jar /usr/share/eucalyptus/bcel.jar
+/usr/share/java/bsf.jar /usr/share/eucalyptus/bsf.jar
+/usr/share/java/c3p0.jar /usr/share/eucalyptus/c3p0.jar
+/usr/share/java/cglib.jar /usr/share/eucalyptus/cglib.jar
+/usr/share/java/commons-beanutils.jar /usr/share/eucalyptus/commons-beanutils.jar
+/usr/share/java/commons-cli.jar /usr/share/eucalyptus/commons-cli.jar
+/usr/share/java/commons-codec.jar /usr/share/eucalyptus/commons-codec.jar
+/usr/share/java/commons-collections3.jar /usr/share/eucalyptus/commons-collections3.jar
+/usr/share/java/commons-discovery.jar /usr/share/eucalyptus/commons-discovery.jar
+/usr/share/java/commons-io.jar /usr/share/eucalyptus/commons-io.jar
+/usr/share/java/commons-jxpath.jar /usr/share/eucalyptus/commons-jxpath.jar
+/usr/share/java/commons-logging.jar /usr/share/eucalyptus/commons-logging.jar
+/usr/share/java/commons-logging-adapters.jar /usr/share/eucalyptus/commons-logging-adapters.jar
+/usr/share/java/commons-logging-api.jar /usr/share/eucalyptus/commons-logging-api.jar
+/usr/share/java/dom4j.jar /usr/share/eucalyptus/dom4j.jar
+/usr/share/java/el-api-2.1.jar /usr/share/eucalyptus/el-api-2.1.jar
+/usr/share/java/ezmorph.jar /usr/share/eucalyptus/ezmorph.jar
+/usr/share/java/activation.jar /usr/share/eucalyptus/activation.jar
+/usr/share/java/geronimo-ejb-3.0-spec.jar /usr/share/eucalyptus/geronimo-ejb-3.0-spec.jar
+/usr/share/java/geronimo-j2ee-connector-1.5-spec.jar /usr/share/eucalyptus/geronimo-j2ee-connector-1.5-spec.jar
+/usr/share/java/geronimo-jms-1.1-spec.jar /usr/share/eucalyptus/geronimo-jms-1.1-spec.jar
+/usr/share/java/geronimo-jta-1.0.1b-spec.jar /usr/share/eucalyptus/geronimo-jta-1.0.1b-spec.jar
+/usr/share/java/geronimo-jacc-1.1-spec.jar /usr/share/eucalyptus/geronimo-jacc-1.1-spec.jar
+/usr/share/java/geronimo-interceptor-3.0-spec.jar /usr/share/eucalyptus/geronimo-interceptor-3.0-spec.jar
+/usr/share/java/hsqldb.jar /usr/share/eucalyptus/hsqldb.jar
+/usr/share/java/hsqldbutil.jar /usr/share/eucalyptus/hsqldbutil.jar
+/usr/share/java/janino.jar /usr/share/eucalyptus/janino.jar
+/usr/share/java/javassist.jar /usr/share/eucalyptus/javassist.jar
+/usr/share/java/jaxen.jar /usr/share/eucalyptus/jaxen.jar
+/usr/share/java/jetty6-sslengine.jar /usr/share/eucalyptus/jetty6-sslengine.jar
+/usr/share/java/jetty6-util.jar /usr/share/eucalyptus/jetty6-util.jar
+/usr/share/java/jibx-bind.jar /usr/share/eucalyptus/jibx-bind.jar
+/usr/share/java/jibx-extras.jar /usr/share/eucalyptus/jibx-extras.jar
+/usr/share/java/jug-asl.jar /usr/share/eucalyptus/jug-asl.jar
+/usr/share/java/excalibur-logkit.jar /usr/share/eucalyptus/excalibur-logkit.jar
+/usr/share/java/mvel.jar /usr/share/eucalyptus/mvel.jar
+/usr/share/java/regexp.jar /usr/share/eucalyptus/regexp.jar
+/usr/share/java/serializer.jar /usr/share/eucalyptus/serializer.jar
+/usr/share/java/slf4j-api.jar /usr/share/eucalyptus/slf4j-api.jar
+/usr/share/java/slf4j-log4j12.jar /usr/share/eucalyptus/slf4j-log4j12.jar
+/usr/share/java/jcl-over-slf4j.jar /usr/share/eucalyptus/jcl-over-slf4j.jar
+/usr/share/java/jul-to-slf4j.jar /usr/share/eucalyptus/jul-to-slf4j.jar
+/usr/share/java/wsdl4j.jar /usr/share/eucalyptus/wsdl4j.jar
+/usr/share/java/xom.jar /usr/share/eucalyptus/xom.jar
+/usr/share/java/xpp3.jar /usr/share/eucalyptus/xpp3.jar
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cc.postinst
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.postinst
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+. /usr/share/debconf/confmodule
+
+if [ "$1" = "configure" ]
+then
+ if [ -z "$2" ]
+ then
+ if [ ! -e /etc/eucalyptus/installer-cc.conf ]; then
+ db_get eucalyptus/cluster-name
+ if [ "$RET" ]; then
+ echo "CC_NAME=$RET" > /etc/eucalyptus/installer-cc.conf
+ fi
+ fi
+ fi
+
+ if dpkg --compare-versions "$2" lt 1.5~bzr212-0ubuntu2
+ then
+ EUCA_HOME=`getent passwd eucalyptus | cut -f6 -d:`
+ if ! [ -d "$EUCA_HOME/.ssh" ]
+ then
+ mkdir "$EUCA_HOME/.ssh"
+ chown eucalyptus "$EUCA_HOME/.ssh"
+ chmod 755 "$EUCA_HOME/.ssh"
+ fi
+ if ! [ -f "$EUCA_HOME/.ssh/id_rsa" ]
+ then
+ su eucalyptus -c "ssh-keygen -N '' -t rsa -f $EUCA_HOME/.ssh/id_rsa"
+ fi
+ fi
+
+ if dpkg --compare-versions "$2" lt 1.6~bzr588-0ubuntu5
+ then
+ for s in eucalyptus-cc eucalyptus-walrus eucalyptus-cloud; do
+ update-rc.d -f ${s} remove
+ done
+ fi
+fi
+
+
+#DEBHELPER#
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.finish-install
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.finish-install
@@ -0,0 +1,122 @@
+#! /bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_get eucalyptus/install-mode
+[ "$RET" = cluster ] || exit 0
+
+# Generate a preseed file from this installation suitable for publication by
+# the cluster controller. The list of questions we copy is largely drawn
+# from the installation guide.
+
+OUT=/target/etc/eucalyptus/node-preseed.conf
+mkdir -p "${OUT%/*}"
+>"$OUT"
+chroot /target chown eucalyptus:eucalyptus "${OUT#/target}" || true
+chmod 600 "$OUT"
+
+question () {
+ owner="$1"
+ question="$2"
+ qtype="$3"
+
+ if db_get "$2"; then
+ echo "$owner $question $qtype $RET" >>"$OUT"
+ fi
+}
+
+cat >>"$OUT" <>"$OUT"
+
+question d-i mirror/protocol string
+question d-i mirror/country string
+question d-i mirror/http/hostname string
+question d-i mirror/http/directory string
+question d-i mirror/http/proxy string
+question d-i mirror/http/mirror select
+question d-i mirror/suite string
+question d-i mirror/udeb/suite string
+question d-i mirror/udeb/components multiselect
+
+question d-i clock-setup/utc boolean
+question d-i time/zone string
+question d-i clock-setup/ntp boolean
+question d-i clock-setup/ntp-server string
+
+# TODO partitioning?
+
+question d-i base-installer/kernel/image string
+question d-i passwd/root-login boolean
+question d-i passwd/make-user boolean
+ROOTPW="$(grep '^root:' /target/etc/shadow 2>/dev/null | head -n1 | cut -d: -f2)"
+if [ -n "$ROOTPW" ] && [ "x$ROOTPW" != 'x*' ] && [ "x$ROOTPW" != 'x!' ]; then
+ echo "d-i passwd/root-password-crypted password $ROOTPW" >>"$OUT"
+fi
+ROOTPW=
+if db_get passwd/make-user && [ "$RET" = true ]; then
+ question d-i passwd/user-fullname string
+ question d-i passwd/username string
+ if db_get passwd/username && [ -n "$RET" ]; then
+ USERPW="$(grep "^$RET:" /target/etc/shadow 2>/dev/null | head -n1 | cut -d: -f2)"
+ if [ -n "$USERPW" ] && [ "x$USERPW" != 'x*' ] && [ "x$USERPW" != 'x!' ]; then
+ echo "d-i passwd/user-password-crypted password $USERPW" >>"$OUT"
+ fi
+ USERPW=
+ fi
+ question d-i passwd/user-uid string
+ question d-i user-setup/allow-password-weak boolean
+ question d-i passwd/user-default-groups string
+fi
+
+question d-i apt-setup/restricted boolean
+question d-i apt-setup/universe boolean
+question d-i apt-setup/backports boolean
+question d-i apt-setup/use_mirror boolean
+question d-i apt-setup/services-select multiselect
+question d-i apt-setup/security_host string
+question d-i apt-setup/security_path string
+# TODO apt-setup/local*/{repository,comment,source,key}
+question d-i debian-installer/allow_unauthenticated string
+
+# Tasks will be set differently during node installation.
+question d-i pkgsel/upgrade select
+question d-i pkgsel/language-packs multiselect
+question d-i pkgsel/update-policy select
+question popularity-contest popularity-contest/participate boolean
+question d-i pkgsel/updatedb boolean
+
+question d-i grub-installer/skip boolean
+question d-i lilo-installer/skip boolean
+question d-i grub-installer/only_debian boolean
+question d-i grub-installer/with_other_os boolean
+question d-i grub-installer/bootdev string
+# TODO grub password?
+
+question d-i finish-install/keep-consoles boolean
+question d-i finish-install/reboot_in_progress note
+question d-i cdrom-detect/eject boolean
+question d-i debian-installer/exit/halt boolean
+question d-i debian-installer/exit/poweroff boolean
+
+EUCA_HOME="$(chroot /target getent passwd eucalyptus | cut -f6 -d:)"
+if [ "$EUCA_HOME" ] && [ "${EUCA_HOME#/}" != "$EUCA_HOME" ] && \
+ [ -f "/target$EUCA_HOME/.ssh/id_rsa.pub" ]; then
+ PUBKEY="$(cat "/target$EUCA_HOME/.ssh/id_rsa.pub")"
+ echo "d-i preseed/late_command string chroot /target mkdir -m700 -p $EUCA_HOME/.ssh && echo '$PUBKEY' > /target$EUCA_HOME/.ssh/authorized_keys" >>"$OUT"
+fi
+
+exit 0
--- eucalyptus-1.6~bzr588.orig/debian/control
+++ eucalyptus-1.6~bzr588/debian/control
@@ -0,0 +1,174 @@
+Source: eucalyptus
+Section: admin
+Priority: extra
+Maintainer: Soren Hansen
+Build-Depends: cdbs, debhelper (>= 7), libaxis2c-dev, librampart-dev, default-jdk, ant, libvirt-dev, quilt, libcurl4-gnutls-dev, libssl-dev, ant-optional, zlib1g-dev, pkg-config, libavahi-core-dev, libdebian-installer-dev,
+ libbackport-util-concurrent-java,
+ libwsdl4j-java,
+ libhsqldb-java,
+ libaxiom-java,
+ libbcprov-java,
+ libcommons-fileupload-java,
+ libcommons-httpclient-java,
+ libcommons-lang-java,
+ libcommons-pool-java (>= 1.4),
+ libdnsjava-java,
+ libdrools-core-java,
+ libeucalyptus-commons-ext-java (>=0.4.1),
+ libgnumail-java,
+ libgeronimo-j2ee-connector-1.5-spec-java,
+ libgeronimo-jpa-3.0-spec-java,
+ libgoogle-collections-java,
+ groovy,
+ libgwt-user-java,
+ libjaxp1.3-java,
+ libjetty6-java,
+ libjibx-java (>= 1.1.6a),
+ libjson-java,
+ junit,
+ liblog4j1.2-java,
+ libnetty-java,
+ libservlet2.5-java,
+ libwss4j-java,
+ libxalan2-java,
+ libxerces2-java,
+ libxml-security-java (>= 1.4.2-1ubuntu1),
+ libgwt-dev-java,
+ libecj-java,
+ libantlr-java,
+ ant
+Standards-Version: 3.8.0
+Homepage: http://eucalyptus.cs.ucsb.edu/
+Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/eucalyptus/ubuntu
+
+Package: eucalyptus-common
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
+Description: Elastic Utility Computing Architecture - Common files
+ EUCALYPTUS is an open source service overlay that implements elastic
+ computing using existing resources. The goal of EUCALYPTUS is to allow
+ sites with existing clusters and server infrastructure to co-host an
+ elastic computing service that is interface-compatible with Amazon's EC2.
+ .
+ This package contains the common parts: you will need to install either
+ eucalyptus-cloud, eucalyptus-cc or eucalyptus-nc (or all of them).
+
+Package: eucalyptus-cloud
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, vblade, lvm2, dmsetup,
+ default-jre-headless | java5-runtime-headless,
+ libbackport-util-concurrent-java,
+ libaxiom-java,
+ libbcprov-java,
+ libcommons-fileupload-java,
+ libcommons-httpclient-java,
+ libcommons-lang-java,
+ libcommons-pool-java (>= 1.4),
+ libdnsjava-java,
+ libdrools-core-java,
+ libeucalyptus-commons-ext-java,
+ libgnumail-java,
+ libgeronimo-jpa-3.0-spec-java,
+ libgoogle-collections-java,
+ groovy,
+ libgwt-user-java,
+ libjaxp1.3-java,
+ libjetty6-java,
+ libjibx-java (>= 1.1.6a),
+ libjson-java,
+ junit,
+ liblog4j1.2-java,
+ libnetty-java,
+ libservlet2.5-java,
+ libwss4j-java,
+ libxalan2-java,
+ libxerces2-java,
+ libxml-security-java (>= 1.4.2-1ubuntu1),
+ antlr3,
+ libantlr-java,
+ libasm2-java,
+ libbcel-java,
+ libbsf-java,
+ libc3p0-java,
+ libcglib2.1-java,
+ libcommons-beanutils-java,
+ libcommons-cli-java,
+ libcommons-codec-java,
+ libcommons-collections3-java,
+ libcommons-discovery-java,
+ libcommons-io-java,
+ libcommons-jxpath-java,
+ libcommons-logging-java,
+ libdom4j-java,
+ libezmorph-java,
+ libgnujaf-java,
+ libgeronimo-ejb-3.0-spec-java,
+ libgeronimo-j2ee-connector-1.5-spec-java,
+ libgeronimo-jms-1.1-spec-java,
+ libgeronimo-jta-1.0.1b-spec-java,
+ libgeronimo-jacc-1.1-spec-java,
+ libgeronimo-interceptor-3.0-spec-java,
+ libhsqldb-java,
+ janino,
+ libjavassist-java,
+ libjaxen-java,
+ libjug-java,
+ libexcalibur-logkit-java,
+ libmvel-java,
+ libregexp-java,
+ libslf4j-java,
+ libwsdl4j-java,
+ libxom-java,
+ libxpp3-java
+Description: Elastic Utility Computing Architecture - Cloud controller
+ EUCALYPTUS is an open source service overlay that implements elastic
+ computing using existing resources. The goal of EUCALYPTUS is to allow
+ sites with existing clusters and server infrastructure to co-host an
+ elastic computing service that is interface-compatible with Amazon's EC2.
+ .
+ This package contains the cloud controller part of eucalyptus.
+
+Package: eucalyptus-cc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common, apache2, libapache2-mod-axis2c, eucalyptus-gl, avahi-utils
+Recommends: vlan, powerwake
+Description: Elastic Utility Computing Architecture - Cluster controller
+ EUCALYPTUS is an open source service overlay that implements elastic
+ computing using existing resources. The goal of EUCALYPTUS is to allow
+ sites with existing clusters and server infrastructure to co-host an
+ elastic computing service that is interface-compatible with Amazon's EC2.
+ .
+ This package contains the cluster controller part of eucalyptus.
+
+Package: eucalyptus-nc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common, apache2, libapache2-mod-axis2c, eucalyptus-gl, adduser
+Suggests: aoetools
+Recommends: libvirt-bin, kvm, vlan, bridge-utils, dhcp3-server, powernap
+Description: Elastic Utility Computing Architecture - Node controller
+ EUCALYPTUS is an open source service overlay that implements elastic
+ computing using existing resources. The goal of EUCALYPTUS is to allow
+ sites with existing clusters and server infrastructure to co-host an
+ elastic computing service that is interface-compatible with Amazon's EC2.
+ .
+ This package contains the node controller part of eucalyptus.
+
+Package: eucalyptus-gl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common
+Description: Elastic Utility Computing Architecture - Logging service
+ EUCALYPTUS is an open source service overlay that implements elastic
+ computing using existing resources. The goal of EUCALYPTUS is to allow
+ sites with existing clusters and server infrastructure to co-host an
+ elastic computing service that is interface-compatible with Amazon's EC2.
+ .
+ This package contains the internal log service of eucalyptus.
+
+Package: eucalyptus-udeb
+XC-Package-Type: udeb
+Section: debian-installer
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, configured-network
+# after netcfg
+XB-Installer-Menu-Item: 1850
+Description: Elastic Utility Computing Architecture - installer integration
--- eucalyptus-1.6~bzr588.orig/debian/copyright
+++ eucalyptus-1.6~bzr588/debian/copyright
@@ -0,0 +1,78 @@
+This package was debianized by Soren Hansen on
+Wed, 11 Feb 2009 02:11:00 +0200
+
+
+util/pwcb.c is from the Apache Rampart/C project and is covered by
+the following copyright and license:
+
+ Copyright 2003-2004 The Apache Software Foundation.
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+Everything else is covered by the following copyright and license:
+
+ Copyright (c) 2008, Regents of the University of California
+
+ Redistribution and use of this software in source and binary forms, with or
+ without modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE. USERS OF THIS SOFTWARE ACKNOWLEDGE THE POSSIBLE
+ PRESENCE OF OTHER OPEN SOURCE LICENSED MATERIAL, COPYRIGHTED MATERIAL OR
+ PATENTED MATERIAL IN THIS SOFTWARE, AND IF ANY SUCH MATERIAL IS DISCOVERED THE PARTY
+ DISCOVERING IT MAY INFORM DR. RICH WOLSKI AT THE UNIVERSITY OF CALIFORNIA,
+ SANTA BARBARA WHO WILL THEN ASCERTAIN THE MOST APPROPRIATE REMEDY, WHICH
+ IN THE REGENTS’ DISCRETION MAY INCLUDE, WITHOUT LIMITATION, REPLACEMENT
+ OF THE CODE SO IDENTIFIED, LICENSING OF THE CODE SO IDENTIFIED, OR WITHDRAWAL
+ OF THE CODE CAPABILITY TO THE EXTENT NEEDED TO COMPLY WITH ANY SUCH LICENSES
+ OR RIGHTS.
+
+On a Debian system, the license can be found at
+usr/share/common-licenses/BSD.
+
+The Debian packaging is copyright 2009, Soren Hansen and
+is licensed under the same license.
+
+debian/local/euca_find_cluster.c is derived from an example in Avahi, which
+is copyright:
+ Lennart Poettering
+ Trent Lloyd
+ Sebastien Estienne
+ Jakub Stachowski
+ James Willcox
+ Collabora Ltd.
+Modifications for eucalyptus-udeb are copyright 2009 Canonical Ltd. It is
+licensed under the GNU Lesser General Public License version 2.1 or later,
+which can be found at /usr/share/common-licenses/LGPL-2.1 on Debian systems.
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.dirs
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.dirs
@@ -0,0 +1 @@
+/var/lib/eucalyptus/keys
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.install
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.install
@@ -0,0 +1,14 @@
+/var/log
+/var/run
+/etc/eucalyptus/eucalyptus-version
+/etc/eucalyptus/vtunall.conf.template
+/usr/share/eucalyptus/add_key.pl
+/usr/share/eucalyptus/populate_arp.pl
+/usr/share/eucalyptus/euca_ipt
+/usr/lib/eucalyptus/euca_rootwrap
+/usr/sbin/euca_conf
+/usr/sbin/euca_sync_key
+/usr/sbin/euca_killall
+/etc/eucalyptus/httpd.conf
+/etc/eucalyptus/eucalyptus.conf
+debian/axis2.xml /etc/eucalyptus/axis2
--- eucalyptus-1.6~bzr588.orig/debian/build-jars
+++ eucalyptus-1.6~bzr588/debian/build-jars
@@ -0,0 +1,44 @@
+/usr/share/java/commons-collections3.jar
+/usr/share/java/geronimo-j2ee-connector-1.5-spec.jar
+/usr/share/java/commons-codec.jar
+/usr/share/java/jetty6-util.jar
+/usr/share/java/hsqldb.jar
+/usr/share/java/jetty6.jar
+/usr/share/java/jibx-bind.jar
+/usr/share/java/backport-util-concurrent.jar
+/usr/share/java/asm2.jar
+/usr/share/java/antlr.jar
+/usr/share/java/axiom-api.jar
+/usr/share/java/axiom-dom.jar
+/usr/share/java/axiom-impl.jar
+/usr/share/java/bcprov.jar
+/usr/share/java/commons-fileupload.jar
+/usr/share/java/commons-httpclient.jar
+/usr/share/java/commons-lang.jar
+/usr/share/java/commons-pool.jar
+/usr/share/java/commons-cli.jar
+/usr/share/java/dnsjava.jar
+/usr/share/java/drools-core.jar
+/usr/share/java/drools-compiler.jar
+/usr/share/eucalyptus/eucalyptus-commons-ext-0.4.jar
+/usr/share/java/gnumail.jar
+/usr/share/java/geronimo-jpa-3.0-spec.jar
+/usr/share/java/google-collect.jar
+/usr/share/java/groovy.jar
+/usr/share/java/gwt-servlet.jar
+/usr/share/java/gwt-user.jar
+/usr/share/java/jaxp-1.3.jar
+/usr/share/java/jetty6.jar
+/usr/share/java/jibx-run.jar
+/usr/share/java/json-lib.jar
+/usr/share/java/junit.jar
+/usr/share/java/log4j-1.2.jar
+/usr/share/java/netty.jar
+/usr/share/java/servlet-api-2.5.jar
+/usr/share/java/wss4j.jar
+/usr/share/java/xalan2.jar
+/usr/share/java/xercesImpl.jar
+/usr/share/java/xml-security.jar
+/usr/share/java/gwt-dev-linux.jar
+/usr/share/java/ecj.jar
+/usr/share/java/ant.jar
--- eucalyptus-1.6~bzr588.orig/debian/changelog
+++ eucalyptus-1.6~bzr588/debian/changelog
@@ -0,0 +1,375 @@
+eucalyptus (1.6~bzr588-0ubuntu7) karmic; urgency=low
+
+ * When running in d-i, cdebconf doesn't set the seen flag on questions
+ asked interactively (otherwise there are problems with going back and
+ revisiting earlier parts of the installer). As such we can't use it to
+ decide whether questions have been preseeded. Just preseed questions if
+ they existed at all during cluster installation (LP: #423424).
+
+ -- Colin Watson Thu, 03 Sep 2009 18:09:07 +0100
+
+eucalyptus (1.6~bzr588-0ubuntu6) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * Add Recommends: powerwake for eucalyptus-cc, and Recommends:
+ powernap for eucalyptus-nc.
+ * LSBify init script messages.
+
+ -- Soren Hansen Wed, 02 Sep 2009 16:45:39 -0500
+
+eucalyptus (1.6~bzr588-0ubuntu5) karmic; urgency=low
+
+ [ Soren Hansen ]
+ * Also include a /services symlink in our Axis2 repository.
+ * Add backport-util-concurrent runtime dependency.
+ * Set AXIS2C_HOME environment variable to point to our separate
+ repository, as the environment variable takes precedence over what
+ we put in the Apache configuration.
+ * Provide a default path for instances for the NC.
+ * For reasons unknown, Eucalyptus requires antlr.jar to be a regular
+ file rather than a symlink. We need to get to the bottom of this,
+ but for now, we will put a copy in the eucalyptus package at build
+ time.
+
+ [ Mathias Gug ]
+ * Fix eucalyptus init scripts ordering so that it starts after
+ avahi-daemon.
+ * Load apache2 alias module when generating httpd CC configuration.
+
+ -- Soren Hansen Wed, 02 Sep 2009 16:28:51 -0500
+
+eucalyptus (1.6~bzr588-0ubuntu4) karmic; urgency=low
+
+ * eucalyptus-commons-ext changed its jarname again. Adjust accordingly
+ to fix ftbfs.
+
+ -- Soren Hansen Wed, 02 Sep 2009 00:45:45 -0500
+
+eucalyptus (1.6~bzr588-0ubuntu3) karmic; urgency=low
+
+ * Install eucalyptus-nc's init script.
+ * Add extra 'dh_installinit --onlyscripts' calls to make sure update-
+ rc.d gets called correctly.
+
+ -- Soren Hansen Tue, 01 Sep 2009 23:39:01 -0500
+
+eucalyptus (1.6~bzr588-0ubuntu2) karmic; urgency=low
+
+ [ Soren Hansen ]
+ * Enable Appliance Store GUI and the Ubuntu theme. (Really fixes LP:
+ #420035)
+ * Fix Axis2 repository links.
+ * Always set the statoverride for euca_rootwrap on fresh installs.
+ This takes care of the case where there is already a eucalyptus user
+ on the system.
+ * Remove eucalyptus-{nc,cloud,cc}.prerm. They are not needed anymore.
+ * Make the java wrapper accept symlinks into its classpath.
+ * Add symlinks for all the jars needed at runtime.
+
+ [ Dustin Kirkland ]
+ * Merge Colin's changes to the init scripts. Salvaged from the
+ removed, old init scripts.
+
+ [ Colin Watson ]
+ * Run eucalyptus-udeb after netcfg (LP: #422876).
+ * Fix seen flag detection in finish-install script.
+
+ -- Soren Hansen Tue, 01 Sep 2009 18:14:04 -0500
+
+eucalyptus (1.6~bzr588-0ubuntu1) karmic; urgency=low
+
+ [ Colin Watson ]
+ * debian/eucalyptus-udeb.postinst:
+ - Fix order of db_set vs. db_metaget.
+ - Fix reversed sense of cluster detection.
+ - Ensure that tasksel/first preseeding will be propagated to /target.
+
+ [ Soren Hansen ]
+ * On upgrades, migrate statoverride for /usr/share/eucalyptus/euca_rootwrap
+ to /usr/lib/eucalyptus/euca_rootwrap, in case the admin overrode it.
+ * Make sure the configuration bits in eucalyptus-common's postinst
+ only get called during install and upgrade.
+ * Add axis2 "repository" for Eucalyptus. This is the only way to use a
+ separate Axis2/C configuration file for Eucalyptus.
+ * New upstream snapshot. (FFe: LP: #420035)
+
+ [ Dustin Kirkland ]
+ * Remove init scripts from source package that are no longer used.
+ * Make sure $EUID is set in init scripts.
+
+ -- Soren Hansen Mon, 31 Aug 2009 19:27:28 -0500
+
+eucalyptus (1.6~bzr515-0ubuntu4) karmic; urgency=low
+
+ * 04-axis2c-1.6.0-rampart-1.3.0.patch:
+ - Build against new Axis2/C+Rampart stack.
+
+ -- Soren Hansen Sat, 29 Aug 2009 00:03:02 +0000
+
+eucalyptus (1.6~bzr515-0ubuntu3) karmic; urgency=low
+
+ * debian/eucalyptus-udeb.postinst:
+ - Ignore errors from db_input, which usually just mean that the question
+ has been preseeded.
+ - Don't mark eucalyptus/install-mode as seen before asking it.
+ - Fix cluster detection.
+
+ -- Colin Watson Fri, 28 Aug 2009 17:52:20 +0100
+
+eucalyptus (1.6~bzr515-0ubuntu2) karmic; urgency=low
+
+ * Remove clc/modules/msgs/src/main/resources/msgs-binding.xml on clean
+ rather than clc/modules/msgs/resources/msgs-binding.xml (old location).
+ * Generate node preseed file on cluster installation.
+ * Fetch node preseed file from /node-preseed on the cluster rather than
+ /node.preseed.
+ * Alias /node-preseed on the cluster's web server to
+ /etc/eucalyptus/node-preseed.conf.
+ * Use new-style euca_conf options in eucalyptus-cc init script.
+
+ -- Colin Watson Thu, 27 Aug 2009 13:42:08 +0100
+
+eucalyptus (1.6~bzr515-0ubuntu1) karmic; urgency=low
+
+ * New upstream snapshot.
+
+ -- Soren Hansen Wed, 26 Aug 2009 23:17:49 +0000
+
+eucalyptus (1.6~bzr452-0ubuntu5) karmic; urgency=low
+
+ * Add a Vcs-Bzr field.
+ * Advertise running cluster and node controllers using Avahi.
+ * Add installer integration:
+ - eucalyptus-udeb asks whether you want to install a cluster or a node,
+ based on whether any cluster controllers are currently advertised on
+ the network.
+ - eucalyptus-cc asks for a cluster name on first installation, and drops
+ that into /etc/eucalyptus/installer-cc.conf. On startup, if the
+ cluster doesn't have its X.509 key yet, there's a cloud controller on
+ the local machine, and it knows the cluster name, it will
+ automatically register itself with the cloud controller.
+
+ -- Colin Watson Wed, 26 Aug 2009 12:25:14 +0100
+
+eucalyptus (1.6~bzr452-0ubuntu4) karmic; urgency=low
+
+ * Update and apply debian/patches/axis2c_home_init.diff.
+
+ -- Colin Watson Tue, 25 Aug 2009 09:37:35 +0100
+
+eucalyptus (1.6~bzr452-0ubuntu3) karmic; urgency=low
+
+ * Only install the /var/lib/eucalyptus/keys/ directory in
+ eucalyptus-cloud, not cc-client-policy.xml or nc-client-policy.xml;
+ thanks to Daniel Nurmi for confirmation (LP: #418350).
+
+ -- Colin Watson Tue, 25 Aug 2009 00:17:20 +0100
+
+eucalyptus (1.6~bzr452-0ubuntu2) karmic; urgency=low
+
+ * Newer version of libeucalyptus-commons-ext-java renamed the Eucalyptus jar.
+ Change accordingly in debian/build-jars and add a versioned dependency on
+ libeucalyptus-commons-ext-java.
+
+ -- Soren Hansen Mon, 24 Aug 2009 05:57:56 +0000
+
+eucalyptus (1.6~bzr452-0ubuntu1) karmic; urgency=low
+
+ * New upstream release
+
+ -- Soren Hansen Sun, 23 Aug 2009 23:18:20 +0000
+
+eucalyptus (1.5~bzr266-0ubuntu2) jaunty; urgency=low
+
+ * Ship missing populate_arp.pl. (LP: #358541)
+
+ -- Soren Hansen Thu, 09 Apr 2009 17:54:34 +0200
+
+eucalyptus (1.5~bzr266-0ubuntu1) jaunty; urgency=low
+
+ * New upstream snapshot. (LP: #356519)
+
+ -- Soren Hansen Tue, 07 Apr 2009 16:11:48 +0200
+
+eucalyptus (1.5~bzr265-0ubuntu1) jaunty; urgency=low
+
+ * New upstream snapshot. (LP: #354795, #354846, #352896, #354895,
+ #354852, #354098, #351650, #353301)
+
+ -- Soren Hansen Mon, 06 Apr 2009 11:27:50 +0200
+
+eucalyptus (1.5~bzr250-0ubuntu1) UNRELEASED; urgency=low
+
+ * New upstream snapshot. (LP: #347629, #345165)
+
+ -- Soren Hansen Wed, 01 Apr 2009 17:36:23 -0400
+
+eucalyptus (1.5~bzr241-0ubuntu1) jaunty; urgency=low
+
+ * New upstream snapshot.
+ + Make sure that no addresses outside the specified range are used.
+ (LP: #344330)
+ + Fix EBS volume detachment. (LP: #344568)
+ + Fix EBS volume attachment. (LP: #344613)
+ + Fix deletiong volumes marked as deleted. (LP: #344620)
+ + Add missing EBS flag in sample conffile. (LP: #345004)
+ + Allow more concurrent downloads from Walrus. (LP: #345034)
+ * Rely on libvirt's defaults for the emulator. (LP: #336852)
+
+ -- Soren Hansen Thu, 19 Mar 2009 00:33:07 +0100
+
+eucalyptus (1.5~bzr232-0ubuntu1) jaunty; urgency=low
+
+ * New upstream snapshot. (LP: #342024, #341965)
+ + Correctly set up swap and ephemeral storage for KVM VM's. (LP:
+ #332973)
+ + Use correct names for devices. (LP: #334665)
+ + Use compression for image transfers. (LP: #332971)
+ + Don't fail if first attempt at image download fails. (LP: #337027)
+ + Don't time out if image transfer takes more than one hour, but is
+ still on-going. (LP: #337870)
+ + Don't allow to delete in-use volumes. (LP: #342121)
+ + Correctly handle failure to attach volumes (LP: #342077)
+ + Handle unknown EBS block device names with KVM backend. (LP: #342076)
+ + Make euca_conf -delnode remove the node properly. (LP: #342055)
+ * Drop addnode-ssh-magic.patch. Adopted upstream.
+
+ -- Soren Hansen Tue, 17 Mar 2009 23:14:50 +0100
+
+eucalyptus (1.5~bzr212-0ubuntu4) UNRELEASED; urgency=low
+
+ * Also create /var/run/eucalyptus/net for the node controller.
+ (LP: #338764)
+ * Added bridge-utils and dhcp3-server as recommended packages for the
+ node controller. (LP: #338846)
+
+ -- Soren Hansen Mon, 16 Mar 2009 09:43:08 +0100
+
+eucalyptus (1.5~bzr212-0ubuntu3) jaunty; urgency=low
+
+ * Create /var/run/eucalyptus in all the init scripts.
+
+ -- Soren Hansen Tue, 10 Mar 2009 23:16:19 +0100
+
+eucalyptus (1.5~bzr212-0ubuntu2) jaunty; urgency=low
+
+ * Fix version check in eucalyptus-cc's postinst. (LP: #337477 (again))
+ * Patch euca_conf's addnode functionality to allow the use of sudo on
+ the node controller, and also fix up the path to authorized_keys.
+ * Have eucalyptus-nc's postinst script create the authorized_keys file
+ to make sure it gets the right ownership and mode.
+ * Give the eucalyptus user a shell, and remove the various hacks applied
+ to work around the lack of it.
+
+ -- Soren Hansen Tue, 10 Mar 2009 10:08:49 +0200
+
+eucalyptus (1.5~bzr212-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release (LP: #337042, #337514, #337539, #337541, #337884,
+ #338486)
+ * Weed out the unused/obsolete patches.
+
+ -- Soren Hansen Mon, 09 Mar 2009 18:38:59 +0100
+
+eucalyptus (1.5~bzr203-0ubuntu3) UNRELEASED; urgency=low
+
+ * Create SSH keypair for eucalyptus user on cluster controller. (LP: 337477)
+
+ -- Soren Hansen Mon, 09 Mar 2009 16:58:40 +0100
+
+eucalyptus (1.5~bzr203-0ubuntu2) jaunty; urgency=low
+
+ * Added missing dependencies:
+ + eucalyptus-cloud: vblade, lvm2, dmsetup
+ + eucalyptus-nc: adduser
+ * Split out the init script so that each component has its own (LP: #334804)
+ * Make eucalyptus user a member of libvirtd on the node controller. (LP: #337482)
+
+ -- Soren Hansen Wed, 04 Mar 2009 12:07:53 -0800
+
+eucalyptus (1.5~bzr203-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release. (LP: #334732, #336841)
+
+ -- Soren Hansen Tue, 03 Mar 2009 10:01:33 -0800
+
+eucalyptus (1.5~bzr198-0ubuntu5) UNRELEASED; urgency=low
+
+ * Fixed missing dependency on eucalytus-gl for eucalyptus-{nc,cc}.
+ * Disable JCE check. (LP: #334501)
+
+ -- Soren Hansen Tue, 03 Mar 2009 09:18:03 -0800
+
+eucalyptus (1.5~bzr198-0ubuntu4) jaunty; urgency=low
+
+ * Add libvirt-bin and kvm as Recommends for the node controller,
+ and make kvm the default hypervisor.
+
+ -- Soren Hansen Wed, 25 Feb 2009 14:07:45 +0100
+
+eucalyptus (1.5~bzr198-0ubuntu3) jaunty; urgency=low
+
+ * Fix spelling mistake in eucalyptus-common.postinst.
+ * Make sure we actually run the cloud controller by using a valid shell.
+ * Start the cluster controller even if no NODES are defined.
+
+ -- Soren Hansen Tue, 24 Feb 2009 16:49:06 +0100
+
+eucalyptus (1.5~bzr198-0ubuntu2) jaunty; urgency=low
+
+ * Make sure rootwrap binary gets its ownership and mode applied
+ immediately.
+ * Correctly set EUCA_USER from -common's postinst. (LP: #333341)
+ * Don't fail in the init script if NODES is empty. (LP: #333333)
+
+ -- Soren Hansen Mon, 23 Feb 2009 20:42:24 +0100
+
+eucalyptus (1.5~bzr198-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release
+
+ -- Soren Hansen Thu, 19 Feb 2009 01:00:04 +0200
+
+eucalyptus (1.5~bzr184-0ubuntu3) UNRELEASED; urgency=low
+
+ * Create eucalyptus user in eucalyptus-common.postinst.
+ * Fix ownership of /usr/share/eucalyptus/euca_rootwrap
+ * init_lsb_headers.diff:
+ - Add LSB headers to init script
+ * axis2c_home_init.diff:
+ - Set AXIS2_HOME in init script.
+ - Point Eucalyptus apache instance at the axis2 module.
+ * Add apache2-mpm and libapache2-mod-axis2c dependencies to node and
+ cluster controller.
+
+ -- Soren Hansen Thu, 19 Feb 2009 00:50:30 +0200
+
+eucalyptus (1.5~bzr184-0ubuntu2) jaunty; urgency=low
+
+ * initscript-eucalyptus-path.diff:
+ - Default to "/" for the EUCALYPTUS variable in init script.
+ * init-reload.diff:
+ - Add a "reload" option to the init script (does the same as restart).
+ * var_lib_eucalyptus.diff:
+ - Change all references to /var/eucalyptus to /var/lib/eucalyptus.
+ * Make all components depend on eucalyptus-common.
+ * Make eucalyptus-common postinst perform some initial configuration.
+ * Have eucalyptus-cloud depend on eucalyptus-javadeps instead of
+ shipping them itself.
+ * Make eucalyptus-{cc,nc,cloud}.postinst set up the individual services
+ automatically.
+
+ -- Soren Hansen Wed, 18 Feb 2009 18:25:36 +0200
+
+eucalyptus (1.5~bzr184-0ubuntu1) jaunty; urgency=low
+
+ * New upstream release
+
+ -- Soren Hansen Wed, 18 Feb 2009 09:46:17 +0200
+
+eucalyptus (1.5~bzr139-0ubuntu1) jaunty; urgency=low
+
+ * Initial release.
+
+ -- Soren Hansen Wed, 11 Feb 2009 02:45:39 +0200
+
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-nc.install
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-nc.install
@@ -0,0 +1,10 @@
+/etc/init.d/eucalyptus-nc
+/usr/lib/eucalyptus/euca_mountwrap
+/usr/share/eucalyptus/detach.pl
+/usr/share/eucalyptus/gen_libvirt_xml
+/usr/share/eucalyptus/gen_kvm_libvirt_xml
+/usr/share/eucalyptus/get_xen_info
+/usr/share/eucalyptus/get_sys_info
+/usr/share/eucalyptus/partition2disk
+/usr/sbin/euca_test_nc
+/usr/lib/axis2/services/EucalyptusNC
--- eucalyptus-1.6~bzr588.orig/debian/rules
+++ eucalyptus-1.6~bzr588/debian/rules
@@ -0,0 +1,48 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+EUCALYPTUS=/
+JAVA_HOME=/usr/lib/jvm/default-java
+AXIS2_CLASSPATH=$(shell echo /usr/share/eucalyptus/*.jar | tr \ :)
+
+export EUCALYPTUS
+export JAVA_HOME
+export AXIS2_CLASSPATH
+
+DEB_CONFIGURE_EXTRA_FLAGS := --with-axis2=/usr/share/eucalyptus --with-axis2c=/usr/lib/axis2 --prefix=$(EUCALYPTUS) --with-interface-theme=ubuntu --enable-appliance-store
+
+makebuilddir/eucalyptus-common:: setup-libs
+
+setup-libs:
+ cd clc && mkdir -p lib && \
+ for jar in `cat ../debian/build-jars`; do \
+ ln -fsv $$jar lib; done
+ touch setup-libs
+
+build/eucalyptus-udeb::
+ $(MAKE) -C debian/local
+
+clean::
+ $(MAKE) -C debian/local clean
+
+install/eucalyptus-common::
+ rm -f $(DEB_DESTDIR)/etc/init.d/eucalyptus
+
+install/eucalyptus-udeb::
+ install -D debian/eucalyptus-udeb.finish-install \
+ $(DEB_DESTDIR)/usr/lib/finish-install.d/30eucalyptus-udeb
+
+binary-install/eucalyptus-cc binary-install/eucalyptus-nc binary-install/eucalyptus-cloud::
+ dh_installinit -p$(cdbs_curpkg) --onlyscripts -- start 92 2 3 4 5 . stop 8 0 1 6 .
+
+binary-install/eucalyptus-cloud::
+ dh_installinit -p$(cdbs_curpkg) --onlyscripts --name eucalyptus-walrus -- start 92 2 3 4 5 . stop 8 0 1 6 .
+ mkdir -p debian/$(cdbs_curpkg)/usr/share/eucalyptus
+ cp /usr/share/java/antlr.jar debian/$(cdbs_curpkg)/usr/share/eucalyptus
+
+clean::
+ rm -rf clc/lib setup-libs clc/modules/msgs/src/main/resources/msgs-binding.xml clc/modules/storage-controller/lib/liblvm2control.so clc/modules/storage-manager/lib/libfsstorage.so clc/modules/www/webapps/root.war node/test_nc node/test config.status clc/modules/storage-controller/include/edu_ucsb_eucalyptus_storage_LVM2Manager.h clc/modules/storage-controller/include/edu_ucsb_eucalyptus_storage_AOEManager.h clc/modules/storage-manager/include/edu_ucsb_eucalyptus_storage_fs_FileSystemStorageManager.h cluster/cc-client-policy.xml node/nc-client-policy.xml util/config.h config.log Makedefs clc/modules/bootstrap/eucalyptus-bootstrap.o clc/modules/bootstrap/eucalyptus-opts.o clc/modules/bootstrap/eucalyptus-cloud tools/eucalyptus-nc tools/eucalyptus-java-ws tools/eucalyptus-cc tools/euca_conf util/eucalyptus-config.h
+
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-common.postinst
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-common.postinst
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+if [ "$1" = "configure" ]
+then
+ if ! getent passwd eucalyptus > /dev/null 2>&1
+ then
+ adduser --system --shell /bin/bash --home /var/lib/eucalyptus --group eucalyptus
+ fi
+
+ if [ -z "$2" ]
+ then
+ # Some initial configuration
+ /usr/sbin/euca_conf -d / /etc/eucalyptus/eucalyptus.conf
+ dpkg-statoverride --update --add root eucalyptus 04754 /usr/lib/eucalyptus/euca_rootwrap
+ fi
+
+ if dpkg --compare-versions "$2" lt-nl 1.6~bzr515-0ubuntu4
+ then
+ statoverride="$(dpkg-statoverride --list /usr/share/eucalyptus/euca_rootwrap || true)"
+ if [ -n "$statoverride" ]
+ then
+ if [ "$statoverride" = 'root eucalyptus 04750 /usr/share/eucalyptus/euca_rootwrap' ]
+ then
+ # The admin hasn't touched it, so we set it to the new standard value
+ dpkg-statoverride --update --add root eucalyptus 04754 /usr/lib/eucalyptus/euca_rootwrap
+ else
+ # The admin has altered it, so we migrate the statoverride to the new file
+ dpkg-statoverride --update --add $(echo $statoverride | sed -e 's!usr/share!usr/lib!')
+ fi
+ dpkg-statoverride --remove /usr/share/eucalyptus/euca_rootwrap
+ fi
+ fi
+
+ if dpkg --compare-versions "$2" lt 1.5~bzr212-0ubuntu2
+ then
+ chsh -s /bin/bash eucalyptus
+ fi
+
+ if dpkg --compare-versions "$2" lt 1.5~bzr198-0ubuntu3
+ then
+ euca_conf -user eucalyptus /etc/eucalyptus/eucalyptus.conf
+ fi
+
+ chown -R eucalyptus:eucalyptus /var/lib/eucalyptus/ /var/log/eucalyptus
+fi
+
+#DEBHELPER#
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-gl.install
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-gl.install
@@ -0,0 +1 @@
+/usr/lib/axis2/services/EucalyptusGL
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-udeb.templates
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-udeb.templates
@@ -0,0 +1,27 @@
+Template: debian-installer/eucalyptus-udeb/title
+Type: text
+# Main menu entry
+_Description: Select cloud installation mode
+
+Template: eucalyptus/install-mode
+Type: select
+Choices-C: cluster, node
+__Choices: Cluster, Node
+#flag:translate!:2
+_Description: Cloud installation mode:
+ ${DEFAULT_TEXT}
+
+Template: eucalyptus/install-mode-default-cluster
+Type: text
+_Description: No Eucalyptus cluster controller was found on your network, so this installation will default to installing a new cluster. Select "Node" instead if this is a mistake and you already have a cluster controller in place.
+
+Template: eucalyptus/install-mode-default-node
+Type: text
+_Description: There is already a Eucalyptus cluster controller on your network, so this installation will default to installing a new computing node. Select "Cluster" instead if this is a mistake and you already have a node controller in place.
+
+Template: eucalyptus/cluster-address
+Type: select
+Choices: ${CHOICES}
+_Description: Select cluster controller:
+ More than one cluster controller is available on your network. Select which
+ cluster you want this node to join.
--- eucalyptus-1.6~bzr588.orig/debian/eucalyptus-cc.config
+++ eucalyptus-1.6~bzr588/debian/eucalyptus-cc.config
@@ -0,0 +1,11 @@
+#! /bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+if [ "$1" = configure ] && [ -z "$2" ]; then
+ db_input high eucalyptus/cluster-name || true
+ db_go || true
+fi
+
+exit 0
--- eucalyptus-1.6~bzr588.orig/debian/compat
+++ eucalyptus-1.6~bzr588/debian/compat
@@ -0,0 +1 @@
+7
--- eucalyptus-1.6~bzr588.orig/debian/patches/05-axis-alternative-repository.patch
+++ eucalyptus-1.6~bzr588/debian/patches/05-axis-alternative-repository.patch
@@ -0,0 +1,14 @@
+=== modified file 'tools/httpd.conf'
+Index: ubuntu/tools/httpd.conf
+===================================================================
+--- ubuntu.orig/tools/httpd.conf 2009-08-31 19:15:35.141022274 -0500
++++ ubuntu/tools/httpd.conf 2009-08-31 19:17:06.777042219 -0500
+@@ -48,7 +48,7 @@
+
+
+ LoadModule axis2_module /usr/lib/apache2/modules/libmod_axis2.so
+-Axis2RepoPath AXIS2C_HOME
++Axis2RepoPath /etc/eucalyptus/axis2
+ Axis2LogFile EUCALYPTUS/var/log/eucalyptus/axis2c.log
+ Axis2MaxLogFileSize 128
+ Axis2LogLevel error
--- eucalyptus-1.6~bzr588.orig/debian/patches/series
+++ eucalyptus-1.6~bzr588/debian/patches/series
@@ -0,0 +1,7 @@
+01-wsdl-stubs.patch
+02-rely-on-libvirt-defaults.patch
+03-DESTDIR.patch
+axis2c_home_init.diff
+04-axis2c-1.6.0-rampart-1.3.0.patch
+05-axis-alternative-repository.patch
+06-symlinked-jars.patch
--- eucalyptus-1.6~bzr588.orig/debian/patches/03-DESTDIR.patch
+++ eucalyptus-1.6~bzr588/debian/patches/03-DESTDIR.patch
@@ -0,0 +1,297 @@
+Index: ubuntu/Makefile
+===================================================================
+--- ubuntu.orig/Makefile 2009-08-31 19:12:35.625022337 -0500
++++ ubuntu/Makefile 2009-08-31 19:15:30.468020621 -0500
+@@ -41,17 +41,17 @@
+ (cd $$subdir && $(MAKE) $@) || exit $$? ; done
+
+ install: deploy
+- @$(INSTALL) -d $(prefix)
+- @$(INSTALL) -d $(etcdir)/eucalyptus/cloud.d
+- @$(INSTALL) -m 0644 VERSION $(etcdir)/eucalyptus/eucalyptus-version
+- @$(INSTALL) -d $(etcdir)/init.d
+- @$(INSTALL) -d $(vardir)/run/eucalyptus/net
+- @$(INSTALL) -d $(vardir)/lib/eucalyptus/keys
+- @$(INSTALL) -d $(vardir)/lib/eucalyptus/CC
+- @$(INSTALL) -d $(vardir)/log/eucalyptus
+- @$(INSTALL) -d $(datarootdir)/eucalyptus
+- @$(INSTALL) -d $(usrdir)/sbin
+- @$(INSTALL) -d $(usrdir)/lib/eucalyptus
++ @$(INSTALL) -d $(DESTDIR)$(prefix)
++ @$(INSTALL) -d $(DESTDIR)$(etcdir)/eucalyptus/cloud.d
++ @$(INSTALL) -m 0644 VERSION $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus-version
++ @$(INSTALL) -d $(DESTDIR)$(etcdir)/init.d
++ @$(INSTALL) -d $(DESTDIR)$(vardir)/run/eucalyptus/net
++ @$(INSTALL) -d $(DESTDIR)$(vardir)/lib/eucalyptus/keys
++ @$(INSTALL) -d $(DESTDIR)$(vardir)/lib/eucalyptus/CC
++ @$(INSTALL) -d $(DESTDIR)$(vardir)/log/eucalyptus
++ @$(INSTALL) -d $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -d $(DESTDIR)$(usrdir)/sbin
++ @$(INSTALL) -d $(DESTDIR)$(usrdir)/lib/eucalyptus
+ @for subdir in $(SUBDIRS); do \
+ (cd $$subdir && $(MAKE) $@) || exit $$? ; done
+
+Index: ubuntu/clc/modules/bootstrap/Makefile
+===================================================================
+--- ubuntu.orig/clc/modules/bootstrap/Makefile 2009-08-31 15:49:53.585022527 -0500
++++ ubuntu/clc/modules/bootstrap/Makefile 2009-08-31 19:15:30.468020621 -0500
+@@ -45,8 +45,8 @@
+ gengetopt --input=arguments.ggo --file-name=eucalyptus-opts --func-name=arguments --arg-struct-name=eucalyptus_opts
+
+ install:
+- $(INSTALL) -d $(sbindir)
+- $(INSTALL) -m 0755 eucalyptus-cloud $(sbindir)/eucalyptus-cloud
++ $(INSTALL) -d $(DESTDIR)$(sbindir)
++ $(INSTALL) -m 0755 eucalyptus-cloud $(DESTDIR)$(sbindir)/eucalyptus-cloud
+
+ clean:
+ rm -f $(OBJS) eucalyptus-cloud
+Index: ubuntu/clc/modules/storage-controller/native/Makefile
+===================================================================
+--- ubuntu.orig/clc/modules/storage-controller/native/Makefile 2009-08-31 15:49:54.613022244 -0500
++++ ubuntu/clc/modules/storage-controller/native/Makefile 2009-08-31 19:15:30.468020621 -0500
+@@ -17,5 +17,5 @@
+ rm -f $(LVM2_SO) *.o *~* *#*
+
+ install:
+- mkdir -p $(EUCALYPTUS)/usr/lib/eucalyptus/
+- cp $(LIBDIR)/$(LVM2_SO) $(EUCALYPTUS)/usr/lib/eucalyptus/
++ mkdir -p $(DESTDIR)$(EUCALYPTUS)/usr/lib/eucalyptus/
++ cp $(LIBDIR)/$(LVM2_SO) $(DESTDIR)$(EUCALYPTUS)/usr/lib/eucalyptus/
+Index: ubuntu/cluster/Makefile
+===================================================================
+--- ubuntu.orig/cluster/Makefile 2009-08-31 15:49:54.253024663 -0500
++++ ubuntu/cluster/Makefile 2009-08-31 19:15:30.472022736 -0500
+@@ -59,20 +59,20 @@
+ $(CC) -o $(CLIENTKILLALL) $(CFLAGS) $(INCLUDES) $(CC_LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c cc-client-marshal-adb.c -DMODE=0
+
+ deploy:
+- $(INSTALL) -d $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+- $(INSTALL) $(SERVICE_SO) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+- $(INSTALL) $(CCWSDL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) $(SERVICE_SO) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) $(CCWSDL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+ #no ws-sec
+- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml
++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml
+
+ #ws-sec
+- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml
++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(CCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml
+ cat ../tools/client-policy-template.xml | sed "s:EUCALYPTUS_HOME:$(EUCALYPTUS):g" | sed "s:AXIS2C_HOME:$(AXIS2C_HOME):g" | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > cc-client-policy.xml
+ ## cp ../tools/*.pem $(EUCALYPTUS)/var/lib/eucalyptus/keys/
+ # cp cc-client-policy.xml $(EUCALYPTUS)/var/lib/eucalyptus/keys/
+ # chmod -R 0600 $(EUCALYPTUS)/var/lib/eucalyptus/keys/*
+ # ws
+- $(INSTALL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
++ $(INSTALL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
+ # no ws
+ # cp $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
+
+@@ -85,5 +85,5 @@
+ rm -f generated/stubs
+
+ install: deploy
+- @$(INSTALL) -m 0555 $(CLIENTKILLALL) $(sbindir)
+- @$(INSTALL) cc-client-policy.xml $(vardir)/lib/eucalyptus/keys/
++ @$(INSTALL) -m 0555 $(CLIENTKILLALL) $(DESTDIR)$(sbindir)
++ @$(INSTALL) cc-client-policy.xml $(DESTDIR)$(vardir)/lib/eucalyptus/keys/
+Index: ubuntu/gatherlog/Makefile
+===================================================================
+--- ubuntu.orig/gatherlog/Makefile 2009-08-31 15:49:53.916024434 -0500
++++ ubuntu/gatherlog/Makefile 2009-08-31 19:15:30.472022736 -0500
+@@ -46,11 +46,11 @@
+ $(CC) -o $(CLIENT) $(CFLAGS) $(INCLUDES) $(LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c gl-client-marshal-adb.c -DMODE=1
+
+ deploy:
+- $(INSTALL) -d $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+- $(INSTALL) $(SERVICE_SO) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+- $(INSTALL) $(GLWSDL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) $(SERVICE_SO) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) $(GLWSDL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+ #no ws-sec
+- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(GLWSDLNAME) > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml
++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(GLWSDLNAME) > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml
+
+ #ws-sec
+ # cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(GLWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cloud-cert.pem:g" | sed "s:CLIENT-KEY:cloud-pk.pem:g" | sed "s:SERVER-CERT:cluster-cert.pem:g" | sed "s:SERVER-KEY:cluster-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml
+@@ -61,7 +61,7 @@
+ # ws
+ # cp $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
+ # no ws
+- $(INSTALL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
++ $(INSTALL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
+
+ clean:
+ rm -f $(SERVICE_SO) *.o $(CLIENT) *~* *#*
+Index: ubuntu/node/Makefile
+===================================================================
+--- ubuntu.orig/node/Makefile 2009-08-31 15:49:54.105023183 -0500
++++ ubuntu/node/Makefile 2009-08-31 19:15:30.472022736 -0500
+@@ -79,19 +79,19 @@
+ $(CC) $(CFLAGS) $(INCLUDES) $(NC_LIBS) -o test_nc test_nc.c ../util/misc.o
+
+ deploy:
+- $(INSTALL) -d $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+- $(INSTALL) $(SERVICE_SO) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
++ $(INSTALL) $(SERVICE_SO) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+
+ # no ws-sec
+- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml
++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml
+ # ws-sec
+- cat generated/services.xml | ../tools/add_wsdllocation.pl $(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml
++ cat generated/services.xml | ../tools/add_wsdllocation.pl $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/$(NCWSDLNAME) | ../tools/add_service_policy.pl ../tools/service-policy-template.xml | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml
+ cat ../tools/client-policy-template.xml | sed "s:EUCALYPTUS_HOME:$(EUCALYPTUS):g" | sed "s:AXIS2C_HOME:$(AXIS2C_HOME):g" | sed "s:CLIENT-CERT:cluster-cert.pem:g" | sed "s:CLIENT-KEY:cluster-pk.pem:g" | sed "s:SERVER-CERT:node-cert.pem:g" | sed "s:SERVER-KEY:node-pk.pem:g" | sed "s:CLIENT-USERNAME:eucalyptus:g" > nc-client-policy.xml
+ # cp nc-client-policy.xml $(EUCALYPTUS)/var/lib/eucalyptus/keys/
+ ## cp ../tools/*.pem $(EUCALYPTUS)/var/lib/eucalyptus/keys/
+ # chmod -R 0600 $(EUCALYPTUS)/var/lib/eucalyptus/keys/*
+ # ws
+- $(INSTALL) $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
++ $(INSTALL) $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_WS.xml $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
+ # no ws
+ # cp $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services_noWS.xml $(AXIS2C_SERVICES)/$(SERVICE_NAME)/services.xml
+
+@@ -105,5 +105,5 @@
+ rm -rf $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#*
+
+ install: deploy
+- $(INSTALL) nc-client-policy.xml $(vardir)/lib/eucalyptus/keys/
+- $(INSTALL) -m 0755 test_nc $(sbindir)/euca_test_nc
++ $(INSTALL) nc-client-policy.xml $(DESTDIR)$(vardir)/lib/eucalyptus/keys/
++ $(INSTALL) -m 0755 test_nc $(DESTDIR)$(sbindir)/euca_test_nc
+Index: ubuntu/tools/Makefile
+===================================================================
+--- ubuntu.orig/tools/Makefile 2009-08-31 15:49:55.021043236 -0500
++++ ubuntu/tools/Makefile 2009-08-31 19:15:30.472022736 -0500
+@@ -34,30 +34,30 @@
+ @rm -rf eucalyptus eucalyptus-cloud eucalyptus-walrus eucalyptus-sc
+
+ install: build
+- @if test -e /etc/init.d/eucalyptus ; then \
+- mv /etc/init.d/eucalyptus /etc/init.d/eucalyptus.old ; \
+- echo "Moving away old init.d script"; fi
+- @if test -e $(etcdir)/init.d/eucalyptus ; then \
+- mv $(etcdir)/init.d/eucalyptus $(etcdir)/init.d/eucalyptus.old ; fi
+- @$(INSTALL) -m 755 eucalyptus-cloud $(etcdir)/init.d
+- @$(INSTALL) -m 755 eucalyptus-walrus $(etcdir)/init.d
+- @$(INSTALL) -m 755 eucalyptus-sc $(etcdir)/init.d
+- @$(INSTALL) -m 755 eucalyptus-nc $(etcdir)/init.d
+- @$(INSTALL) -m 755 eucalyptus-cc $(etcdir)/init.d
+- @$(INSTALL) -m 644 httpd.conf $(etcdir)/eucalyptus
+- @if test -e $(etcdir)/eucalyptus/eucalyptus.conf ; then \
+- cp $(etcdir)/eucalyptus/eucalyptus.conf $(etcdir)/eucalyptus/eucalyptus.conf.old ; fi
+- @$(INSTALL) -m 644 eucalyptus.conf $(etcdir)/eucalyptus
+- @$(INSTALL) -m 644 vtunall.conf.template $(etcdir)/eucalyptus
+- @$(INSTALL) -m 755 add_key.pl $(datarootdir)/eucalyptus
+- @$(INSTALL) -m 755 gen_libvirt_xml $(datarootdir)/eucalyptus
+- @$(INSTALL) -m 755 gen_kvm_libvirt_xml $(datarootdir)/eucalyptus
+- @$(INSTALL) -m 755 detach.pl $(datarootdir)/eucalyptus
+- @$(INSTALL) -m 755 partition2disk $(datarootdir)/eucalyptus
+- @$(INSTALL) -m 755 get_xen_info $(datarootdir)/eucalyptus/get_xen_info
+- @$(INSTALL) -m 755 get_sys_info $(datarootdir)/eucalyptus/get_sys_info
+- @$(INSTALL) -m 755 euca_ipt $(datarootdir)/eucalyptus
+- @$(INSTALL) -m 755 populate_arp.pl $(datarootdir)/eucalyptus
+- @$(INSTALL) -m 755 euca_conf $(sbindir)
+- @$(INSTALL) -m 755 euca_sync_key $(sbindir)
++# @if test -e /etc/init.d/eucalyptus ; then \
++# mv /etc/init.d/eucalyptus /etc/init.d/eucalyptus.old ; \
++# echo "Moving away old init.d script"; fi
++# @if test -e $(etcdir)/init.d/eucalyptus ; then \
++# mv $(etcdir)/init.d/eucalyptus $(etcdir)/init.d/eucalyptus.old ; fi
++ @$(INSTALL) -m 755 eucalyptus-cloud $(DESTDIR)$(etcdir)/init.d
++ @$(INSTALL) -m 755 eucalyptus-walrus $(DESTDIR)$(etcdir)/init.d
++ @$(INSTALL) -m 755 eucalyptus-sc $(DESTDIR)$(etcdir)/init.d
++ @$(INSTALL) -m 755 eucalyptus-nc $(DESTDIR)$(etcdir)/init.d
++ @$(INSTALL) -m 755 eucalyptus-cc $(DESTDIR)$(etcdir)/init.d
++ @$(INSTALL) -m 644 httpd.conf $(DESTDIR)$(etcdir)/eucalyptus
++ @if test -e $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus.conf ; then \
++ cp $(etcdir)/eucalyptus/eucalyptus.conf $(DESTDIR)$(etcdir)/eucalyptus/eucalyptus.conf.old ; fi
++ @$(INSTALL) -m 644 eucalyptus.conf $(DESTDIR)$(etcdir)/eucalyptus
++ @$(INSTALL) -m 644 vtunall.conf.template $(DESTDIR)$(etcdir)/eucalyptus
++ @$(INSTALL) -m 755 add_key.pl $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -m 755 gen_libvirt_xml $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -m 755 gen_kvm_libvirt_xml $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -m 755 detach.pl $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -m 755 partition2disk $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -m 755 get_xen_info $(DESTDIR)$(datarootdir)/eucalyptus/get_xen_info
++ @$(INSTALL) -m 755 get_sys_info $(DESTDIR)$(datarootdir)/eucalyptus/get_sys_info
++ @$(INSTALL) -m 755 euca_ipt $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -m 755 populate_arp.pl $(DESTDIR)$(datarootdir)/eucalyptus
++ @$(INSTALL) -m 755 euca_conf $(DESTDIR)$(sbindir)
++ @$(INSTALL) -m 755 euca_sync_key $(DESTDIR)$(sbindir)
+
+Index: ubuntu/util/Makefile
+===================================================================
+--- ubuntu.orig/util/Makefile 2009-08-31 15:49:54.848026195 -0500
++++ ubuntu/util/Makefile 2009-08-31 19:15:30.472022736 -0500
+@@ -27,8 +27,8 @@
+ rm -rf config.h
+
+ install:
+- @$(INSTALL) -m 0755 euca_rootwrap $(usrdir)/lib/eucalyptus/
+- @$(INSTALL) -m 0755 euca_mountwrap $(usrdir)/lib/eucalyptus/
++ @$(INSTALL) -m 0755 euca_rootwrap $(DESTDIR)$(usrdir)/lib/eucalyptus/
++ @$(INSTALL) -m 0755 euca_mountwrap $(DESTDIR)$(usrdir)/lib/eucalyptus/
+
+ deploy:
+
+Index: ubuntu/clc/build.xml
+===================================================================
+--- ubuntu.orig/clc/build.xml 2009-08-31 19:12:35.689021462 -0500
++++ ubuntu/clc/build.xml 2009-08-31 19:15:30.472022736 -0500
+@@ -163,27 +163,27 @@
+
+
+
+-
+-
++
++
+
+
+
+
+-
++
+
+
+
+
+-
+-
+-
+-
+-
++
++
++
++
++
+
+-
+-
+-
++
++
++
+
+
+
+Index: ubuntu/clc/modules/www/build.xml
+===================================================================
+--- ubuntu.orig/clc/modules/www/build.xml 2009-08-31 19:12:38.869021793 -0500
++++ ubuntu/clc/modules/www/build.xml 2009-08-31 19:15:30.472022736 -0500
+@@ -135,7 +135,7 @@
+
+
+
+-
++
+
+
+
--- eucalyptus-1.6~bzr588.orig/debian/patches/06-symlinked-jars.patch
+++ eucalyptus-1.6~bzr588/debian/patches/06-symlinked-jars.patch
@@ -0,0 +1,26 @@
+=== modified file 'clc/modules/bootstrap/eucalyptus-bootstrap.c'
+Index: ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.c
+===================================================================
+--- ubuntu.orig/clc/modules/bootstrap/eucalyptus-bootstrap.c 2009-09-01 17:47:37.990533228 -0500
++++ ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.c 2009-09-01 18:04:39.966534018 -0500
+@@ -478,7 +478,7 @@
+ if (strcmp(dir_ent->d_name,".") != 0 && strcmp(dir_ent->d_name,"..") != 0 && strcmp(dir_ent->d_name,"openjdk-crypto.jar") != 0 && strstr(dir_ent->d_name,"disabled") == NULL) {
+ char jar[256];
+ snprintf(jar,255,"%s/%s",lib_dir,dir_ent->d_name);
+- if( CHECK_ISREG(jar) ) wb += snprintf(jar_list+wb,JAVA_PATH_LEN-wb,":%s",jar);
++ if( CHECK_ISREG(jar) || CHECK_ISLNK(jar) ) wb += snprintf(jar_list+wb,JAVA_PATH_LEN-wb,":%s",jar);
+ }
+ }
+ return jar_list;
+Index: ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.h
+===================================================================
+--- ubuntu.orig/clc/modules/bootstrap/eucalyptus-bootstrap.h 2009-09-01 17:47:37.990533228 -0500
++++ ubuntu/clc/modules/bootstrap/eucalyptus-bootstrap.h 2009-09-01 18:03:23.622534422 -0500
+@@ -140,6 +140,7 @@
+ static bootstrapper_t bootstrap;
+ #define CHECK_ISDIR(path) (( path == NULL || ( stat( path, &home ) != 0 ) ) ? 0 : S_ISDIR(home.st_mode) )
+ #define CHECK_ISREG(path) (( path == NULL || ( stat( path, &home ) != 0 ) ) ? 0 : S_ISREG(home.st_mode) )
++#define CHECK_ISLNK(path) (( path == NULL || ( stat( path, &home ) != 0 ) ) ? 0 : S_ISLNK(home.st_mode) )
+ int main( int argc, char *argv[ ] );
+ void main_reload( void );
+ void main_shutdown( void );
--- eucalyptus-1.6~bzr588.orig/debian/patches/04-axis2c-1.6.0-rampart-1.3.0.patch
+++ eucalyptus-1.6~bzr588/debian/patches/04-axis2c-1.6.0-rampart-1.3.0.patch
@@ -0,0 +1,796 @@
+Index: ubuntu/configure
+===================================================================
+--- ubuntu.orig/configure 2009-08-31 19:12:35.653021634 -0500
++++ ubuntu/configure 2009-08-31 19:15:45.536023604 -0500
+@@ -607,6 +607,9 @@
+ TOP
+ EUCA_VERSION
+ LIBOBJS
++AXIS2C_LIBS
++AXIS2C_CFLAGS
++PKG_CONFIG
+ JAVA
+ ANT
+ SET_MAKE
+@@ -681,7 +684,10 @@
+ LDFLAGS
+ LIBS
+ CPPFLAGS
+-CPP'
++CPP
++PKG_CONFIG
++AXIS2C_CFLAGS
++AXIS2C_LIBS'
+
+
+ # Initialize some variables set by options.
+@@ -1313,6 +1319,10 @@
+ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if
+ you have headers in a nonstandard directory
+ CPP C preprocessor
++ PKG_CONFIG path to pkg-config utility
++ AXIS2C_CFLAGS
++ C compiler flags for AXIS2C, overriding pkg-config
++ AXIS2C_LIBS linker flags for AXIS2C, overriding pkg-config
+
+ Use these variables to override the choices made by `configure' or to help
+ it to find libraries and programs with nonstandard names/locations.
+@@ -4452,340 +4462,202 @@
+
+ # Checks for libraries.
+ # FIXME: Replace `main' with a function in the library
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_axiom" >&5
+-$as_echo_n "checking for main in -laxis2_axiom... " >&6; }
+-if test "${ac_cv_lib_axis2_axiom_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laxis2_axiom $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_axis2_axiom_main=yes
+-else
+- ac_cv_lib_axis2_axiom_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_axiom_main" >&5
+-$as_echo "$ac_cv_lib_axis2_axiom_main" >&6; }
+-if test "x$ac_cv_lib_axis2_axiom_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBAXIS2_AXIOM 1
+-_ACEOF
+
+- LIBS="-laxis2_axiom $LIBS"
+-
+-else
+- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
+-fi
+
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_engine" >&5
+-$as_echo_n "checking for main in -laxis2_engine... " >&6; }
+-if test "${ac_cv_lib_axis2_engine_main+set}" = set; then :
++if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
++ if test -n "$ac_tool_prefix"; then
++ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
++set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laxis2_engine $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
++ case $PKG_CONFIG in
++ [\\/]* | ?:[\\/]*)
++ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
++ ;;
++ *)
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++ done
++IFS=$as_save_IFS
+
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_axis2_engine_main=yes
+-else
+- ac_cv_lib_axis2_engine_main=no
++ ;;
++esac
+ fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++PKG_CONFIG=$ac_cv_path_PKG_CONFIG
++if test -n "$PKG_CONFIG"; then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
++$as_echo "$PKG_CONFIG" >&6; }
++else
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
+ fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_engine_main" >&5
+-$as_echo "$ac_cv_lib_axis2_engine_main" >&6; }
+-if test "x$ac_cv_lib_axis2_engine_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBAXIS2_ENGINE 1
+-_ACEOF
+
+- LIBS="-laxis2_engine $LIBS"
+
+-else
+- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
+ fi
+-
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_http_common" >&5
+-$as_echo_n "checking for main in -laxis2_http_common... " >&6; }
+-if test "${ac_cv_lib_axis2_http_common_main+set}" = set; then :
++if test -z "$ac_cv_path_PKG_CONFIG"; then
++ ac_pt_PKG_CONFIG=$PKG_CONFIG
++ # Extract the first word of "pkg-config", so it can be a program name with args.
++set dummy pkg-config; ac_word=$2
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
++$as_echo_n "checking for $ac_word... " >&6; }
++if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+ else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laxis2_http_common $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
++ case $ac_pt_PKG_CONFIG in
++ [\\/]* | ?:[\\/]*)
++ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
++ ;;
++ *)
++ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
++for as_dir in $PATH
++do
++ IFS=$as_save_IFS
++ test -z "$as_dir" && as_dir=.
++ for ac_exec_ext in '' $ac_executable_extensions; do
++ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
++ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
++ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
++ break 2
++ fi
++done
++ done
++IFS=$as_save_IFS
+
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_axis2_http_common_main=yes
+-else
+- ac_cv_lib_axis2_http_common_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++ ;;
++esac
+ fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_http_common_main" >&5
+-$as_echo "$ac_cv_lib_axis2_http_common_main" >&6; }
+-if test "x$ac_cv_lib_axis2_http_common_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBAXIS2_HTTP_COMMON 1
+-_ACEOF
+-
+- LIBS="-laxis2_http_common $LIBS"
+-
++ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
++if test -n "$ac_pt_PKG_CONFIG"; then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
++$as_echo "$ac_pt_PKG_CONFIG" >&6; }
+ else
+- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
+ fi
+
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_http_receiver" >&5
+-$as_echo_n "checking for main in -laxis2_http_receiver... " >&6; }
+-if test "${ac_cv_lib_axis2_http_receiver_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laxis2_http_receiver $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_axis2_http_receiver_main=yes
++ if test "x$ac_pt_PKG_CONFIG" = x; then
++ PKG_CONFIG=""
++ else
++ case $cross_compiling:$ac_tool_warned in
++yes:)
++{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
++$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
++ac_tool_warned=yes ;;
++esac
++ PKG_CONFIG=$ac_pt_PKG_CONFIG
++ fi
+ else
+- ac_cv_lib_axis2_http_receiver_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
+ fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_http_receiver_main" >&5
+-$as_echo "$ac_cv_lib_axis2_http_receiver_main" >&6; }
+-if test "x$ac_cv_lib_axis2_http_receiver_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBAXIS2_HTTP_RECEIVER 1
+-_ACEOF
+
+- LIBS="-laxis2_http_receiver $LIBS"
+-
+-else
+- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
+ fi
++if test -n "$PKG_CONFIG"; then
++ _pkg_min_version=0.9.0
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
++$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
++ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
++$as_echo "yes" >&6; }
++ else
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++ PKG_CONFIG=""
++ fi
+
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxis2_http_sender" >&5
+-$as_echo_n "checking for main in -laxis2_http_sender... " >&6; }
+-if test "${ac_cv_lib_axis2_http_sender_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laxis2_http_sender $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_axis2_http_sender_main=yes
+-else
+- ac_cv_lib_axis2_http_sender_main=no
+ fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_http_sender_main" >&5
+-$as_echo "$ac_cv_lib_axis2_http_sender_main" >&6; }
+-if test "x$ac_cv_lib_axis2_http_sender_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBAXIS2_HTTP_SENDER 1
+-_ACEOF
+-
+- LIBS="-laxis2_http_sender $LIBS"
+
++pkg_failed=no
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AXIS2C" >&5
++$as_echo_n "checking for AXIS2C... " >&6; }
++
++if test -n "$PKG_CONFIG"; then
++ if test -n "$AXIS2C_CFLAGS"; then
++ pkg_cv_AXIS2C_CFLAGS="$AXIS2C_CFLAGS"
++ else
++ if test -n "$PKG_CONFIG" && \
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"axis2c\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "axis2c") 2>&5
++ ac_status=$?
++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++ test $ac_status = 0; }; then
++ pkg_cv_AXIS2C_CFLAGS=`$PKG_CONFIG --cflags "axis2c" 2>/dev/null`
+ else
+- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
++ pkg_failed=yes
+ fi
+-
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lguththila" >&5
+-$as_echo_n "checking for main in -lguththila... " >&6; }
+-if test "${ac_cv_lib_guththila_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lguththila $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_guththila_main=yes
++ fi
+ else
+- ac_cv_lib_guththila_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++ pkg_failed=untried
+ fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guththila_main" >&5
+-$as_echo "$ac_cv_lib_guththila_main" >&6; }
+-if test "x$ac_cv_lib_guththila_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBGUTHTHILA 1
+-_ACEOF
+-
+- LIBS="-lguththila $LIBS"
+-
++if test -n "$PKG_CONFIG"; then
++ if test -n "$AXIS2C_LIBS"; then
++ pkg_cv_AXIS2C_LIBS="$AXIS2C_LIBS"
++ else
++ if test -n "$PKG_CONFIG" && \
++ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"axis2c\""; } >&5
++ ($PKG_CONFIG --exists --print-errors "axis2c") 2>&5
++ ac_status=$?
++ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++ test $ac_status = 0; }; then
++ pkg_cv_AXIS2C_LIBS=`$PKG_CONFIG --libs "axis2c" 2>/dev/null`
+ else
+- as_fn_error "Cannot find libguththila!" "$LINENO" 5
++ pkg_failed=yes
+ fi
+-
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for axiom_xml_reader_init in -laxis2_parser" >&5
+-$as_echo_n "checking for axiom_xml_reader_init in -laxis2_parser... " >&6; }
+-if test "${ac_cv_lib_axis2_parser_axiom_xml_reader_init+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laxis2_parser $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-/* Override any GCC internal prototype to avoid an error.
+- Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-#ifdef __cplusplus
+-extern "C"
+-#endif
+-char axiom_xml_reader_init ();
+-int
+-main ()
+-{
+-return axiom_xml_reader_init ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_axis2_parser_axiom_xml_reader_init=yes
++ fi
+ else
+- ac_cv_lib_axis2_parser_axiom_xml_reader_init=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
++ pkg_failed=untried
+ fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axis2_parser_axiom_xml_reader_init" >&5
+-$as_echo "$ac_cv_lib_axis2_parser_axiom_xml_reader_init" >&6; }
+-if test "x$ac_cv_lib_axis2_parser_axiom_xml_reader_init" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBAXIS2_PARSER 1
+-_ACEOF
+
+- LIBS="-laxis2_parser $LIBS"
+
+-else
+- as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
+-fi
+-
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -laxutil" >&5
+-$as_echo_n "checking for main in -laxutil... " >&6; }
+-if test "${ac_cv_lib_axutil_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-laxutil $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+
++if test $pkg_failed = yes; then
+
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_axutil_main=yes
++if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
++ _pkg_short_errors_supported=yes
+ else
+- ac_cv_lib_axutil_main=no
++ _pkg_short_errors_supported=no
+ fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axutil_main" >&5
+-$as_echo "$ac_cv_lib_axutil_main" >&6; }
+-if test "x$ac_cv_lib_axutil_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBAXUTIL 1
+-_ACEOF
++ if test $_pkg_short_errors_supported = yes; then
++ AXIS2C_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "axis2c"`
++ else
++ AXIS2C_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "axis2c"`
++ fi
++ # Put the nasty error message in config.log where it belongs
++ echo "$AXIS2C_PKG_ERRORS" >&5
+
+- LIBS="-laxutil $LIBS"
+-
+-else
+- as_fn_error "Cannot find libaxutil" "$LINENO" 5
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
++$as_echo "no" >&6; }
++ as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
++elif test $pkg_failed = untried; then
++ as_fn_error "Cannot find axis2 libs!" "$LINENO" 5
++else
++ AXIS2C_CFLAGS=$pkg_cv_AXIS2C_CFLAGS
++ AXIS2C_LIBS=$pkg_cv_AXIS2C_LIBS
++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
++$as_echo "yes" >&6; }
++ :
+ fi
+-
++AXIS2C_LIBS="-Wl,--rpath=$(pkg-config axis2c --variable=libdir) $AXIS2C_LIBS"
++#AC_CHECK_LIB([axis2_axiom],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_engine],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_http_common],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_http_receiver],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_http_sender],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([guththila],[main],,AC_MSG_ERROR([Cannot find libguththila!]))
++#AC_CHECK_LIB([axis2_parser],[axiom_xml_reader_init],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axutil],[main],,AC_MSG_ERROR([Cannot find libaxutil]))
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
+ $as_echo_n "checking for main in -lm... " >&6; }
+ if test "${ac_cv_lib_m_main+set}" = set; then :
+@@ -4825,6 +4697,7 @@
+
+ fi
+
++#AC_CHECK_LIB([mod_rampart],[main],,AC_MSG_ERROR([Cannot find libmod_rampart]),[$AXIS2C_LIBS])
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmod_rampart" >&5
+ $as_echo_n "checking for main in -lmod_rampart... " >&6; }
+ if test "${ac_cv_lib_mod_rampart_main+set}" = set; then :
+@@ -4866,129 +4739,6 @@
+ as_fn_error "Cannot find libmod_rampart" "$LINENO" 5
+ fi
+
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lneethi" >&5
+-$as_echo_n "checking for main in -lneethi... " >&6; }
+-if test "${ac_cv_lib_neethi_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lneethi $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_neethi_main=yes
+-else
+- ac_cv_lib_neethi_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_neethi_main" >&5
+-$as_echo "$ac_cv_lib_neethi_main" >&6; }
+-if test "x$ac_cv_lib_neethi_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBNEETHI 1
+-_ACEOF
+-
+- LIBS="-lneethi $LIBS"
+-
+-else
+- as_fn_error "Cannot find libneethi!" "$LINENO" 5
+-fi
+-
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lomxmlsec" >&5
+-$as_echo_n "checking for main in -lomxmlsec... " >&6; }
+-if test "${ac_cv_lib_omxmlsec_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lomxmlsec $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_omxmlsec_main=yes
+-else
+- ac_cv_lib_omxmlsec_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_omxmlsec_main" >&5
+-$as_echo "$ac_cv_lib_omxmlsec_main" >&6; }
+-if test "x$ac_cv_lib_omxmlsec_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBOMXMLSEC 1
+-_ACEOF
+-
+- LIBS="-lomxmlsec $LIBS"
+-
+-else
+- as_fn_error "Cannot find libomxmlsec!" "$LINENO" 5
+-fi
+-
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -loxstokens" >&5
+-$as_echo_n "checking for main in -loxstokens... " >&6; }
+-if test "${ac_cv_lib_oxstokens_main+set}" = set; then :
+- $as_echo_n "(cached) " >&6
+-else
+- ac_check_lib_save_LIBS=$LIBS
+-LIBS="-loxstokens $LIBS"
+-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+-/* end confdefs.h. */
+-
+-
+-int
+-main ()
+-{
+-return main ();
+- ;
+- return 0;
+-}
+-_ACEOF
+-if ac_fn_c_try_link "$LINENO"; then :
+- ac_cv_lib_oxstokens_main=yes
+-else
+- ac_cv_lib_oxstokens_main=no
+-fi
+-rm -f core conftest.err conftest.$ac_objext \
+- conftest$ac_exeext conftest.$ac_ext
+-LIBS=$ac_check_lib_save_LIBS
+-fi
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oxstokens_main" >&5
+-$as_echo "$ac_cv_lib_oxstokens_main" >&6; }
+-if test "x$ac_cv_lib_oxstokens_main" = x""yes; then :
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBOXSTOKENS 1
+-_ACEOF
+-
+- LIBS="-loxstokens $LIBS"
+-
+-else
+- as_fn_error "Cannot find liboxstokens!" "$LINENO" 5
+-fi
+-
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
+ $as_echo_n "checking for main in -lpthread... " >&6; }
+ if test "${ac_cv_lib_pthread_main+set}" = set; then :
+Index: ubuntu/Makedefs.in
+===================================================================
+--- ubuntu.orig/Makedefs.in 2009-08-31 19:12:35.613022628 -0500
++++ ubuntu/Makedefs.in 2009-08-31 19:16:06.256021111 -0500
+@@ -44,6 +44,7 @@
+ ANT = @ANT@ -e
+ WSDL2C = @WSDL2C@
+ JAVA_HOME = @JAVA_HOME@
++AXIS2C_LIBS = @AXIS2C_LIBS@
+
+ # compile time configurations
+ euca_theme = @INTERFACE_THEME@
+Index: ubuntu/configure.ac
+===================================================================
+--- ubuntu.orig/configure.ac 2009-08-31 19:12:35.661021603 -0500
++++ ubuntu/configure.ac 2009-08-31 19:15:45.536023604 -0500
+@@ -167,19 +167,19 @@
+
+ # Checks for libraries.
+ # FIXME: Replace `main' with a function in the library
+-AC_CHECK_LIB([axis2_axiom],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
+-AC_CHECK_LIB([axis2_engine],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
+-AC_CHECK_LIB([axis2_http_common],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
+-AC_CHECK_LIB([axis2_http_receiver],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
+-AC_CHECK_LIB([axis2_http_sender],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
+-AC_CHECK_LIB([guththila],[main],,AC_MSG_ERROR([Cannot find libguththila!]))
+-AC_CHECK_LIB([axis2_parser],[axiom_xml_reader_init],,AC_MSG_ERROR([Cannot find axis2 libs!]))
+-AC_CHECK_LIB([axutil],[main],,AC_MSG_ERROR([Cannot find libaxutil]))
++PKG_CHECK_MODULES([AXIS2C], [axis2c],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++AXIS2C_LIBS="-Wl,--rpath=$(pkg-config axis2c --variable=libdir) $AXIS2C_LIBS"
++#AC_CHECK_LIB([axis2_axiom],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_engine],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_http_common],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_http_receiver],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axis2_http_sender],[main],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([guththila],[main],,AC_MSG_ERROR([Cannot find libguththila!]))
++#AC_CHECK_LIB([axis2_parser],[axiom_xml_reader_init],,AC_MSG_ERROR([Cannot find axis2 libs!]))
++#AC_CHECK_LIB([axutil],[main],,AC_MSG_ERROR([Cannot find libaxutil]))
+ AC_CHECK_LIB([m],[main])
++#AC_CHECK_LIB([mod_rampart],[main],,AC_MSG_ERROR([Cannot find libmod_rampart]),[$AXIS2C_LIBS])
+ AC_CHECK_LIB([mod_rampart],[main],,AC_MSG_ERROR([Cannot find libmod_rampart]))
+-AC_CHECK_LIB([neethi],[main],,AC_MSG_ERROR([Cannot find libneethi!]))
+-AC_CHECK_LIB([omxmlsec],[main],,AC_MSG_ERROR([Cannot find libomxmlsec!]))
+-AC_CHECK_LIB([oxstokens],[main],,AC_MSG_ERROR([Cannot find liboxstokens!]))
+ AC_CHECK_LIB([pthread],[main])
+ AC_CHECK_LIB([rt],[main])
+ AC_CHECK_LIB([virt],[main],true,AC_MSG_ERROR([Cannot find libvirt!]))
+Index: ubuntu/cluster/Makefile
+===================================================================
+--- ubuntu.orig/cluster/Makefile 2009-08-31 19:15:30.472022736 -0500
++++ ubuntu/cluster/Makefile 2009-08-31 19:15:45.536023604 -0500
+@@ -17,7 +17,7 @@
+ SCLIBS=../storage/storage.o
+ VNLIBS=../net/vnetwork.o ../util/misc.o
+ WSSECLIBS=../util/euca_auth.o
+-CC_LIBS = ${LIBS} -lcurl
++CC_LIBS = ${LIBS} -lcurl ${AXIS2C_LIBS}
+
+ all: server client
+
+Index: ubuntu/gatherlog/Makefile
+===================================================================
+--- ubuntu.orig/gatherlog/Makefile 2009-08-31 19:15:30.472022736 -0500
++++ ubuntu/gatherlog/Makefile 2009-08-31 19:15:45.540024252 -0500
+@@ -10,6 +10,7 @@
+ SERVICE_NAME=EucalyptusGL
+ CLIENT=GLclient
+ #WSDL2C=$(AXIS2C_HOME)/bin/tools/wsdl2c/WSDL2C.sh
++GL_LIBS = $(LIBS) $(AXIS2C_LIBS)
+
+ all: server client
+
+@@ -38,12 +39,12 @@
+ server: $(SERVICE_SO)
+
+ $(SERVICE_SO): generated/stubs gl-client-marshal-adb.o server-marshal.o handlers.o $(AXIS2C_HOME)/lib/libaxutil.so
+- $(CC) -shared generated/*.o server-marshal.o handlers.o $(WSSECLIBS) -L$(AXIS2C_HOME)/lib $(LIBS) ../util/misc.o ../util/euca_auth.o ./gl-client-marshal-adb.o -o $(SERVICE_SO)
++ $(CC) -shared generated/*.o server-marshal.o handlers.o $(WSSECLIBS) -L$(AXIS2C_HOME)/lib $(GL_LIBS) ../util/misc.o ../util/euca_auth.o ./gl-client-marshal-adb.o -o $(SERVICE_SO)
+
+ client: $(CLIENT)
+
+ $(CLIENT): generated/stubs $(CLIENT).c gl-client-marshal-adb.c handlers.o $(AXIS2C_HOME)/lib/libaxutil.so
+- $(CC) -o $(CLIENT) $(CFLAGS) $(INCLUDES) $(LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c gl-client-marshal-adb.c -DMODE=1
++ $(CC) -o $(CLIENT) $(CFLAGS) $(INCLUDES) $(GL_LIBS) generated/adb_*.o generated/axis2_stub_*.o ../util/misc.o ../util/euca_auth.o $(CLIENT).c gl-client-marshal-adb.c -DMODE=1
+
+ deploy:
+ $(INSTALL) -d $(DESTDIR)$(AXIS2C_SERVICES)/$(SERVICE_NAME)/
+Index: ubuntu/node/Makefile
+===================================================================
+--- ubuntu.orig/node/Makefile 2009-08-31 19:15:30.472022736 -0500
++++ ubuntu/node/Makefile 2009-08-31 19:15:45.540024252 -0500
+@@ -12,7 +12,7 @@
+ SERVICE_NAME=EucalyptusNC
+ CLIENT=NCclient
+ #WSDL2C=$(AXIS2C_HOME)/bin/tools/wsdl2c/WSDL2C.sh
+-NC_LIBS = $(LIBS) -lvirt -lcurl
++NC_LIBS = $(LIBS) -lvirt -lcurl $(AXIS2C_LIBS)
+ NC_HANDLERS=handlers_xen.o handlers_kvm.o handlers_default.o
+
+ all: server client clientlib test_nc test
+Index: ubuntu/util/euca_auth.h
+===================================================================
+--- ubuntu.orig/util/euca_auth.h 2009-08-31 19:12:39.593023440 -0500
++++ ubuntu/util/euca_auth.h 2009-08-31 19:15:45.540024252 -0500
+@@ -64,6 +64,7 @@
+ #include "oxs_axiom.h"
+ #include "oxs_x509_cert.h"
+ #include "oxs_key_mgr.h"
++#include "axis2_op.h"
+ #include "rampart_handler_util.h"
+ #include "rampart_sec_processed_result.h"
+ #include "rampart_error.h"
+Index: ubuntu/util/euca_auth.c
+===================================================================
+--- ubuntu.orig/util/euca_auth.c 2009-08-31 19:12:39.589023840 -0500
++++ ubuntu/util/euca_auth.c 2009-08-31 19:15:45.540024252 -0500
+@@ -102,6 +102,7 @@
+ #include "oxs_axiom.h"
+ #include "oxs_x509_cert.h"
+ #include "oxs_key_mgr.h"
++#include "rampart_context.h"
+ #include "rampart_handler_util.h"
+ #include "rampart_sec_processed_result.h"
+ #include "rampart_error.h"
--- eucalyptus-1.6~bzr588.orig/debian/patches/01-wsdl-stubs.patch
+++ eucalyptus-1.6~bzr588/debian/patches/01-wsdl-stubs.patch
@@ -0,0 +1,325293 @@
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_eucalyptusMessage.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_eucalyptusMessage.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_eucalyptusMessage.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_eucalyptusMessage.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = eucalyptusMessage
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_eucalyptusMessage
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_correlationId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_userId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_return_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_eucalyptusMessage_t* AXIS2_CALL
++ adb_eucalyptusMessage_create(
++ const axutil_env_t *env)
++ {
++ adb_eucalyptusMessage_t *_eucalyptusMessage = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _eucalyptusMessage = (adb_eucalyptusMessage_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_eucalyptusMessage_t));
++
++ if(NULL == _eucalyptusMessage)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_eucalyptusMessage, 0, sizeof(adb_eucalyptusMessage_t));
++
++ _eucalyptusMessage->property_correlationId = NULL;
++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE;
++ _eucalyptusMessage->property_userId = NULL;
++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE;
++ _eucalyptusMessage->property_statusMessage = NULL;
++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE;
++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE;
++
++
++ return _eucalyptusMessage;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_free (
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env);
++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env);
++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env);
++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env);
++
++
++ if(_eucalyptusMessage)
++ {
++ AXIS2_FREE(env->allocator, _eucalyptusMessage);
++ _eucalyptusMessage = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_deserialize(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for eucalyptusMessage : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_eucalyptusMessage_set_correlationId(_eucalyptusMessage, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_eucalyptusMessage_set_userId(_eucalyptusMessage, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_eucalyptusMessage_set_statusMessage(_eucalyptusMessage, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_eucalyptusMessage_set_return(_eucalyptusMessage, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_eucalyptusMessage_declare_parent_namespaces(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_eucalyptusMessage_serialize(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_eucalyptusMessage->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _eucalyptusMessage->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_eucalyptusMessage->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _eucalyptusMessage->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_eucalyptusMessage->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _eucalyptusMessage->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_eucalyptusMessage->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_eucalyptusMessage->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_eucalyptusMessage_get_correlationId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL);
++
++
++ return _eucalyptusMessage->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_correlationId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++ if(_eucalyptusMessage->is_valid_correlationId &&
++ arg_correlationId == _eucalyptusMessage->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _eucalyptusMessage->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _eucalyptusMessage->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _eucalyptusMessage->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_correlationId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++
++
++
++
++ if(_eucalyptusMessage->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_correlationId);
++ _eucalyptusMessage->property_correlationId = NULL;
++ }
++
++
++
++ _eucalyptusMessage->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_correlationId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE);
++
++ return !_eucalyptusMessage->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_correlationId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ return adb_eucalyptusMessage_reset_correlationId(_eucalyptusMessage, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_eucalyptusMessage_get_userId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL);
++
++
++ return _eucalyptusMessage->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_userId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++ if(_eucalyptusMessage->is_valid_userId &&
++ arg_userId == _eucalyptusMessage->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _eucalyptusMessage->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _eucalyptusMessage->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _eucalyptusMessage->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_userId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++
++
++
++
++ if(_eucalyptusMessage->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_userId);
++ _eucalyptusMessage->property_userId = NULL;
++ }
++
++
++
++ _eucalyptusMessage->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_userId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE);
++
++ return !_eucalyptusMessage->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_userId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ return adb_eucalyptusMessage_reset_userId(_eucalyptusMessage, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_eucalyptusMessage_get_statusMessage(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, NULL);
++
++
++ return _eucalyptusMessage->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_statusMessage(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++ if(_eucalyptusMessage->is_valid_statusMessage &&
++ arg_statusMessage == _eucalyptusMessage->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _eucalyptusMessage->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _eucalyptusMessage->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_statusMessage(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++
++
++
++
++ if(_eucalyptusMessage->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _eucalyptusMessage->property_statusMessage);
++ _eucalyptusMessage->property_statusMessage = NULL;
++ }
++
++
++
++ _eucalyptusMessage->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_statusMessage_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE);
++
++ return !_eucalyptusMessage->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_statusMessage_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ return adb_eucalyptusMessage_reset_statusMessage(_eucalyptusMessage, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_get_return(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, (axis2_bool_t)0);
++
++
++ return _eucalyptusMessage->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_return(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++ if(_eucalyptusMessage->is_valid_return &&
++ arg_return == _eucalyptusMessage->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env);
++
++ _eucalyptusMessage->property_return = arg_return;
++ _eucalyptusMessage->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_return(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_FAILURE);
++
++
++ _eucalyptusMessage->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_return_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _eucalyptusMessage, AXIS2_TRUE);
++
++ return !_eucalyptusMessage->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_return_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env)
++ {
++ return adb_eucalyptusMessage_reset_return(_eucalyptusMessage, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_eucalyptusMessage.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_eucalyptusMessage.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_EUCALYPTUSMESSAGE_H
++ #define ADB_EUCALYPTUSMESSAGE_H
++
++ /**
++ * adb_eucalyptusMessage.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_eucalyptusMessage class
++ */
++ typedef struct adb_eucalyptusMessage adb_eucalyptusMessage_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_eucalyptusMessage_t
++ * @param env pointer to environment struct
++ * @return newly created adb_eucalyptusMessage_t object
++ */
++ adb_eucalyptusMessage_t* AXIS2_CALL
++ adb_eucalyptusMessage_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_eucalyptusMessage_t object
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_free (
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_eucalyptusMessage_get_correlationId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_correlationId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_correlationId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_eucalyptusMessage_get_userId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_userId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_userId(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_eucalyptusMessage_get_statusMessage(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_statusMessage(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_statusMessage(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_get_return(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_return(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_reset_return(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_correlationId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_userId_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_statusMessage_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_set_statusMessage_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_return_nil(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_eucalyptusMessage_deserialize(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_eucalyptusMessage_declare_parent_namespaces(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _eucalyptusMessage adb_eucalyptusMessage_t object
++ * @param env pointer to environment struct
++ * @param eucalyptusMessage_om_node node to serialize from
++ * @param eucalyptusMessage_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_eucalyptusMessage_serialize(
++ adb_eucalyptusMessage_t* _eucalyptusMessage,
++ const axutil_env_t *env,
++ axiom_node_t* eucalyptusMessage_om_node, axiom_element_t *eucalyptusMessage_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_eucalyptusMessage is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_eucalyptusMessage_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_EUCALYPTUSMESSAGE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_virtualMachineType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_virtualMachineType.c
+@@ -0,0 +1,1280 @@
++
++
++ /**
++ * adb_virtualMachineType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_virtualMachineType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = virtualMachineType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_virtualMachineType
++ {
++ axis2_char_t* property_name;
++
++
++ axis2_bool_t is_valid_name;
++
++
++ int property_memory;
++
++
++ axis2_bool_t is_valid_memory;
++
++
++ int property_cores;
++
++
++ axis2_bool_t is_valid_cores;
++
++
++ int property_disk;
++
++
++ axis2_bool_t is_valid_disk;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_name_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_memory_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_cores_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_disk_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_virtualMachineType_create(
++ const axutil_env_t *env)
++ {
++ adb_virtualMachineType_t *_virtualMachineType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _virtualMachineType = (adb_virtualMachineType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_virtualMachineType_t));
++
++ if(NULL == _virtualMachineType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_virtualMachineType, 0, sizeof(adb_virtualMachineType_t));
++
++ _virtualMachineType->property_name = NULL;
++ _virtualMachineType->is_valid_name = AXIS2_FALSE;
++ _virtualMachineType->is_valid_memory = AXIS2_FALSE;
++ _virtualMachineType->is_valid_cores = AXIS2_FALSE;
++ _virtualMachineType->is_valid_disk = AXIS2_FALSE;
++
++
++ return _virtualMachineType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_free (
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++ adb_virtualMachineType_reset_name(_virtualMachineType, env);
++ adb_virtualMachineType_reset_memory(_virtualMachineType, env);
++ adb_virtualMachineType_reset_cores(_virtualMachineType, env);
++ adb_virtualMachineType_reset_disk(_virtualMachineType, env);
++
++
++ if(_virtualMachineType)
++ {
++ AXIS2_FREE(env->allocator, _virtualMachineType);
++ _virtualMachineType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_deserialize(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for virtualMachineType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building name element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "name", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_virtualMachineType_set_name(_virtualMachineType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element name");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_virtualMachineType_set_name(_virtualMachineType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for name ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building memory element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "memory", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_virtualMachineType_set_memory(_virtualMachineType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element memory");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for memory ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building cores element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "cores", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_virtualMachineType_set_cores(_virtualMachineType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element cores");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for cores ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building disk element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "disk", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_virtualMachineType_set_disk(_virtualMachineType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element disk");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for disk ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_virtualMachineType_declare_parent_namespaces(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_virtualMachineType_serialize(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t text_value_2[64];
++
++ axis2_char_t text_value_3[64];
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_virtualMachineType->is_valid_name)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("name")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("name")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing name element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sname>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sname>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _virtualMachineType->property_name;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_virtualMachineType->is_valid_memory)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("memory")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("memory")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing memory element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%smemory>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%smemory>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_2, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_memory);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_virtualMachineType->is_valid_cores)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("cores")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("cores")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing cores element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scores>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scores>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_cores);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_virtualMachineType->is_valid_disk)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("disk")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("disk")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing disk element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sdisk>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sdisk>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _virtualMachineType->property_disk);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for name.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_virtualMachineType_get_name(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, NULL);
++
++
++ return _virtualMachineType->property_name;
++ }
++
++ /**
++ * setter for name
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_name(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_name)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++ if(_virtualMachineType->is_valid_name &&
++ arg_name == _virtualMachineType->property_name)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_virtualMachineType_reset_name(_virtualMachineType, env);
++
++
++ if(NULL == arg_name)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _virtualMachineType->property_name = (axis2_char_t *)axutil_strdup(env, arg_name);
++ if(NULL == _virtualMachineType->property_name)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for name");
++ return AXIS2_FAILURE;
++ }
++ _virtualMachineType->is_valid_name = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for name
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_name(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_virtualMachineType->property_name != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _virtualMachineType->property_name);
++ _virtualMachineType->property_name = NULL;
++ }
++
++
++
++ _virtualMachineType->is_valid_name = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether name is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_name_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE);
++
++ return !_virtualMachineType->is_valid_name;
++ }
++
++ /**
++ * Set name to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_name_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ return adb_virtualMachineType_reset_name(_virtualMachineType, env);
++ }
++
++
++
++ /**
++ * getter for memory.
++ */
++ int AXIS2_CALL
++ adb_virtualMachineType_get_memory(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0);
++
++
++ return _virtualMachineType->property_memory;
++ }
++
++ /**
++ * setter for memory
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_memory(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const int arg_memory)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++ if(_virtualMachineType->is_valid_memory &&
++ arg_memory == _virtualMachineType->property_memory)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_virtualMachineType_reset_memory(_virtualMachineType, env);
++
++ _virtualMachineType->property_memory = arg_memory;
++ _virtualMachineType->is_valid_memory = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for memory
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_memory(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++
++ _virtualMachineType->is_valid_memory = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether memory is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_memory_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE);
++
++ return !_virtualMachineType->is_valid_memory;
++ }
++
++ /**
++ * Set memory to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_memory_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ return adb_virtualMachineType_reset_memory(_virtualMachineType, env);
++ }
++
++
++
++ /**
++ * getter for cores.
++ */
++ int AXIS2_CALL
++ adb_virtualMachineType_get_cores(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0);
++
++
++ return _virtualMachineType->property_cores;
++ }
++
++ /**
++ * setter for cores
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_cores(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const int arg_cores)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++ if(_virtualMachineType->is_valid_cores &&
++ arg_cores == _virtualMachineType->property_cores)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_virtualMachineType_reset_cores(_virtualMachineType, env);
++
++ _virtualMachineType->property_cores = arg_cores;
++ _virtualMachineType->is_valid_cores = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for cores
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_cores(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++
++ _virtualMachineType->is_valid_cores = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether cores is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_cores_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE);
++
++ return !_virtualMachineType->is_valid_cores;
++ }
++
++ /**
++ * Set cores to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_cores_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ return adb_virtualMachineType_reset_cores(_virtualMachineType, env);
++ }
++
++
++
++ /**
++ * getter for disk.
++ */
++ int AXIS2_CALL
++ adb_virtualMachineType_get_disk(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, (int)0);
++
++
++ return _virtualMachineType->property_disk;
++ }
++
++ /**
++ * setter for disk
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_disk(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const int arg_disk)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++ if(_virtualMachineType->is_valid_disk &&
++ arg_disk == _virtualMachineType->property_disk)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_virtualMachineType_reset_disk(_virtualMachineType, env);
++
++ _virtualMachineType->property_disk = arg_disk;
++ _virtualMachineType->is_valid_disk = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for disk
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_disk(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_FAILURE);
++
++
++ _virtualMachineType->is_valid_disk = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether disk is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_disk_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _virtualMachineType, AXIS2_TRUE);
++
++ return !_virtualMachineType->is_valid_disk;
++ }
++
++ /**
++ * Set disk to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_disk_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env)
++ {
++ return adb_virtualMachineType_reset_disk(_virtualMachineType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_virtualMachineType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_virtualMachineType.h
+@@ -0,0 +1,351 @@
++
++
++ #ifndef ADB_VIRTUALMACHINETYPE_H
++ #define ADB_VIRTUALMACHINETYPE_H
++
++ /**
++ * adb_virtualMachineType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_virtualMachineType class
++ */
++ typedef struct adb_virtualMachineType adb_virtualMachineType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_virtualMachineType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_virtualMachineType_t object
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_virtualMachineType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_virtualMachineType_t object
++ * @param _virtualMachineType adb_virtualMachineType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_free (
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for name.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_virtualMachineType_get_name(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for name.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @param arg_name axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_name(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_name);
++
++ /**
++ * Resetter for name
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_name(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for memory.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_virtualMachineType_get_memory(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for memory.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @param arg_memory int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_memory(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const int arg_memory);
++
++ /**
++ * Resetter for memory
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_memory(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for cores.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_virtualMachineType_get_cores(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for cores.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @param arg_cores int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_cores(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const int arg_cores);
++
++ /**
++ * Resetter for cores
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_cores(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for disk.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_virtualMachineType_get_disk(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for disk.
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @param arg_disk int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_set_disk(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ const int arg_disk);
++
++ /**
++ * Resetter for disk
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_reset_disk(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether name is nill
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_name_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether memory is nill
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_memory_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether cores is nill
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_cores_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether disk is nill
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_disk_nil(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_virtualMachineType_deserialize(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_virtualMachineType_declare_parent_namespaces(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _virtualMachineType adb_virtualMachineType_t object
++ * @param env pointer to environment struct
++ * @param virtualMachineType_om_node node to serialize from
++ * @param virtualMachineType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_virtualMachineType_serialize(
++ adb_virtualMachineType_t* _virtualMachineType,
++ const axutil_env_t *env,
++ axiom_node_t* virtualMachineType_om_node, axiom_element_t *virtualMachineType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_virtualMachineType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_virtualMachineType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_VIRTUALMACHINETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_netConfigType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_netConfigType.c
+@@ -0,0 +1,1879 @@
++
++
++ /**
++ * adb_netConfigType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_netConfigType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = netConfigType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_netConfigType
++ {
++ axis2_char_t* property_privateMacAddress;
++
++
++ axis2_bool_t is_valid_privateMacAddress;
++
++
++ axis2_char_t* property_publicMacAddress;
++
++
++ axis2_bool_t is_valid_publicMacAddress;
++
++
++ int property_vlan;
++
++
++ axis2_bool_t is_valid_vlan;
++
++
++ axis2_char_t* property_privateIp;
++
++
++ axis2_bool_t is_valid_privateIp;
++
++
++ axis2_char_t* property_publicIp;
++
++
++ axis2_bool_t is_valid_publicIp;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_vlan_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_netConfigType_t* AXIS2_CALL
++ adb_netConfigType_create(
++ const axutil_env_t *env)
++ {
++ adb_netConfigType_t *_netConfigType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _netConfigType = (adb_netConfigType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_netConfigType_t));
++
++ if(NULL == _netConfigType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_netConfigType, 0, sizeof(adb_netConfigType_t));
++
++ _netConfigType->property_privateMacAddress = NULL;
++ _netConfigType->is_valid_privateMacAddress = AXIS2_FALSE;
++ _netConfigType->property_publicMacAddress = NULL;
++ _netConfigType->is_valid_publicMacAddress = AXIS2_FALSE;
++ _netConfigType->is_valid_vlan = AXIS2_FALSE;
++ _netConfigType->property_privateIp = NULL;
++ _netConfigType->is_valid_privateIp = AXIS2_FALSE;
++ _netConfigType->property_publicIp = NULL;
++ _netConfigType->is_valid_publicIp = AXIS2_FALSE;
++
++
++ return _netConfigType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_free (
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++ adb_netConfigType_reset_privateMacAddress(_netConfigType, env);
++ adb_netConfigType_reset_publicMacAddress(_netConfigType, env);
++ adb_netConfigType_reset_vlan(_netConfigType, env);
++ adb_netConfigType_reset_privateIp(_netConfigType, env);
++ adb_netConfigType_reset_publicIp(_netConfigType, env);
++
++
++ if(_netConfigType)
++ {
++ AXIS2_FREE(env->allocator, _netConfigType);
++ _netConfigType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_deserialize(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for netConfigType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building privateMacAddress element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "privateMacAddress", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_netConfigType_set_privateMacAddress(_netConfigType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateMacAddress");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_netConfigType_set_privateMacAddress(_netConfigType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateMacAddress ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateMacAddress missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building publicMacAddress element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "publicMacAddress", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_netConfigType_set_publicMacAddress(_netConfigType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicMacAddress");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_netConfigType_set_publicMacAddress(_netConfigType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicMacAddress ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicMacAddress missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building vlan element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_netConfigType_set_vlan(_netConfigType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building privateIp element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "privateIp", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_netConfigType_set_privateIp(_netConfigType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateIp");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_netConfigType_set_privateIp(_netConfigType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateIp ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateIp missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building publicIp element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "publicIp", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_netConfigType_set_publicIp(_netConfigType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicIp");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_netConfigType_set_publicIp(_netConfigType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicIp ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicIp missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_netConfigType_declare_parent_namespaces(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_netConfigType_serialize(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t text_value_3[64];
++
++ axis2_char_t *text_value_4;
++ axis2_char_t *text_value_4_temp;
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_netConfigType->is_valid_privateMacAddress)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateMacAddress");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("privateMacAddress")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateMacAddress")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing privateMacAddress element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sprivateMacAddress>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sprivateMacAddress>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _netConfigType->property_privateMacAddress;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_netConfigType->is_valid_publicMacAddress)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicMacAddress");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("publicMacAddress")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicMacAddress")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing publicMacAddress element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%spublicMacAddress>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%spublicMacAddress>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _netConfigType->property_publicMacAddress;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_netConfigType->is_valid_vlan)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("vlan")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing vlan element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _netConfigType->property_vlan);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_netConfigType->is_valid_privateIp)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateIp");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("privateIp")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("privateIp")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing privateIp element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sprivateIp>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sprivateIp>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_4 = _netConfigType->property_privateIp;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
++ if (text_value_4_temp)
++ {
++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
++ AXIS2_FREE(env->allocator, text_value_4_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_netConfigType->is_valid_publicIp)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicIp");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("publicIp")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("publicIp")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing publicIp element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%spublicIp>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%spublicIp>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _netConfigType->property_publicIp;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for privateMacAddress.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_privateMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL);
++
++
++ return _netConfigType->property_privateMacAddress;
++ }
++
++ /**
++ * setter for privateMacAddress
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_privateMacAddress)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++ if(_netConfigType->is_valid_privateMacAddress &&
++ arg_privateMacAddress == _netConfigType->property_privateMacAddress)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_privateMacAddress)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateMacAddress is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_netConfigType_reset_privateMacAddress(_netConfigType, env);
++
++
++ if(NULL == arg_privateMacAddress)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _netConfigType->property_privateMacAddress = (axis2_char_t *)axutil_strdup(env, arg_privateMacAddress);
++ if(NULL == _netConfigType->property_privateMacAddress)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateMacAddress");
++ return AXIS2_FAILURE;
++ }
++ _netConfigType->is_valid_privateMacAddress = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for privateMacAddress
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_privateMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_netConfigType->property_privateMacAddress != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _netConfigType->property_privateMacAddress);
++ _netConfigType->property_privateMacAddress = NULL;
++ }
++
++
++
++ _netConfigType->is_valid_privateMacAddress = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether privateMacAddress is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_privateMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE);
++
++ return !_netConfigType->is_valid_privateMacAddress;
++ }
++
++ /**
++ * Set privateMacAddress to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ return adb_netConfigType_reset_privateMacAddress(_netConfigType, env);
++ }
++
++
++
++ /**
++ * getter for publicMacAddress.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_publicMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL);
++
++
++ return _netConfigType->property_publicMacAddress;
++ }
++
++ /**
++ * setter for publicMacAddress
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_publicMacAddress)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++ if(_netConfigType->is_valid_publicMacAddress &&
++ arg_publicMacAddress == _netConfigType->property_publicMacAddress)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_publicMacAddress)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicMacAddress is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_netConfigType_reset_publicMacAddress(_netConfigType, env);
++
++
++ if(NULL == arg_publicMacAddress)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _netConfigType->property_publicMacAddress = (axis2_char_t *)axutil_strdup(env, arg_publicMacAddress);
++ if(NULL == _netConfigType->property_publicMacAddress)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicMacAddress");
++ return AXIS2_FAILURE;
++ }
++ _netConfigType->is_valid_publicMacAddress = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for publicMacAddress
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_publicMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_netConfigType->property_publicMacAddress != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _netConfigType->property_publicMacAddress);
++ _netConfigType->property_publicMacAddress = NULL;
++ }
++
++
++
++ _netConfigType->is_valid_publicMacAddress = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether publicMacAddress is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_publicMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE);
++
++ return !_netConfigType->is_valid_publicMacAddress;
++ }
++
++ /**
++ * Set publicMacAddress to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ return adb_netConfigType_reset_publicMacAddress(_netConfigType, env);
++ }
++
++
++
++ /**
++ * getter for vlan.
++ */
++ int AXIS2_CALL
++ adb_netConfigType_get_vlan(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, (int)0);
++
++
++ return _netConfigType->property_vlan;
++ }
++
++ /**
++ * setter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_vlan(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const int arg_vlan)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++ if(_netConfigType->is_valid_vlan &&
++ arg_vlan == _netConfigType->property_vlan)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_netConfigType_reset_vlan(_netConfigType, env);
++
++ _netConfigType->property_vlan = arg_vlan;
++ _netConfigType->is_valid_vlan = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_vlan(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++
++ _netConfigType->is_valid_vlan = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether vlan is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_vlan_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE);
++
++ return !_netConfigType->is_valid_vlan;
++ }
++
++ /**
++ * Set vlan to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_vlan_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ return adb_netConfigType_reset_vlan(_netConfigType, env);
++ }
++
++
++
++ /**
++ * getter for privateIp.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_privateIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL);
++
++
++ return _netConfigType->property_privateIp;
++ }
++
++ /**
++ * setter for privateIp
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_privateIp)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++ if(_netConfigType->is_valid_privateIp &&
++ arg_privateIp == _netConfigType->property_privateIp)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_privateIp)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateIp is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_netConfigType_reset_privateIp(_netConfigType, env);
++
++
++ if(NULL == arg_privateIp)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _netConfigType->property_privateIp = (axis2_char_t *)axutil_strdup(env, arg_privateIp);
++ if(NULL == _netConfigType->property_privateIp)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateIp");
++ return AXIS2_FAILURE;
++ }
++ _netConfigType->is_valid_privateIp = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for privateIp
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_privateIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_netConfigType->property_privateIp != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _netConfigType->property_privateIp);
++ _netConfigType->property_privateIp = NULL;
++ }
++
++
++
++ _netConfigType->is_valid_privateIp = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether privateIp is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_privateIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE);
++
++ return !_netConfigType->is_valid_privateIp;
++ }
++
++ /**
++ * Set privateIp to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ return adb_netConfigType_reset_privateIp(_netConfigType, env);
++ }
++
++
++
++ /**
++ * getter for publicIp.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_publicIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, NULL);
++
++
++ return _netConfigType->property_publicIp;
++ }
++
++ /**
++ * setter for publicIp
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_publicIp)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++ if(_netConfigType->is_valid_publicIp &&
++ arg_publicIp == _netConfigType->property_publicIp)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_publicIp)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicIp is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_netConfigType_reset_publicIp(_netConfigType, env);
++
++
++ if(NULL == arg_publicIp)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _netConfigType->property_publicIp = (axis2_char_t *)axutil_strdup(env, arg_publicIp);
++ if(NULL == _netConfigType->property_publicIp)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicIp");
++ return AXIS2_FAILURE;
++ }
++ _netConfigType->is_valid_publicIp = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for publicIp
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_publicIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_netConfigType->property_publicIp != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _netConfigType->property_publicIp);
++ _netConfigType->property_publicIp = NULL;
++ }
++
++
++
++ _netConfigType->is_valid_publicIp = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether publicIp is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_publicIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _netConfigType, AXIS2_TRUE);
++
++ return !_netConfigType->is_valid_publicIp;
++ }
++
++ /**
++ * Set publicIp to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env)
++ {
++ return adb_netConfigType_reset_publicIp(_netConfigType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_netConfigType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_netConfigType.h
+@@ -0,0 +1,403 @@
++
++
++ #ifndef ADB_NETCONFIGTYPE_H
++ #define ADB_NETCONFIGTYPE_H
++
++ /**
++ * adb_netConfigType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_netConfigType class
++ */
++ typedef struct adb_netConfigType adb_netConfigType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_netConfigType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_netConfigType_t object
++ */
++ adb_netConfigType_t* AXIS2_CALL
++ adb_netConfigType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_netConfigType_t object
++ * @param _netConfigType adb_netConfigType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_free (
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for privateMacAddress.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_privateMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for privateMacAddress.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param arg_privateMacAddress axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_privateMacAddress);
++
++ /**
++ * Resetter for privateMacAddress
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_privateMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for publicMacAddress.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_publicMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for publicMacAddress.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param arg_publicMacAddress axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_publicMacAddress);
++
++ /**
++ * Resetter for publicMacAddress
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_publicMacAddress(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for vlan.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_netConfigType_get_vlan(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for vlan.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param arg_vlan int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_vlan(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const int arg_vlan);
++
++ /**
++ * Resetter for vlan
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_vlan(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for privateIp.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_privateIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for privateIp.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param arg_privateIp axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_privateIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_privateIp);
++
++ /**
++ * Resetter for privateIp
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_privateIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for publicIp.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_netConfigType_get_publicIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for publicIp.
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param arg_publicIp axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_set_publicIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_publicIp);
++
++ /**
++ * Resetter for publicIp
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_reset_publicIp(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether privateMacAddress is nill
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_privateMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether publicMacAddress is nill
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_publicMacAddress_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether vlan is nill
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_vlan_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether privateIp is nill
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_privateIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether publicIp is nill
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_publicIp_nil(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_netConfigType_deserialize(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_netConfigType_declare_parent_namespaces(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _netConfigType adb_netConfigType_t object
++ * @param env pointer to environment struct
++ * @param netConfigType_om_node node to serialize from
++ * @param netConfigType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_netConfigType_serialize(
++ adb_netConfigType_t* _netConfigType,
++ const axutil_env_t *env,
++ axiom_node_t* netConfigType_om_node, axiom_element_t *netConfigType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_netConfigType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_netConfigType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_NETCONFIGTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_volumeType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_volumeType.c
+@@ -0,0 +1,1547 @@
++
++
++ /**
++ * adb_volumeType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_volumeType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = volumeType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_volumeType
++ {
++ axis2_char_t* property_volumeId;
++
++
++ axis2_bool_t is_valid_volumeId;
++
++
++ axis2_char_t* property_remoteDev;
++
++
++ axis2_bool_t is_valid_remoteDev;
++
++
++ axis2_char_t* property_localDev;
++
++
++ axis2_bool_t is_valid_localDev;
++
++
++ axis2_char_t* property_state;
++
++
++ axis2_bool_t is_valid_state;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_volumeId_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_remoteDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_localDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_state_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_volumeType_t* AXIS2_CALL
++ adb_volumeType_create(
++ const axutil_env_t *env)
++ {
++ adb_volumeType_t *_volumeType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _volumeType = (adb_volumeType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_volumeType_t));
++
++ if(NULL == _volumeType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_volumeType, 0, sizeof(adb_volumeType_t));
++
++ _volumeType->property_volumeId = NULL;
++ _volumeType->is_valid_volumeId = AXIS2_FALSE;
++ _volumeType->property_remoteDev = NULL;
++ _volumeType->is_valid_remoteDev = AXIS2_FALSE;
++ _volumeType->property_localDev = NULL;
++ _volumeType->is_valid_localDev = AXIS2_FALSE;
++ _volumeType->property_state = NULL;
++ _volumeType->is_valid_state = AXIS2_FALSE;
++
++
++ return _volumeType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_free (
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++ adb_volumeType_reset_volumeId(_volumeType, env);
++ adb_volumeType_reset_remoteDev(_volumeType, env);
++ adb_volumeType_reset_localDev(_volumeType, env);
++ adb_volumeType_reset_state(_volumeType, env);
++
++
++ if(_volumeType)
++ {
++ AXIS2_FREE(env->allocator, _volumeType);
++ _volumeType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_deserialize(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for volumeType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building volumeId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_volumeType_set_volumeId(_volumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_volumeType_set_volumeId(_volumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building remoteDev element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_volumeType_set_remoteDev(_volumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_volumeType_set_remoteDev(_volumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building localDev element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_volumeType_set_localDev(_volumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_volumeType_set_localDev(_volumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building state element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "state", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_volumeType_set_state(_volumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element state");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_volumeType_set_state(_volumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for state ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_volumeType_declare_parent_namespaces(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_volumeType_serialize(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t *text_value_4;
++ axis2_char_t *text_value_4_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_volumeType->is_valid_volumeId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("volumeId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing volumeId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svolumeId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svolumeId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _volumeType->property_volumeId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_volumeType->is_valid_remoteDev)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("remoteDev")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing remoteDev element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sremoteDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sremoteDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _volumeType->property_remoteDev;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_volumeType->is_valid_localDev)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("localDev")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing localDev element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%slocalDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%slocalDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _volumeType->property_localDev;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_volumeType->is_valid_state)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("state")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("state")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing state element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstate>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstate>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_4 = _volumeType->property_state;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
++ if (text_value_4_temp)
++ {
++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
++ AXIS2_FREE(env->allocator, text_value_4_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for volumeId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_volumeId(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL);
++
++
++ return _volumeType->property_volumeId;
++ }
++
++ /**
++ * setter for volumeId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_volumeId(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_volumeId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++ if(_volumeType->is_valid_volumeId &&
++ arg_volumeId == _volumeType->property_volumeId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_volumeType_reset_volumeId(_volumeType, env);
++
++
++ if(NULL == arg_volumeId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _volumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId);
++ if(NULL == _volumeType->property_volumeId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId");
++ return AXIS2_FAILURE;
++ }
++ _volumeType->is_valid_volumeId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for volumeId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_volumeId(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_volumeType->property_volumeId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _volumeType->property_volumeId);
++ _volumeType->property_volumeId = NULL;
++ }
++
++
++
++ _volumeType->is_valid_volumeId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether volumeId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_volumeId_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE);
++
++ return !_volumeType->is_valid_volumeId;
++ }
++
++ /**
++ * Set volumeId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_volumeId_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ return adb_volumeType_reset_volumeId(_volumeType, env);
++ }
++
++
++
++ /**
++ * getter for remoteDev.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_remoteDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL);
++
++
++ return _volumeType->property_remoteDev;
++ }
++
++ /**
++ * setter for remoteDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_remoteDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_remoteDev)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++ if(_volumeType->is_valid_remoteDev &&
++ arg_remoteDev == _volumeType->property_remoteDev)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_volumeType_reset_remoteDev(_volumeType, env);
++
++
++ if(NULL == arg_remoteDev)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _volumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev);
++ if(NULL == _volumeType->property_remoteDev)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev");
++ return AXIS2_FAILURE;
++ }
++ _volumeType->is_valid_remoteDev = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for remoteDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_remoteDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_volumeType->property_remoteDev != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _volumeType->property_remoteDev);
++ _volumeType->property_remoteDev = NULL;
++ }
++
++
++
++ _volumeType->is_valid_remoteDev = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether remoteDev is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_remoteDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE);
++
++ return !_volumeType->is_valid_remoteDev;
++ }
++
++ /**
++ * Set remoteDev to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_remoteDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ return adb_volumeType_reset_remoteDev(_volumeType, env);
++ }
++
++
++
++ /**
++ * getter for localDev.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_localDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL);
++
++
++ return _volumeType->property_localDev;
++ }
++
++ /**
++ * setter for localDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_localDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_localDev)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++ if(_volumeType->is_valid_localDev &&
++ arg_localDev == _volumeType->property_localDev)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_volumeType_reset_localDev(_volumeType, env);
++
++
++ if(NULL == arg_localDev)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _volumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev);
++ if(NULL == _volumeType->property_localDev)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev");
++ return AXIS2_FAILURE;
++ }
++ _volumeType->is_valid_localDev = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for localDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_localDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_volumeType->property_localDev != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _volumeType->property_localDev);
++ _volumeType->property_localDev = NULL;
++ }
++
++
++
++ _volumeType->is_valid_localDev = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether localDev is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_localDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE);
++
++ return !_volumeType->is_valid_localDev;
++ }
++
++ /**
++ * Set localDev to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_localDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ return adb_volumeType_reset_localDev(_volumeType, env);
++ }
++
++
++
++ /**
++ * getter for state.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_state(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, NULL);
++
++
++ return _volumeType->property_state;
++ }
++
++ /**
++ * setter for state
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_state(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_state)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++ if(_volumeType->is_valid_state &&
++ arg_state == _volumeType->property_state)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_volumeType_reset_state(_volumeType, env);
++
++
++ if(NULL == arg_state)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _volumeType->property_state = (axis2_char_t *)axutil_strdup(env, arg_state);
++ if(NULL == _volumeType->property_state)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for state");
++ return AXIS2_FAILURE;
++ }
++ _volumeType->is_valid_state = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for state
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_state(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_volumeType->property_state != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _volumeType->property_state);
++ _volumeType->property_state = NULL;
++ }
++
++
++
++ _volumeType->is_valid_state = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether state is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_state_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _volumeType, AXIS2_TRUE);
++
++ return !_volumeType->is_valid_state;
++ }
++
++ /**
++ * Set state to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_state_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env)
++ {
++ return adb_volumeType_reset_state(_volumeType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_volumeType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_volumeType.h
+@@ -0,0 +1,351 @@
++
++
++ #ifndef ADB_VOLUMETYPE_H
++ #define ADB_VOLUMETYPE_H
++
++ /**
++ * adb_volumeType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_volumeType class
++ */
++ typedef struct adb_volumeType adb_volumeType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_volumeType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_volumeType_t object
++ */
++ adb_volumeType_t* AXIS2_CALL
++ adb_volumeType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_volumeType_t object
++ * @param _volumeType adb_volumeType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_free (
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for volumeId.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_volumeId(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for volumeId.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_volumeId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_volumeId(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_volumeId);
++
++ /**
++ * Resetter for volumeId
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_volumeId(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for remoteDev.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_remoteDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for remoteDev.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_remoteDev axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_remoteDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_remoteDev);
++
++ /**
++ * Resetter for remoteDev
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_remoteDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for localDev.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_localDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for localDev.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_localDev axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_localDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_localDev);
++
++ /**
++ * Resetter for localDev
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_localDev(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for state.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_volumeType_get_state(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for state.
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_state axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_set_state(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_state);
++
++ /**
++ * Resetter for state
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_reset_state(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether volumeId is nill
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_volumeId_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether remoteDev is nill
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_remoteDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether localDev is nill
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_localDev_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether state is nill
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_state_nil(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_volumeType_deserialize(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_volumeType_declare_parent_namespaces(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _volumeType adb_volumeType_t object
++ * @param env pointer to environment struct
++ * @param volumeType_om_node node to serialize from
++ * @param volumeType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_volumeType_serialize(
++ adb_volumeType_t* _volumeType,
++ const axutil_env_t *env,
++ axiom_node_t* volumeType_om_node, axiom_element_t *volumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_volumeType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_volumeType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_VOLUMETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccInstanceType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccInstanceType.c
+@@ -0,0 +1,6134 @@
++
++
++ /**
++ * adb_ccInstanceType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_ccInstanceType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = ccInstanceType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_ccInstanceType
++ {
++ axis2_char_t* property_imageId;
++
++
++ axis2_bool_t is_valid_imageId;
++
++
++ axis2_char_t* property_kernelId;
++
++
++ axis2_bool_t is_valid_kernelId;
++
++
++ axis2_char_t* property_ramdiskId;
++
++
++ axis2_bool_t is_valid_ramdiskId;
++
++
++ axis2_char_t* property_instanceId;
++
++
++ axis2_bool_t is_valid_instanceId;
++
++
++ adb_virtualMachineType_t* property_instanceType;
++
++
++ axis2_bool_t is_valid_instanceType;
++
++
++ axis2_char_t* property_keyName;
++
++
++ axis2_bool_t is_valid_keyName;
++
++
++ axutil_date_time_t* property_launchTime;
++
++
++ axis2_bool_t is_valid_launchTime;
++
++
++ axis2_char_t* property_stateName;
++
++
++ axis2_bool_t is_valid_stateName;
++
++
++ adb_netConfigType_t* property_netParams;
++
++
++ axis2_bool_t is_valid_netParams;
++
++
++ axis2_char_t* property_ownerId;
++
++
++ axis2_bool_t is_valid_ownerId;
++
++
++ axis2_char_t* property_reservationId;
++
++
++ axis2_bool_t is_valid_reservationId;
++
++
++ axis2_char_t* property_serviceTag;
++
++
++ axis2_bool_t is_valid_serviceTag;
++
++
++ axis2_char_t* property_userData;
++
++
++ axis2_bool_t is_valid_userData;
++
++
++ axis2_char_t* property_launchIndex;
++
++
++ axis2_bool_t is_valid_launchIndex;
++
++
++ axutil_array_list_t* property_groupNames;
++
++
++ axis2_bool_t is_valid_groupNames;
++
++
++ axutil_array_list_t* property_volumes;
++
++
++ axis2_bool_t is_valid_volumes;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_imageId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_kernelId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ramdiskId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceType_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_keyName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchTime_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_stateName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_netParams_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ownerId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_reservationId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_serviceTag_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_userData_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchIndex_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_ccInstanceType_t* AXIS2_CALL
++ adb_ccInstanceType_create(
++ const axutil_env_t *env)
++ {
++ adb_ccInstanceType_t *_ccInstanceType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _ccInstanceType = (adb_ccInstanceType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_ccInstanceType_t));
++
++ if(NULL == _ccInstanceType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_ccInstanceType, 0, sizeof(adb_ccInstanceType_t));
++
++ _ccInstanceType->property_imageId = NULL;
++ _ccInstanceType->is_valid_imageId = AXIS2_FALSE;
++ _ccInstanceType->property_kernelId = NULL;
++ _ccInstanceType->is_valid_kernelId = AXIS2_FALSE;
++ _ccInstanceType->property_ramdiskId = NULL;
++ _ccInstanceType->is_valid_ramdiskId = AXIS2_FALSE;
++ _ccInstanceType->property_instanceId = NULL;
++ _ccInstanceType->is_valid_instanceId = AXIS2_FALSE;
++ _ccInstanceType->property_instanceType = NULL;
++ _ccInstanceType->is_valid_instanceType = AXIS2_FALSE;
++ _ccInstanceType->property_keyName = NULL;
++ _ccInstanceType->is_valid_keyName = AXIS2_FALSE;
++ _ccInstanceType->property_launchTime = NULL;
++ _ccInstanceType->is_valid_launchTime = AXIS2_FALSE;
++ _ccInstanceType->property_stateName = NULL;
++ _ccInstanceType->is_valid_stateName = AXIS2_FALSE;
++ _ccInstanceType->property_netParams = NULL;
++ _ccInstanceType->is_valid_netParams = AXIS2_FALSE;
++ _ccInstanceType->property_ownerId = NULL;
++ _ccInstanceType->is_valid_ownerId = AXIS2_FALSE;
++ _ccInstanceType->property_reservationId = NULL;
++ _ccInstanceType->is_valid_reservationId = AXIS2_FALSE;
++ _ccInstanceType->property_serviceTag = NULL;
++ _ccInstanceType->is_valid_serviceTag = AXIS2_FALSE;
++ _ccInstanceType->property_userData = NULL;
++ _ccInstanceType->is_valid_userData = AXIS2_FALSE;
++ _ccInstanceType->property_launchIndex = NULL;
++ _ccInstanceType->is_valid_launchIndex = AXIS2_FALSE;
++ _ccInstanceType->property_groupNames = NULL;
++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE;
++ _ccInstanceType->property_volumes = NULL;
++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE;
++
++
++ return _ccInstanceType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_free (
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ adb_ccInstanceType_reset_imageId(_ccInstanceType, env);
++ adb_ccInstanceType_reset_kernelId(_ccInstanceType, env);
++ adb_ccInstanceType_reset_ramdiskId(_ccInstanceType, env);
++ adb_ccInstanceType_reset_instanceId(_ccInstanceType, env);
++ adb_ccInstanceType_reset_instanceType(_ccInstanceType, env);
++ adb_ccInstanceType_reset_keyName(_ccInstanceType, env);
++ adb_ccInstanceType_reset_launchTime(_ccInstanceType, env);
++ adb_ccInstanceType_reset_stateName(_ccInstanceType, env);
++ adb_ccInstanceType_reset_netParams(_ccInstanceType, env);
++ adb_ccInstanceType_reset_ownerId(_ccInstanceType, env);
++ adb_ccInstanceType_reset_reservationId(_ccInstanceType, env);
++ adb_ccInstanceType_reset_serviceTag(_ccInstanceType, env);
++ adb_ccInstanceType_reset_userData(_ccInstanceType, env);
++ adb_ccInstanceType_reset_launchIndex(_ccInstanceType, env);
++ adb_ccInstanceType_reset_groupNames(_ccInstanceType, env);
++ adb_ccInstanceType_reset_volumes(_ccInstanceType, env);
++
++
++ if(_ccInstanceType)
++ {
++ AXIS2_FREE(env->allocator, _ccInstanceType);
++ _ccInstanceType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_deserialize(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for ccInstanceType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building imageId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_imageId(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_imageId(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building kernelId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_kernelId(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_kernelId(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building ramdiskId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_ramdiskId(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_ramdiskId(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building instanceId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_instanceId(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_instanceId(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building instanceType element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (adb_virtualMachineType_is_particle() ||
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ element = (void*)adb_virtualMachineType_create(env);
++
++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element,
++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType");
++ }
++ else
++ {
++ status = adb_ccInstanceType_set_instanceType(_ccInstanceType, env,
++ (adb_virtualMachineType_t*)element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building keyName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_keyName(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_keyName(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building launchTime element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "launchTime", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ element = (void*)axutil_date_time_create(env);
++ status = axutil_date_time_deserialize_date_time((axutil_date_time_t*)element, env,
++ text_value);
++ if(AXIS2_FAILURE == status)
++ {
++ if(element != NULL)
++ {
++ axutil_date_time_free((axutil_date_time_t*)element, env);
++ }
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element launchTime ");
++ }
++ else
++ {
++ status = adb_ccInstanceType_set_launchTime(_ccInstanceType, env,
++ (axutil_date_time_t*)element);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchTime");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchTime ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building stateName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "stateName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_stateName(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element stateName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_stateName(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for stateName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building netParams element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "netParams", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (adb_netConfigType_is_particle() ||
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ element = (void*)adb_netConfigType_create(env);
++
++ status = adb_netConfigType_deserialize((adb_netConfigType_t*)element,
++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element netParams");
++ }
++ else
++ {
++ status = adb_ccInstanceType_set_netParams(_ccInstanceType, env,
++ (adb_netConfigType_t*)element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netParams ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building ownerId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "ownerId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_ownerId(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ownerId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_ownerId(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ownerId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building reservationId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_reservationId(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_reservationId(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building serviceTag element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_serviceTag(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_serviceTag(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userData element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_userData(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_userData(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building launchIndex element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccInstanceType_set_launchIndex(_ccInstanceType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_ccInstanceType_set_launchIndex(_ccInstanceType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building groupNames array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building groupNames element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "groupNames", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element groupNames");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for groupNames ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_ccInstanceType_set_groupNames(_ccInstanceType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building volumes array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building volumes element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "volumes", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ element = (void*)adb_volumeType_create(env);
++
++ status = adb_volumeType_deserialize((adb_volumeType_t*)element, env,
++ ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element volumes ");
++ }
++ else
++ {
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumes ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_ccInstanceType_set_volumes(_ccInstanceType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_ccInstanceType_declare_parent_namespaces(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_ccInstanceType_serialize(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t *text_value_4;
++ axis2_char_t *text_value_4_temp;
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *text_value_7;
++ axis2_char_t *text_value_7_temp;
++
++ axis2_char_t *text_value_8;
++ axis2_char_t *text_value_8_temp;
++
++ axis2_char_t text_value_9[64];
++
++ axis2_char_t *text_value_10;
++ axis2_char_t *text_value_10_temp;
++
++ axis2_char_t *text_value_11;
++ axis2_char_t *text_value_11_temp;
++
++ axis2_char_t *text_value_12;
++ axis2_char_t *text_value_12_temp;
++
++ axis2_char_t *text_value_13;
++ axis2_char_t *text_value_13_temp;
++
++ axis2_char_t *text_value_14;
++ axis2_char_t *text_value_14_temp;
++
++ axis2_char_t *text_value_15;
++ axis2_char_t *text_value_15_temp;
++
++ axis2_char_t text_value_16[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_imageId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("imageId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing imageId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%simageId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%simageId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _ccInstanceType->property_imageId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_kernelId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("kernelId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing kernelId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%skernelId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%skernelId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _ccInstanceType->property_kernelId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_ramdiskId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("ramdiskId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing ramdiskId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sramdiskId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sramdiskId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _ccInstanceType->property_ramdiskId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_instanceId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing instanceId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_4 = _ccInstanceType->property_instanceId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
++ if (text_value_4_temp)
++ {
++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
++ AXIS2_FREE(env->allocator, text_value_4_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_instanceType)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceType")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing instanceType element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sinstanceType",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sinstanceType>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_virtualMachineType_serialize(_ccInstanceType->property_instanceType,
++ env, current_node, parent_element,
++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_keyName)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("keyName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing keyName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%skeyName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%skeyName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _ccInstanceType->property_keyName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_launchTime)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("launchTime")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchTime")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing launchTime element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%slaunchTime>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%slaunchTime>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_7 = axutil_date_time_serialize_date_time(_ccInstanceType->property_launchTime, env);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_stateName)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("stateName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("stateName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing stateName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstateName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstateName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_8 = _ccInstanceType->property_stateName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
++ if (text_value_8_temp)
++ {
++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
++ AXIS2_FREE(env->allocator, text_value_8_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_netParams)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("netParams")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netParams")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing netParams element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%snetParams",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%snetParams>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ if(!adb_netConfigType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_netConfigType_serialize(_ccInstanceType->property_netParams,
++ env, current_node, parent_element,
++ adb_netConfigType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_netConfigType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_ownerId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("ownerId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ownerId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing ownerId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sownerId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sownerId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_10 = _ccInstanceType->property_ownerId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE);
++ if (text_value_10_temp)
++ {
++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp));
++ AXIS2_FREE(env->allocator, text_value_10_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_reservationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("reservationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing reservationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreservationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreservationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_11 = _ccInstanceType->property_reservationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE);
++ if (text_value_11_temp)
++ {
++ axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp));
++ AXIS2_FREE(env->allocator, text_value_11_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_serviceTag)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("serviceTag")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing serviceTag element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sserviceTag>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sserviceTag>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_12 = _ccInstanceType->property_serviceTag;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE);
++ if (text_value_12_temp)
++ {
++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp));
++ AXIS2_FREE(env->allocator, text_value_12_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_userData)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userData")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userData element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserData>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserData>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_13 = _ccInstanceType->property_userData;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE);
++ if (text_value_13_temp)
++ {
++ axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp));
++ AXIS2_FREE(env->allocator, text_value_13_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_launchIndex)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("launchIndex")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing launchIndex element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%slaunchIndex>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%slaunchIndex>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_14 = _ccInstanceType->property_launchIndex;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE);
++ if (text_value_14_temp)
++ {
++ axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp));
++ AXIS2_FREE(env->allocator, text_value_14_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_groupNames)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("groupNames")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("groupNames")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing groupNames array
++ */
++ if (_ccInstanceType->property_groupNames != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sgroupNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sgroupNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_ccInstanceType->property_groupNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing groupNames element
++ */
++
++
++
++ text_value_15 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_15_temp = axutil_xml_quote_string(env, text_value_15, AXIS2_TRUE);
++ if (text_value_15_temp)
++ {
++ axutil_stream_write(stream, env, text_value_15_temp, axutil_strlen(text_value_15_temp));
++ AXIS2_FREE(env->allocator, text_value_15_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccInstanceType->is_valid_volumes)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("volumes")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumes")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing volumes array
++ */
++ if (_ccInstanceType->property_volumes != NULL)
++ {
++
++
++ sprintf(start_input_str, "<%s%svolumes",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%svolumes>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_ccInstanceType->property_volumes, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing volumes element
++ */
++
++
++
++ if(!adb_volumeType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_volumeType_serialize((adb_volumeType_t*)element,
++ env, current_node, parent_element,
++ adb_volumeType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_volumeType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for imageId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_imageId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_imageId;
++ }
++
++ /**
++ * setter for imageId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_imageId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_imageId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_imageId &&
++ arg_imageId == _ccInstanceType->property_imageId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_imageId(_ccInstanceType, env);
++
++
++ if(NULL == arg_imageId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId);
++ if(NULL == _ccInstanceType->property_imageId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_imageId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for imageId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_imageId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_imageId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_imageId);
++ _ccInstanceType->property_imageId = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_imageId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether imageId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_imageId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_imageId;
++ }
++
++ /**
++ * Set imageId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_imageId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_imageId(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for kernelId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_kernelId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_kernelId;
++ }
++
++ /**
++ * setter for kernelId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_kernelId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_kernelId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_kernelId &&
++ arg_kernelId == _ccInstanceType->property_kernelId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_kernelId(_ccInstanceType, env);
++
++
++ if(NULL == arg_kernelId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId);
++ if(NULL == _ccInstanceType->property_kernelId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_kernelId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for kernelId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_kernelId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_kernelId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_kernelId);
++ _ccInstanceType->property_kernelId = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_kernelId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether kernelId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_kernelId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_kernelId;
++ }
++
++ /**
++ * Set kernelId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_kernelId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_kernelId(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for ramdiskId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_ramdiskId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_ramdiskId;
++ }
++
++ /**
++ * setter for ramdiskId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ramdiskId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ramdiskId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_ramdiskId &&
++ arg_ramdiskId == _ccInstanceType->property_ramdiskId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_ramdiskId(_ccInstanceType, env);
++
++
++ if(NULL == arg_ramdiskId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId);
++ if(NULL == _ccInstanceType->property_ramdiskId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_ramdiskId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for ramdiskId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_ramdiskId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_ramdiskId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_ramdiskId);
++ _ccInstanceType->property_ramdiskId = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_ramdiskId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether ramdiskId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_ramdiskId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_ramdiskId;
++ }
++
++ /**
++ * Set ramdiskId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ramdiskId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_ramdiskId(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for instanceId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_instanceId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_instanceId;
++ }
++
++ /**
++ * setter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_instanceId &&
++ arg_instanceId == _ccInstanceType->property_instanceId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_instanceId(_ccInstanceType, env);
++
++
++ if(NULL == arg_instanceId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
++ if(NULL == _ccInstanceType->property_instanceId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_instanceId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_instanceId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_instanceId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_instanceId);
++ _ccInstanceType->property_instanceId = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_instanceId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_instanceId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_instanceId;
++ }
++
++ /**
++ * Set instanceId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_instanceId(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for instanceType.
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_ccInstanceType_get_instanceType(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_instanceType;
++ }
++
++ /**
++ * setter for instanceType
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceType(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceType)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_instanceType &&
++ arg_instanceType == _ccInstanceType->property_instanceType)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_instanceType(_ccInstanceType, env);
++
++
++ if(NULL == arg_instanceType)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_instanceType = arg_instanceType;
++ _ccInstanceType->is_valid_instanceType = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for instanceType
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_instanceType(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_instanceType != NULL)
++ {
++
++
++ adb_virtualMachineType_free(_ccInstanceType->property_instanceType, env);
++ _ccInstanceType->property_instanceType = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_instanceType = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceType is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_instanceType_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_instanceType;
++ }
++
++ /**
++ * Set instanceType to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceType_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_instanceType(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for keyName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_keyName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_keyName;
++ }
++
++ /**
++ * setter for keyName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_keyName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_keyName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_keyName &&
++ arg_keyName == _ccInstanceType->property_keyName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_keyName(_ccInstanceType, env);
++
++
++ if(NULL == arg_keyName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName);
++ if(NULL == _ccInstanceType->property_keyName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_keyName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for keyName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_keyName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_keyName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_keyName);
++ _ccInstanceType->property_keyName = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_keyName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether keyName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_keyName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_keyName;
++ }
++
++ /**
++ * Set keyName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_keyName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_keyName(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for launchTime.
++ */
++ axutil_date_time_t* AXIS2_CALL
++ adb_ccInstanceType_get_launchTime(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_launchTime;
++ }
++
++ /**
++ * setter for launchTime
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchTime(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axutil_date_time_t* arg_launchTime)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_launchTime &&
++ arg_launchTime == _ccInstanceType->property_launchTime)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_launchTime(_ccInstanceType, env);
++
++
++ if(NULL == arg_launchTime)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_launchTime = arg_launchTime;
++ _ccInstanceType->is_valid_launchTime = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for launchTime
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_launchTime(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_launchTime != NULL)
++ {
++
++
++ axutil_date_time_free(_ccInstanceType->property_launchTime, env);
++ _ccInstanceType->property_launchTime = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_launchTime = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether launchTime is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_launchTime_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_launchTime;
++ }
++
++ /**
++ * Set launchTime to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchTime_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_launchTime(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for stateName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_stateName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_stateName;
++ }
++
++ /**
++ * setter for stateName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_stateName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_stateName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_stateName &&
++ arg_stateName == _ccInstanceType->property_stateName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_stateName(_ccInstanceType, env);
++
++
++ if(NULL == arg_stateName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_stateName = (axis2_char_t *)axutil_strdup(env, arg_stateName);
++ if(NULL == _ccInstanceType->property_stateName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for stateName");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_stateName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for stateName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_stateName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_stateName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_stateName);
++ _ccInstanceType->property_stateName = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_stateName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether stateName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_stateName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_stateName;
++ }
++
++ /**
++ * Set stateName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_stateName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_stateName(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for netParams.
++ */
++ adb_netConfigType_t* AXIS2_CALL
++ adb_ccInstanceType_get_netParams(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_netParams;
++ }
++
++ /**
++ * setter for netParams
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_netParams(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ adb_netConfigType_t* arg_netParams)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_netParams &&
++ arg_netParams == _ccInstanceType->property_netParams)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_netParams(_ccInstanceType, env);
++
++
++ if(NULL == arg_netParams)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_netParams = arg_netParams;
++ _ccInstanceType->is_valid_netParams = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for netParams
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_netParams(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_netParams != NULL)
++ {
++
++
++ adb_netConfigType_free(_ccInstanceType->property_netParams, env);
++ _ccInstanceType->property_netParams = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_netParams = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether netParams is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_netParams_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_netParams;
++ }
++
++ /**
++ * Set netParams to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_netParams_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_netParams(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for ownerId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_ownerId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_ownerId;
++ }
++
++ /**
++ * setter for ownerId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ownerId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ownerId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_ownerId &&
++ arg_ownerId == _ccInstanceType->property_ownerId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_ownerId(_ccInstanceType, env);
++
++
++ if(NULL == arg_ownerId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_ownerId = (axis2_char_t *)axutil_strdup(env, arg_ownerId);
++ if(NULL == _ccInstanceType->property_ownerId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ownerId");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_ownerId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for ownerId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_ownerId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_ownerId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_ownerId);
++ _ccInstanceType->property_ownerId = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_ownerId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether ownerId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_ownerId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_ownerId;
++ }
++
++ /**
++ * Set ownerId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ownerId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_ownerId(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for reservationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_reservationId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_reservationId;
++ }
++
++ /**
++ * setter for reservationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_reservationId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_reservationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_reservationId &&
++ arg_reservationId == _ccInstanceType->property_reservationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_reservationId(_ccInstanceType, env);
++
++
++ if(NULL == arg_reservationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId);
++ if(NULL == _ccInstanceType->property_reservationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_reservationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for reservationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_reservationId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_reservationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_reservationId);
++ _ccInstanceType->property_reservationId = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_reservationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether reservationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_reservationId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_reservationId;
++ }
++
++ /**
++ * Set reservationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_reservationId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_reservationId(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for serviceTag.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_serviceTag(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_serviceTag;
++ }
++
++ /**
++ * setter for serviceTag
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_serviceTag(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_serviceTag)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_serviceTag &&
++ arg_serviceTag == _ccInstanceType->property_serviceTag)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_serviceTag(_ccInstanceType, env);
++
++
++ if(NULL == arg_serviceTag)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag);
++ if(NULL == _ccInstanceType->property_serviceTag)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_serviceTag = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for serviceTag
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_serviceTag(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_serviceTag != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_serviceTag);
++ _ccInstanceType->property_serviceTag = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_serviceTag = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether serviceTag is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_serviceTag_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_serviceTag;
++ }
++
++ /**
++ * Set serviceTag to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_serviceTag_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_serviceTag(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for userData.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_userData(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_userData;
++ }
++
++ /**
++ * setter for userData
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_userData(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userData)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_userData &&
++ arg_userData == _ccInstanceType->property_userData)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_userData(_ccInstanceType, env);
++
++
++ if(NULL == arg_userData)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData);
++ if(NULL == _ccInstanceType->property_userData)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_userData = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userData
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_userData(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_userData != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_userData);
++ _ccInstanceType->property_userData = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_userData = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userData is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_userData_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_userData;
++ }
++
++ /**
++ * Set userData to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_userData_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_userData(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for launchIndex.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_launchIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_launchIndex;
++ }
++
++ /**
++ * setter for launchIndex
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_launchIndex)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_launchIndex &&
++ arg_launchIndex == _ccInstanceType->property_launchIndex)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_launchIndex(_ccInstanceType, env);
++
++
++ if(NULL == arg_launchIndex)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex);
++ if(NULL == _ccInstanceType->property_launchIndex)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex");
++ return AXIS2_FAILURE;
++ }
++ _ccInstanceType->is_valid_launchIndex = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for launchIndex
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_launchIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccInstanceType->property_launchIndex != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _ccInstanceType->property_launchIndex);
++ _ccInstanceType->property_launchIndex = NULL;
++ }
++
++
++
++ _ccInstanceType->is_valid_launchIndex = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether launchIndex is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_launchIndex_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_launchIndex;
++ }
++
++ /**
++ * Set launchIndex to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchIndex_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_launchIndex(_ccInstanceType, env);
++ }
++
++
++
++ /**
++ * getter for groupNames.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_ccInstanceType_get_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_groupNames;
++ }
++
++ /**
++ * setter for groupNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_groupNames)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_groupNames &&
++ arg_groupNames == _ccInstanceType->property_groupNames)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_groupNames, env);
++
++ if (size > 64)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has exceed the maxOccurs(64)");
++ return AXIS2_FAILURE;
++ }
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "groupNames has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_groupNames, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_ccInstanceType_reset_groupNames(_ccInstanceType, env);
++
++
++ if(NULL == arg_groupNames)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_groupNames = arg_groupNames;
++ if(non_nil_exists)
++ {
++ _ccInstanceType->is_valid_groupNames = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of groupNames.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_groupNames_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ if(_ccInstanceType->property_groupNames == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_ccInstanceType->property_groupNames, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of groupNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_groupNames)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if( _ccInstanceType->is_valid_groupNames &&
++ _ccInstanceType->property_groupNames &&
++
++ arg_groupNames == (axis2_char_t*)axutil_array_list_get(_ccInstanceType->property_groupNames, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_groupNames)
++ {
++ if(_ccInstanceType->property_groupNames != NULL)
++ {
++ size = axutil_array_list_size(_ccInstanceType->property_groupNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_ccInstanceType->property_groupNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_ccInstanceType->property_groupNames == NULL)
++ {
++ _ccInstanceType->property_groupNames = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE;
++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, axutil_strdup(env, arg_groupNames));
++ _ccInstanceType->is_valid_groupNames = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to groupNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_add_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_groupNames)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_groupNames)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_ccInstanceType->property_groupNames == NULL)
++ {
++ _ccInstanceType->property_groupNames = axutil_array_list_create(env, 10);
++ }
++ if(_ccInstanceType->property_groupNames == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for groupNames");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_ccInstanceType->property_groupNames , env, axutil_strdup(env, arg_groupNames));
++ _ccInstanceType->is_valid_groupNames = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the groupNames array.
++ */
++ int AXIS2_CALL
++ adb_ccInstanceType_sizeof_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, -1);
++ if(_ccInstanceType->property_groupNames == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_ccInstanceType->property_groupNames, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_remove_groupNames_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_ccInstanceType_set_groupNames_nil_at(_ccInstanceType, env, i);
++ }
++
++
++
++ /**
++ * resetter for groupNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++ if (_ccInstanceType->property_groupNames != NULL)
++ {
++ count = axutil_array_list_size(_ccInstanceType->property_groupNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_ccInstanceType->property_groupNames, env);
++ }
++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether groupNames is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_groupNames_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_groupNames;
++ }
++
++ /**
++ * Set groupNames to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_groupNames(_ccInstanceType, env);
++ }
++
++
++ /**
++ * Check whether groupNames is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_groupNames_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return (_ccInstanceType->is_valid_groupNames == AXIS2_FALSE ||
++ NULL == _ccInstanceType->property_groupNames ||
++ NULL == axutil_array_list_get(_ccInstanceType->property_groupNames, env, i));
++ }
++
++ /**
++ * Set groupNames to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->property_groupNames == NULL ||
++ _ccInstanceType->is_valid_groupNames == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_ccInstanceType->property_groupNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_ccInstanceType->property_groupNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of groupNames is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_ccInstanceType->property_groupNames == NULL)
++ {
++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_ccInstanceType->property_groupNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _ccInstanceType->is_valid_groupNames = AXIS2_FALSE;
++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_ccInstanceType->property_groupNames , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for volumes.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_ccInstanceType_get_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ return _ccInstanceType->property_volumes;
++ }
++
++ /**
++ * setter for volumes
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_volumes)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_volumes &&
++ arg_volumes == _ccInstanceType->property_volumes)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_volumes, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "volumes has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_volumes, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_ccInstanceType_reset_volumes(_ccInstanceType, env);
++
++
++ if(NULL == arg_volumes)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccInstanceType->property_volumes = arg_volumes;
++ if(non_nil_exists)
++ {
++ _ccInstanceType->is_valid_volumes = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of volumes.
++ */
++ adb_volumeType_t* AXIS2_CALL
++ adb_ccInstanceType_get_volumes_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ adb_volumeType_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, NULL);
++
++
++ if(_ccInstanceType->property_volumes == NULL)
++ {
++ return (adb_volumeType_t*)0;
++ }
++ ret_val = (adb_volumeType_t*)axutil_array_list_get(_ccInstanceType->property_volumes, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of volumes.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i,
++ adb_volumeType_t* arg_volumes)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if( _ccInstanceType->is_valid_volumes &&
++ _ccInstanceType->property_volumes &&
++
++ arg_volumes == (adb_volumeType_t*)axutil_array_list_get(_ccInstanceType->property_volumes, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_volumes)
++ {
++ if(_ccInstanceType->property_volumes != NULL)
++ {
++ size = axutil_array_list_size(_ccInstanceType->property_volumes, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_ccInstanceType->property_volumes, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_ccInstanceType->property_volumes == NULL)
++ {
++ _ccInstanceType->property_volumes = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_volumeType_free((adb_volumeType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE;
++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, arg_volumes);
++ _ccInstanceType->is_valid_volumes = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to volumes.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_add_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ adb_volumeType_t* arg_volumes)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_volumes)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_ccInstanceType->property_volumes == NULL)
++ {
++ _ccInstanceType->property_volumes = axutil_array_list_create(env, 10);
++ }
++ if(_ccInstanceType->property_volumes == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for volumes");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_ccInstanceType->property_volumes , env, arg_volumes);
++ _ccInstanceType->is_valid_volumes = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the volumes array.
++ */
++ int AXIS2_CALL
++ adb_ccInstanceType_sizeof_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, -1);
++ if(_ccInstanceType->property_volumes == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_ccInstanceType->property_volumes, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_remove_volumes_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_ccInstanceType_set_volumes_nil_at(_ccInstanceType, env, i);
++ }
++
++
++
++ /**
++ * resetter for volumes
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++
++
++ if (_ccInstanceType->property_volumes != NULL)
++ {
++ count = axutil_array_list_size(_ccInstanceType->property_volumes, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ adb_volumeType_free((adb_volumeType_t*)element, env);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_ccInstanceType->property_volumes, env);
++ }
++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether volumes is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_volumes_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return !_ccInstanceType->is_valid_volumes;
++ }
++
++ /**
++ * Set volumes to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_volumes(_ccInstanceType, env);
++ }
++
++
++ /**
++ * Check whether volumes is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_volumes_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_TRUE);
++
++ return (_ccInstanceType->is_valid_volumes == AXIS2_FALSE ||
++ NULL == _ccInstanceType->property_volumes ||
++ NULL == axutil_array_list_get(_ccInstanceType->property_volumes, env, i));
++ }
++
++ /**
++ * Set volumes to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->property_volumes == NULL ||
++ _ccInstanceType->is_valid_volumes == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_ccInstanceType->property_volumes, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_ccInstanceType->property_volumes, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of volumes is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_ccInstanceType->property_volumes == NULL)
++ {
++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_ccInstanceType->property_volumes, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_volumeType_free((adb_volumeType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _ccInstanceType->is_valid_volumes = AXIS2_FALSE;
++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_ccInstanceType->property_volumes , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccInstanceType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccInstanceType.h
+@@ -0,0 +1,1199 @@
++
++
++ #ifndef ADB_CCINSTANCETYPE_H
++ #define ADB_CCINSTANCETYPE_H
++
++ /**
++ * adb_ccInstanceType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_ccInstanceType class
++ */
++ typedef struct adb_ccInstanceType adb_ccInstanceType_t;
++
++
++ #include "adb_virtualMachineType.h"
++
++ #include "adb_netConfigType.h"
++
++ #include "adb_volumeType.h"
++
++ #include
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_ccInstanceType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_ccInstanceType_t object
++ */
++ adb_ccInstanceType_t* AXIS2_CALL
++ adb_ccInstanceType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_ccInstanceType_t object
++ * @param _ccInstanceType adb_ccInstanceType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_free (
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for imageId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_imageId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for imageId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_imageId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_imageId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_imageId);
++
++ /**
++ * Resetter for imageId
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_imageId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for kernelId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_kernelId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for kernelId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_kernelId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_kernelId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_kernelId);
++
++ /**
++ * Resetter for kernelId
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_kernelId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for ramdiskId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_ramdiskId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for ramdiskId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_ramdiskId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ramdiskId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ramdiskId);
++
++ /**
++ * Resetter for ramdiskId
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_ramdiskId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_instanceId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId);
++
++ /**
++ * Resetter for instanceId
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_instanceId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceType.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return adb_virtualMachineType_t*
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_ccInstanceType_get_instanceType(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceType.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceType adb_virtualMachineType_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_instanceType(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceType);
++
++ /**
++ * Resetter for instanceType
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_instanceType(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for keyName.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_keyName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for keyName.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_keyName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_keyName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_keyName);
++
++ /**
++ * Resetter for keyName
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_keyName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for launchTime.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axutil_date_time_t*
++ */
++ axutil_date_time_t* AXIS2_CALL
++ adb_ccInstanceType_get_launchTime(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for launchTime.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_launchTime axutil_date_time_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchTime(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axutil_date_time_t* arg_launchTime);
++
++ /**
++ * Resetter for launchTime
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_launchTime(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for stateName.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_stateName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for stateName.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_stateName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_stateName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_stateName);
++
++ /**
++ * Resetter for stateName
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_stateName(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for netParams.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return adb_netConfigType_t*
++ */
++ adb_netConfigType_t* AXIS2_CALL
++ adb_ccInstanceType_get_netParams(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for netParams.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_netParams adb_netConfigType_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_netParams(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ adb_netConfigType_t* arg_netParams);
++
++ /**
++ * Resetter for netParams
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_netParams(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for ownerId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_ownerId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for ownerId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_ownerId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_ownerId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ownerId);
++
++ /**
++ * Resetter for ownerId
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_ownerId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for reservationId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_reservationId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for reservationId.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_reservationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_reservationId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_reservationId);
++
++ /**
++ * Resetter for reservationId
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_reservationId(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for serviceTag.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_serviceTag(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for serviceTag.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_serviceTag axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_serviceTag(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_serviceTag);
++
++ /**
++ * Resetter for serviceTag
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_serviceTag(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userData.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_userData(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userData.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_userData axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_userData(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userData);
++
++ /**
++ * Resetter for userData
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_userData(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for launchIndex.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_launchIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for launchIndex.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_launchIndex axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_launchIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_launchIndex);
++
++ /**
++ * Resetter for launchIndex
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_launchIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for groupNames. Deprecated for array types, Use adb_ccInstanceType_get_groupNames_at instead
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_ccInstanceType_get_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for groupNames.Deprecated for array types, Use adb_ccInstanceType_set_groupNames_at
++ * or adb_ccInstanceType_add_groupNames instead.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_groupNames Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_groupNames);
++
++ /**
++ * Resetter for groupNames
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for volumes. Deprecated for array types, Use adb_ccInstanceType_get_volumes_at instead
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return Array of adb_volumeType_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_ccInstanceType_get_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for volumes.Deprecated for array types, Use adb_ccInstanceType_set_volumes_at
++ * or adb_ccInstanceType_add_volumes instead.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_volumes Array of adb_volumeType_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_volumes);
++
++ /**
++ * Resetter for volumes
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of groupNames.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_ccInstanceType_get_groupNames_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of groupNames. (If the ith already exist, it will be replaced)
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_groupNames element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_groupNames);
++
++
++ /**
++ * Add to groupNames.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_groupNames element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_add_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_groupNames);
++
++ /**
++ * Get the size of the groupNames array.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the groupNames array.
++ */
++ int AXIS2_CALL
++ adb_ccInstanceType_sizeof_groupNames(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of groupNames.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_remove_groupNames_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of volumes.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith adb_volumeType_t* of the array
++ */
++ adb_volumeType_t* AXIS2_CALL
++ adb_ccInstanceType_get_volumes_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of volumes. (If the ith already exist, it will be replaced)
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_volumes element to set adb_volumeType_t* to the array
++ * @return ith adb_volumeType_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i,
++ adb_volumeType_t* arg_volumes);
++
++
++ /**
++ * Add to volumes.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_volumes element to add adb_volumeType_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_add_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ adb_volumeType_t* arg_volumes);
++
++ /**
++ * Get the size of the volumes array.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the volumes array.
++ */
++ int AXIS2_CALL
++ adb_ccInstanceType_sizeof_volumes(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of volumes.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_remove_volumes_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether imageId is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_imageId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether kernelId is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_kernelId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether ramdiskId is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_ramdiskId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceId is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_instanceId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceType is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_instanceType_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether keyName is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_keyName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether launchTime is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_launchTime_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether stateName is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_stateName_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether netParams is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_netParams_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether ownerId is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_ownerId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether reservationId is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_reservationId_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether serviceTag is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_serviceTag_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userData is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_userData_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether launchIndex is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_launchIndex_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether groupNames is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_groupNames_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether volumes is nill
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_volumes_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether groupNames is nill at i
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_groupNames_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set groupNames to nill at i
++ * @param _ccInstanceType _ adb_ccInstanceType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_groupNames_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether volumes is nill at i
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_volumes_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set volumes to nill at i
++ * @param _ccInstanceType _ adb_ccInstanceType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_volumes_nil_at(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_deserialize(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_ccInstanceType_declare_parent_namespaces(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param ccInstanceType_om_node node to serialize from
++ * @param ccInstanceType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_ccInstanceType_serialize(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ axiom_node_t* ccInstanceType_om_node, axiom_element_t *ccInstanceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_ccInstanceType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_CCINSTANCETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesResponseType.c
+@@ -0,0 +1,2076 @@
++
++
++ /**
++ * adb_runInstancesResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_runInstancesResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = runInstancesResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_runInstancesResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_instances;
++
++
++ axis2_bool_t is_valid_instances;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_correlationId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_userId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_return_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances_nil_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_runInstancesResponseType_t* AXIS2_CALL
++ adb_runInstancesResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_runInstancesResponseType_t *_runInstancesResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _runInstancesResponseType = (adb_runInstancesResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_runInstancesResponseType_t));
++
++ if(NULL == _runInstancesResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_runInstancesResponseType, 0, sizeof(adb_runInstancesResponseType_t));
++
++ _runInstancesResponseType->property_correlationId = NULL;
++ _runInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _runInstancesResponseType->property_userId = NULL;
++ _runInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ _runInstancesResponseType->property_statusMessage = NULL;
++ _runInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _runInstancesResponseType->is_valid_return = AXIS2_FALSE;
++ _runInstancesResponseType->property_instances = NULL;
++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++
++
++ return _runInstancesResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_free (
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ adb_runInstancesResponseType_reset_correlationId(_runInstancesResponseType, env);
++ adb_runInstancesResponseType_reset_userId(_runInstancesResponseType, env);
++ adb_runInstancesResponseType_reset_statusMessage(_runInstancesResponseType, env);
++ adb_runInstancesResponseType_reset_return(_runInstancesResponseType, env);
++ adb_runInstancesResponseType_reset_instances(_runInstancesResponseType, env);
++
++
++ if(_runInstancesResponseType)
++ {
++ AXIS2_FREE(env->allocator, _runInstancesResponseType);
++ _runInstancesResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_deserialize(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for runInstancesResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesResponseType_set_correlationId(_runInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesResponseType_set_correlationId(_runInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesResponseType_set_userId(_runInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesResponseType_set_userId(_runInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesResponseType_set_statusMessage(_runInstancesResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_runInstancesResponseType_set_return(_runInstancesResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_runInstancesResponseType_set_return(_runInstancesResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building instances array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building instances element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "instances", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ element = (void*)adb_ccInstanceType_create(env);
++
++ status = adb_ccInstanceType_deserialize((adb_ccInstanceType_t*)element, env,
++ ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instances ");
++ }
++ else
++ {
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instances ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_runInstancesResponseType_set_instances(_runInstancesResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_runInstancesResponseType_declare_parent_namespaces(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_runInstancesResponseType_serialize(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _runInstancesResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _runInstancesResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _runInstancesResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_runInstancesResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesResponseType->is_valid_instances)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instances")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instances")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing instances array
++ */
++ if (_runInstancesResponseType->property_instances != NULL)
++ {
++
++
++ sprintf(start_input_str, "<%s%sinstances",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sinstances>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_runInstancesResponseType->property_instances, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing instances element
++ */
++
++
++
++ if(!adb_ccInstanceType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_ccInstanceType_serialize((adb_ccInstanceType_t*)element,
++ env, current_node, parent_element,
++ adb_ccInstanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_ccInstanceType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_correlationId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL);
++
++
++ return _runInstancesResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_correlationId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ if(_runInstancesResponseType->is_valid_correlationId &&
++ arg_correlationId == _runInstancesResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesResponseType_reset_correlationId(_runInstancesResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _runInstancesResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_correlationId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesResponseType->property_correlationId);
++ _runInstancesResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _runInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_correlationId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE);
++
++ return !_runInstancesResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_correlationId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesResponseType_reset_correlationId(_runInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_userId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL);
++
++
++ return _runInstancesResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_userId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ if(_runInstancesResponseType->is_valid_userId &&
++ arg_userId == _runInstancesResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesResponseType_reset_userId(_runInstancesResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _runInstancesResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_userId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesResponseType->property_userId);
++ _runInstancesResponseType->property_userId = NULL;
++ }
++
++
++
++ _runInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_userId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE);
++
++ return !_runInstancesResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_userId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesResponseType_reset_userId(_runInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_statusMessage(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL);
++
++
++ return _runInstancesResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_statusMessage(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ if(_runInstancesResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _runInstancesResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesResponseType_reset_statusMessage(_runInstancesResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _runInstancesResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_statusMessage(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesResponseType->property_statusMessage);
++ _runInstancesResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _runInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_statusMessage_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE);
++
++ return !_runInstancesResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_statusMessage_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesResponseType_reset_statusMessage(_runInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_get_return(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, (axis2_bool_t)0);
++
++
++ return _runInstancesResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_return(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ if(_runInstancesResponseType->is_valid_return &&
++ arg_return == _runInstancesResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesResponseType_reset_return(_runInstancesResponseType, env);
++
++ _runInstancesResponseType->property_return = arg_return;
++ _runInstancesResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_return(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++
++ _runInstancesResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_return_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE);
++
++ return !_runInstancesResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_return_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesResponseType_reset_return(_runInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for instances.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL);
++
++
++ return _runInstancesResponseType->property_instances;
++ }
++
++ /**
++ * setter for instances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instances)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ if(_runInstancesResponseType->is_valid_instances &&
++ arg_instances == _runInstancesResponseType->property_instances)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_instances, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_instances, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_runInstancesResponseType_reset_instances(_runInstancesResponseType, env);
++
++
++ if(NULL == arg_instances)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesResponseType->property_instances = arg_instances;
++ if(non_nil_exists)
++ {
++ _runInstancesResponseType->is_valid_instances = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of instances.
++ */
++ adb_ccInstanceType_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_instances_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ adb_ccInstanceType_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, NULL);
++
++
++ if(_runInstancesResponseType->property_instances == NULL)
++ {
++ return (adb_ccInstanceType_t*)0;
++ }
++ ret_val = (adb_ccInstanceType_t*)axutil_array_list_get(_runInstancesResponseType->property_instances, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of instances.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i,
++ adb_ccInstanceType_t* arg_instances)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ if( _runInstancesResponseType->is_valid_instances &&
++ _runInstancesResponseType->property_instances &&
++
++ arg_instances == (adb_ccInstanceType_t*)axutil_array_list_get(_runInstancesResponseType->property_instances, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_instances)
++ {
++ if(_runInstancesResponseType->property_instances != NULL)
++ {
++ size = axutil_array_list_size(_runInstancesResponseType->property_instances, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesResponseType->property_instances, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesResponseType->property_instances == NULL)
++ {
++ _runInstancesResponseType->property_instances = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, arg_instances);
++ _runInstancesResponseType->is_valid_instances = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to instances.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_add_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ adb_ccInstanceType_t* arg_instances)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_instances)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_runInstancesResponseType->property_instances == NULL)
++ {
++ _runInstancesResponseType->property_instances = axutil_array_list_create(env, 10);
++ }
++ if(_runInstancesResponseType->property_instances == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instances");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_runInstancesResponseType->property_instances , env, arg_instances);
++ _runInstancesResponseType->is_valid_instances = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the instances array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesResponseType_sizeof_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, -1);
++ if(_runInstancesResponseType->property_instances == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_runInstancesResponseType->property_instances, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_remove_instances_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_runInstancesResponseType_set_instances_nil_at(_runInstancesResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for instances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ if (_runInstancesResponseType->property_instances != NULL)
++ {
++ count = axutil_array_list_size(_runInstancesResponseType->property_instances, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_runInstancesResponseType->property_instances, env);
++ }
++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instances is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_instances_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE);
++
++ return !_runInstancesResponseType->is_valid_instances;
++ }
++
++ /**
++ * Set instances to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesResponseType_reset_instances(_runInstancesResponseType, env);
++ }
++
++
++ /**
++ * Check whether instances is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_instances_nil_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_TRUE);
++
++ return (_runInstancesResponseType->is_valid_instances == AXIS2_FALSE ||
++ NULL == _runInstancesResponseType->property_instances ||
++ NULL == axutil_array_list_get(_runInstancesResponseType->property_instances, env, i));
++ }
++
++ /**
++ * Set instances to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances_nil_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesResponseType, AXIS2_FAILURE);
++
++ if(_runInstancesResponseType->property_instances == NULL ||
++ _runInstancesResponseType->is_valid_instances == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_runInstancesResponseType->property_instances, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesResponseType->property_instances, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesResponseType->property_instances == NULL)
++ {
++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesResponseType->property_instances, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _runInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_runInstancesResponseType->property_instances , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesResponseType.h
+@@ -0,0 +1,540 @@
++
++
++ #ifndef ADB_RUNINSTANCESRESPONSETYPE_H
++ #define ADB_RUNINSTANCESRESPONSETYPE_H
++
++ /**
++ * adb_runInstancesResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_runInstancesResponseType class
++ */
++ typedef struct adb_runInstancesResponseType adb_runInstancesResponseType_t;
++
++
++ #include "adb_ccInstanceType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_runInstancesResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_runInstancesResponseType_t object
++ */
++ adb_runInstancesResponseType_t* AXIS2_CALL
++ adb_runInstancesResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_runInstancesResponseType_t object
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_free (
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_correlationId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_correlationId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_correlationId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_userId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_userId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_userId(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_statusMessage(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_statusMessage(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_statusMessage(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_get_return(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_return(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_return(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instances. Deprecated for array types, Use adb_runInstancesResponseType_get_instances_at instead
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of adb_ccInstanceType_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instances.Deprecated for array types, Use adb_runInstancesResponseType_set_instances_at
++ * or adb_runInstancesResponseType_add_instances instead.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_instances Array of adb_ccInstanceType_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instances);
++
++ /**
++ * Resetter for instances
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_reset_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of instances.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith adb_ccInstanceType_t* of the array
++ */
++ adb_ccInstanceType_t* AXIS2_CALL
++ adb_runInstancesResponseType_get_instances_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of instances. (If the ith already exist, it will be replaced)
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_instances element to set adb_ccInstanceType_t* to the array
++ * @return ith adb_ccInstanceType_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i,
++ adb_ccInstanceType_t* arg_instances);
++
++
++ /**
++ * Add to instances.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_instances element to add adb_ccInstanceType_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_add_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ adb_ccInstanceType_t* arg_instances);
++
++ /**
++ * Get the size of the instances array.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the instances array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesResponseType_sizeof_instances(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of instances.
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_remove_instances_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_correlationId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_userId_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_statusMessage_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_statusMessage_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_return_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instances is nill
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_instances_nil(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether instances is nill at i
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_instances_nil_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set instances to nill at i
++ * @param _runInstancesResponseType _ adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_set_instances_nil_at(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesResponseType_deserialize(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_runInstancesResponseType_declare_parent_namespaces(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _runInstancesResponseType adb_runInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param runInstancesResponseType_om_node node to serialize from
++ * @param runInstancesResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_runInstancesResponseType_serialize(
++ adb_runInstancesResponseType_t* _runInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* runInstancesResponseType_om_node, axiom_element_t *runInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_runInstancesResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_RUNINSTANCESRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesType.c
+@@ -0,0 +1,8715 @@
++
++
++ /**
++ * adb_runInstancesType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_runInstancesType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = runInstancesType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_runInstancesType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_imageId;
++
++
++ axis2_bool_t is_valid_imageId;
++
++
++ axis2_char_t* property_kernelId;
++
++
++ axis2_bool_t is_valid_kernelId;
++
++
++ axis2_char_t* property_ramdiskId;
++
++
++ axis2_bool_t is_valid_ramdiskId;
++
++
++ axis2_char_t* property_imageURL;
++
++
++ axis2_bool_t is_valid_imageURL;
++
++
++ axis2_char_t* property_kernelURL;
++
++
++ axis2_bool_t is_valid_kernelURL;
++
++
++ axis2_char_t* property_ramdiskURL;
++
++
++ axis2_bool_t is_valid_ramdiskURL;
++
++
++ adb_virtualMachineType_t* property_instanceType;
++
++
++ axis2_bool_t is_valid_instanceType;
++
++
++ axis2_char_t* property_keyName;
++
++
++ axis2_bool_t is_valid_keyName;
++
++
++ int property_maxCount;
++
++
++ axis2_bool_t is_valid_maxCount;
++
++
++ int property_minCount;
++
++
++ axis2_bool_t is_valid_minCount;
++
++
++ axis2_char_t* property_reservationId;
++
++
++ axis2_bool_t is_valid_reservationId;
++
++
++ axutil_array_list_t* property_instanceIds;
++
++
++ axis2_bool_t is_valid_instanceIds;
++
++
++ axutil_array_list_t* property_netNames;
++
++
++ axis2_bool_t is_valid_netNames;
++
++
++ axutil_array_list_t* property_macAddresses;
++
++
++ axis2_bool_t is_valid_macAddresses;
++
++
++ axutil_array_list_t* property_networkIndexList;
++
++
++ axis2_bool_t is_valid_networkIndexList;
++
++
++ int property_vlan;
++
++
++ axis2_bool_t is_valid_vlan;
++
++
++ axis2_char_t* property_userData;
++
++
++ axis2_bool_t is_valid_userData;
++
++
++ axis2_char_t* property_launchIndex;
++
++
++ axis2_bool_t is_valid_launchIndex;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_correlationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_return_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceType_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_keyName_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_maxCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_minCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_reservationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_vlan_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userData_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_launchIndex_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_runInstancesType_t* AXIS2_CALL
++ adb_runInstancesType_create(
++ const axutil_env_t *env)
++ {
++ adb_runInstancesType_t *_runInstancesType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _runInstancesType = (adb_runInstancesType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_runInstancesType_t));
++
++ if(NULL == _runInstancesType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_runInstancesType, 0, sizeof(adb_runInstancesType_t));
++
++ _runInstancesType->property_correlationId = NULL;
++ _runInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ _runInstancesType->property_userId = NULL;
++ _runInstancesType->is_valid_userId = AXIS2_FALSE;
++ _runInstancesType->property_statusMessage = NULL;
++ _runInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ _runInstancesType->is_valid_return = AXIS2_FALSE;
++ _runInstancesType->property_imageId = NULL;
++ _runInstancesType->is_valid_imageId = AXIS2_FALSE;
++ _runInstancesType->property_kernelId = NULL;
++ _runInstancesType->is_valid_kernelId = AXIS2_FALSE;
++ _runInstancesType->property_ramdiskId = NULL;
++ _runInstancesType->is_valid_ramdiskId = AXIS2_FALSE;
++ _runInstancesType->property_imageURL = NULL;
++ _runInstancesType->is_valid_imageURL = AXIS2_FALSE;
++ _runInstancesType->property_kernelURL = NULL;
++ _runInstancesType->is_valid_kernelURL = AXIS2_FALSE;
++ _runInstancesType->property_ramdiskURL = NULL;
++ _runInstancesType->is_valid_ramdiskURL = AXIS2_FALSE;
++ _runInstancesType->property_instanceType = NULL;
++ _runInstancesType->is_valid_instanceType = AXIS2_FALSE;
++ _runInstancesType->property_keyName = NULL;
++ _runInstancesType->is_valid_keyName = AXIS2_FALSE;
++ _runInstancesType->is_valid_maxCount = AXIS2_FALSE;
++ _runInstancesType->is_valid_minCount = AXIS2_FALSE;
++ _runInstancesType->property_reservationId = NULL;
++ _runInstancesType->is_valid_reservationId = AXIS2_FALSE;
++ _runInstancesType->property_instanceIds = NULL;
++ _runInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ _runInstancesType->property_netNames = NULL;
++ _runInstancesType->is_valid_netNames = AXIS2_FALSE;
++ _runInstancesType->property_macAddresses = NULL;
++ _runInstancesType->is_valid_macAddresses = AXIS2_FALSE;
++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE;
++ _runInstancesType->is_valid_vlan = AXIS2_FALSE;
++ _runInstancesType->property_userData = NULL;
++ _runInstancesType->is_valid_userData = AXIS2_FALSE;
++ _runInstancesType->property_launchIndex = NULL;
++ _runInstancesType->is_valid_launchIndex = AXIS2_FALSE;
++
++
++ return _runInstancesType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_free (
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ adb_runInstancesType_reset_correlationId(_runInstancesType, env);
++ adb_runInstancesType_reset_userId(_runInstancesType, env);
++ adb_runInstancesType_reset_statusMessage(_runInstancesType, env);
++ adb_runInstancesType_reset_return(_runInstancesType, env);
++ adb_runInstancesType_reset_imageId(_runInstancesType, env);
++ adb_runInstancesType_reset_kernelId(_runInstancesType, env);
++ adb_runInstancesType_reset_ramdiskId(_runInstancesType, env);
++ adb_runInstancesType_reset_imageURL(_runInstancesType, env);
++ adb_runInstancesType_reset_kernelURL(_runInstancesType, env);
++ adb_runInstancesType_reset_ramdiskURL(_runInstancesType, env);
++ adb_runInstancesType_reset_instanceType(_runInstancesType, env);
++ adb_runInstancesType_reset_keyName(_runInstancesType, env);
++ adb_runInstancesType_reset_maxCount(_runInstancesType, env);
++ adb_runInstancesType_reset_minCount(_runInstancesType, env);
++ adb_runInstancesType_reset_reservationId(_runInstancesType, env);
++ adb_runInstancesType_reset_instanceIds(_runInstancesType, env);
++ adb_runInstancesType_reset_netNames(_runInstancesType, env);
++ adb_runInstancesType_reset_macAddresses(_runInstancesType, env);
++ adb_runInstancesType_reset_networkIndexList(_runInstancesType, env);
++ adb_runInstancesType_reset_vlan(_runInstancesType, env);
++ adb_runInstancesType_reset_userData(_runInstancesType, env);
++ adb_runInstancesType_reset_launchIndex(_runInstancesType, env);
++
++
++ if(_runInstancesType)
++ {
++ AXIS2_FREE(env->allocator, _runInstancesType);
++ _runInstancesType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_deserialize(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for runInstancesType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_correlationId(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_correlationId(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_userId(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_userId(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_statusMessage(_runInstancesType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_runInstancesType_set_return(_runInstancesType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_runInstancesType_set_return(_runInstancesType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building imageId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "imageId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_imageId(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_imageId(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building kernelId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "kernelId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_kernelId(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_kernelId(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building ramdiskId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "ramdiskId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_ramdiskId(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_ramdiskId(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building imageURL element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "imageURL", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_imageURL(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element imageURL");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_imageURL(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for imageURL ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building kernelURL element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "kernelURL", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_kernelURL(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element kernelURL");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_kernelURL(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for kernelURL ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building ramdiskURL element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "ramdiskURL", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_ramdiskURL(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element ramdiskURL");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_ramdiskURL(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for ramdiskURL ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building instanceType element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (adb_virtualMachineType_is_particle() ||
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ element = (void*)adb_virtualMachineType_create(env);
++
++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element,
++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType");
++ }
++ else
++ {
++ status = adb_runInstancesType_set_instanceType(_runInstancesType, env,
++ (adb_virtualMachineType_t*)element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building keyName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "keyName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_keyName(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element keyName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_keyName(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for keyName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building maxCount element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "maxCount", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_maxCount(_runInstancesType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element maxCount");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for maxCount ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element maxCount missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building minCount element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "minCount", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_minCount(_runInstancesType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element minCount");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for minCount ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element minCount missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building reservationId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_reservationId(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_reservationId(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building instanceIds array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building instanceIds element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceIds");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 1)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '1') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_runInstancesType_set_instanceIds(_runInstancesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building netNames array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building netNames element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "netNames", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netNames");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netNames ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 1)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netNames (@minOccurs = '1') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_runInstancesType_set_netNames(_runInstancesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building macAddresses array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building macAddresses element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "macAddresses", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element macAddresses");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for macAddresses ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 1)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "macAddresses (@minOccurs = '1') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_runInstancesType_set_macAddresses(_runInstancesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building networkIndexList array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building networkIndexList element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "networkIndexList", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ /* we keeps ints in arrays from their pointers */
++ element = AXIS2_MALLOC(env-> allocator, sizeof(int));
++ (*(int*)element) = atoi(text_value);
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element networkIndexList");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for networkIndexList ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "networkIndexList (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_runInstancesType_set_networkIndexList(_runInstancesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building vlan element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_vlan(_runInstancesType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userData element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userData", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_userData(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userData");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_userData(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userData ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element userData missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building launchIndex element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "launchIndex", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_runInstancesType_set_launchIndex(_runInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element launchIndex");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_runInstancesType_set_launchIndex(_runInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for launchIndex ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element launchIndex missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_runInstancesType_declare_parent_namespaces(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_runInstancesType_serialize(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *text_value_7;
++ axis2_char_t *text_value_7_temp;
++
++ axis2_char_t *text_value_8;
++ axis2_char_t *text_value_8_temp;
++
++ axis2_char_t *text_value_9;
++ axis2_char_t *text_value_9_temp;
++
++ axis2_char_t *text_value_10;
++ axis2_char_t *text_value_10_temp;
++
++ axis2_char_t text_value_11[64];
++
++ axis2_char_t *text_value_12;
++ axis2_char_t *text_value_12_temp;
++
++ axis2_char_t text_value_13[64];
++
++ axis2_char_t text_value_14[64];
++
++ axis2_char_t *text_value_15;
++ axis2_char_t *text_value_15_temp;
++
++ axis2_char_t *text_value_16;
++ axis2_char_t *text_value_16_temp;
++
++ axis2_char_t *text_value_17;
++ axis2_char_t *text_value_17_temp;
++
++ axis2_char_t *text_value_18;
++ axis2_char_t *text_value_18_temp;
++
++ axis2_char_t text_value_19[64];
++
++ axis2_char_t text_value_20[64];
++
++ axis2_char_t *text_value_21;
++ axis2_char_t *text_value_21_temp;
++
++ axis2_char_t *text_value_22;
++ axis2_char_t *text_value_22_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _runInstancesType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _runInstancesType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _runInstancesType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_runInstancesType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_imageId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("imageId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing imageId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%simageId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%simageId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _runInstancesType->property_imageId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_kernelId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("kernelId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing kernelId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%skernelId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%skernelId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _runInstancesType->property_kernelId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_ramdiskId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("ramdiskId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing ramdiskId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sramdiskId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sramdiskId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_7 = _runInstancesType->property_ramdiskId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
++ if (text_value_7_temp)
++ {
++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
++ AXIS2_FREE(env->allocator, text_value_7_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_imageURL)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("imageURL")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("imageURL")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing imageURL element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%simageURL>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%simageURL>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_8 = _runInstancesType->property_imageURL;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
++ if (text_value_8_temp)
++ {
++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
++ AXIS2_FREE(env->allocator, text_value_8_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_kernelURL)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("kernelURL")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("kernelURL")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing kernelURL element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%skernelURL>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%skernelURL>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_9 = _runInstancesType->property_kernelURL;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
++ if (text_value_9_temp)
++ {
++ axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp));
++ AXIS2_FREE(env->allocator, text_value_9_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_ramdiskURL)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("ramdiskURL")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskURL")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing ramdiskURL element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sramdiskURL>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sramdiskURL>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_10 = _runInstancesType->property_ramdiskURL;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE);
++ if (text_value_10_temp)
++ {
++ axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp));
++ AXIS2_FREE(env->allocator, text_value_10_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_instanceType)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceType")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing instanceType element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sinstanceType",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sinstanceType>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_virtualMachineType_serialize(_runInstancesType->property_instanceType,
++ env, current_node, parent_element,
++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_keyName)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("keyName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("keyName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing keyName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%skeyName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%skeyName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_12 = _runInstancesType->property_keyName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE);
++ if (text_value_12_temp)
++ {
++ axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp));
++ AXIS2_FREE(env->allocator, text_value_12_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_maxCount)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property maxCount");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("maxCount")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("maxCount")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing maxCount element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%smaxCount>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%smaxCount>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_13, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _runInstancesType->property_maxCount);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_minCount)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property minCount");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("minCount")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("minCount")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing minCount element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sminCount>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sminCount>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_14, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _runInstancesType->property_minCount);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_reservationId)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("reservationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing reservationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreservationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreservationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_15 = _runInstancesType->property_reservationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_15_temp = axutil_xml_quote_string(env, text_value_15, AXIS2_TRUE);
++ if (text_value_15_temp)
++ {
++ axutil_stream_write(stream, env, text_value_15_temp, axutil_strlen(text_value_15_temp));
++ AXIS2_FREE(env->allocator, text_value_15_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_instanceIds)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceIds");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceIds")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing instanceIds array
++ */
++ if (_runInstancesType->property_instanceIds != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_runInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing instanceIds element
++ */
++
++
++
++ text_value_16 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE);
++ if (text_value_16_temp)
++ {
++ axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp));
++ AXIS2_FREE(env->allocator, text_value_16_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_netNames)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property netNames");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("netNames")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netNames")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing netNames array
++ */
++ if (_runInstancesType->property_netNames != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%snetNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%snetNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_runInstancesType->property_netNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing netNames element
++ */
++
++
++
++ text_value_17 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_17_temp = axutil_xml_quote_string(env, text_value_17, AXIS2_TRUE);
++ if (text_value_17_temp)
++ {
++ axutil_stream_write(stream, env, text_value_17_temp, axutil_strlen(text_value_17_temp));
++ AXIS2_FREE(env->allocator, text_value_17_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_macAddresses)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property macAddresses");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("macAddresses")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("macAddresses")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing macAddresses array
++ */
++ if (_runInstancesType->property_macAddresses != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%smacAddresses>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%smacAddresses>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_runInstancesType->property_macAddresses, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing macAddresses element
++ */
++
++
++
++ text_value_18 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_18_temp = axutil_xml_quote_string(env, text_value_18, AXIS2_TRUE);
++ if (text_value_18_temp)
++ {
++ axutil_stream_write(stream, env, text_value_18_temp, axutil_strlen(text_value_18_temp));
++ AXIS2_FREE(env->allocator, text_value_18_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_18, axutil_strlen(text_value_18));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_networkIndexList)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("networkIndexList")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("networkIndexList")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing networkIndexList array
++ */
++ if (_runInstancesType->property_networkIndexList != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%snetworkIndexList>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%snetworkIndexList>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_runInstancesType->property_networkIndexList, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing networkIndexList element
++ */
++
++
++
++ sprintf (text_value_19, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, *((int*)element));
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_19, axutil_strlen(text_value_19));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_vlan)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("vlan")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing vlan element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_20, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _runInstancesType->property_vlan);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_20, axutil_strlen(text_value_20));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_userData)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property userData");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userData")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userData")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userData element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserData>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserData>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_21 = _runInstancesType->property_userData;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_21_temp = axutil_xml_quote_string(env, text_value_21, AXIS2_TRUE);
++ if (text_value_21_temp)
++ {
++ axutil_stream_write(stream, env, text_value_21_temp, axutil_strlen(text_value_21_temp));
++ AXIS2_FREE(env->allocator, text_value_21_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_21, axutil_strlen(text_value_21));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_runInstancesType->is_valid_launchIndex)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property launchIndex");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("launchIndex")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing launchIndex element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%slaunchIndex>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%slaunchIndex>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_22 = _runInstancesType->property_launchIndex;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_22_temp = axutil_xml_quote_string(env, text_value_22, AXIS2_TRUE);
++ if (text_value_22_temp)
++ {
++ axutil_stream_write(stream, env, text_value_22_temp, axutil_strlen(text_value_22_temp));
++ AXIS2_FREE(env->allocator, text_value_22_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_22, axutil_strlen(text_value_22));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_correlationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_correlationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_correlationId &&
++ arg_correlationId == _runInstancesType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_correlationId(_runInstancesType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _runInstancesType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_correlationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_correlationId);
++ _runInstancesType->property_correlationId = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_correlationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_correlationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_correlationId(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_userId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_userId &&
++ arg_userId == _runInstancesType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_userId(_runInstancesType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _runInstancesType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_userId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_userId);
++ _runInstancesType->property_userId = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_userId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_userId(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_statusMessage(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_statusMessage(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_statusMessage &&
++ arg_statusMessage == _runInstancesType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_statusMessage(_runInstancesType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _runInstancesType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_statusMessage(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_statusMessage);
++ _runInstancesType->property_statusMessage = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_statusMessage_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_statusMessage_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_statusMessage(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_get_return(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (axis2_bool_t)0);
++
++
++ return _runInstancesType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_return(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_return &&
++ arg_return == _runInstancesType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_return(_runInstancesType, env);
++
++ _runInstancesType->property_return = arg_return;
++ _runInstancesType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_return(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++ _runInstancesType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_return_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_return_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_return(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for imageId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_imageId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_imageId;
++ }
++
++ /**
++ * setter for imageId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_imageId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_imageId &&
++ arg_imageId == _runInstancesType->property_imageId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_imageId(_runInstancesType, env);
++
++
++ if(NULL == arg_imageId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_imageId = (axis2_char_t *)axutil_strdup(env, arg_imageId);
++ if(NULL == _runInstancesType->property_imageId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_imageId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for imageId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_imageId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_imageId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_imageId);
++ _runInstancesType->property_imageId = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_imageId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether imageId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_imageId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_imageId;
++ }
++
++ /**
++ * Set imageId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_imageId(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for kernelId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_kernelId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_kernelId;
++ }
++
++ /**
++ * setter for kernelId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_kernelId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_kernelId &&
++ arg_kernelId == _runInstancesType->property_kernelId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_kernelId(_runInstancesType, env);
++
++
++ if(NULL == arg_kernelId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_kernelId = (axis2_char_t *)axutil_strdup(env, arg_kernelId);
++ if(NULL == _runInstancesType->property_kernelId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_kernelId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for kernelId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_kernelId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_kernelId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_kernelId);
++ _runInstancesType->property_kernelId = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_kernelId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether kernelId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_kernelId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_kernelId;
++ }
++
++ /**
++ * Set kernelId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_kernelId(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for ramdiskId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_ramdiskId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_ramdiskId;
++ }
++
++ /**
++ * setter for ramdiskId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ramdiskId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_ramdiskId &&
++ arg_ramdiskId == _runInstancesType->property_ramdiskId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_ramdiskId(_runInstancesType, env);
++
++
++ if(NULL == arg_ramdiskId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_ramdiskId = (axis2_char_t *)axutil_strdup(env, arg_ramdiskId);
++ if(NULL == _runInstancesType->property_ramdiskId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_ramdiskId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for ramdiskId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_ramdiskId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_ramdiskId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_ramdiskId);
++ _runInstancesType->property_ramdiskId = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_ramdiskId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether ramdiskId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_ramdiskId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_ramdiskId;
++ }
++
++ /**
++ * Set ramdiskId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_ramdiskId(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for imageURL.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_imageURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_imageURL;
++ }
++
++ /**
++ * setter for imageURL
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_imageURL)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_imageURL &&
++ arg_imageURL == _runInstancesType->property_imageURL)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_imageURL(_runInstancesType, env);
++
++
++ if(NULL == arg_imageURL)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_imageURL = (axis2_char_t *)axutil_strdup(env, arg_imageURL);
++ if(NULL == _runInstancesType->property_imageURL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for imageURL");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_imageURL = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for imageURL
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_imageURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_imageURL != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_imageURL);
++ _runInstancesType->property_imageURL = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_imageURL = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether imageURL is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_imageURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_imageURL;
++ }
++
++ /**
++ * Set imageURL to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_imageURL(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for kernelURL.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_kernelURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_kernelURL;
++ }
++
++ /**
++ * setter for kernelURL
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_kernelURL)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_kernelURL &&
++ arg_kernelURL == _runInstancesType->property_kernelURL)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_kernelURL(_runInstancesType, env);
++
++
++ if(NULL == arg_kernelURL)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_kernelURL = (axis2_char_t *)axutil_strdup(env, arg_kernelURL);
++ if(NULL == _runInstancesType->property_kernelURL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for kernelURL");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_kernelURL = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for kernelURL
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_kernelURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_kernelURL != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_kernelURL);
++ _runInstancesType->property_kernelURL = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_kernelURL = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether kernelURL is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_kernelURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_kernelURL;
++ }
++
++ /**
++ * Set kernelURL to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_kernelURL(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for ramdiskURL.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_ramdiskURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_ramdiskURL;
++ }
++
++ /**
++ * setter for ramdiskURL
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ramdiskURL)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_ramdiskURL &&
++ arg_ramdiskURL == _runInstancesType->property_ramdiskURL)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_ramdiskURL(_runInstancesType, env);
++
++
++ if(NULL == arg_ramdiskURL)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_ramdiskURL = (axis2_char_t *)axutil_strdup(env, arg_ramdiskURL);
++ if(NULL == _runInstancesType->property_ramdiskURL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for ramdiskURL");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_ramdiskURL = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for ramdiskURL
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_ramdiskURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_ramdiskURL != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_ramdiskURL);
++ _runInstancesType->property_ramdiskURL = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_ramdiskURL = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether ramdiskURL is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_ramdiskURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_ramdiskURL;
++ }
++
++ /**
++ * Set ramdiskURL to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_ramdiskURL(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for instanceType.
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_runInstancesType_get_instanceType(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_instanceType;
++ }
++
++ /**
++ * setter for instanceType
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceType(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceType)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_instanceType &&
++ arg_instanceType == _runInstancesType->property_instanceType)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_instanceType(_runInstancesType, env);
++
++
++ if(NULL == arg_instanceType)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_instanceType = arg_instanceType;
++ _runInstancesType->is_valid_instanceType = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for instanceType
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_instanceType(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_instanceType != NULL)
++ {
++
++
++ adb_virtualMachineType_free(_runInstancesType->property_instanceType, env);
++ _runInstancesType->property_instanceType = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_instanceType = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceType is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_instanceType_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_instanceType;
++ }
++
++ /**
++ * Set instanceType to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceType_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_instanceType(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for keyName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_keyName(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_keyName;
++ }
++
++ /**
++ * setter for keyName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_keyName(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_keyName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_keyName &&
++ arg_keyName == _runInstancesType->property_keyName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_keyName(_runInstancesType, env);
++
++
++ if(NULL == arg_keyName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_keyName = (axis2_char_t *)axutil_strdup(env, arg_keyName);
++ if(NULL == _runInstancesType->property_keyName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for keyName");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_keyName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for keyName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_keyName(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_keyName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_keyName);
++ _runInstancesType->property_keyName = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_keyName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether keyName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_keyName_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_keyName;
++ }
++
++ /**
++ * Set keyName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_keyName_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_keyName(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for maxCount.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_maxCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0);
++
++
++ return _runInstancesType->property_maxCount;
++ }
++
++ /**
++ * setter for maxCount
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_maxCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_maxCount)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_maxCount &&
++ arg_maxCount == _runInstancesType->property_maxCount)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_maxCount(_runInstancesType, env);
++
++ _runInstancesType->property_maxCount = arg_maxCount;
++ _runInstancesType->is_valid_maxCount = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for maxCount
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_maxCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++ _runInstancesType->is_valid_maxCount = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether maxCount is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_maxCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_maxCount;
++ }
++
++ /**
++ * Set maxCount to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_maxCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_maxCount(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for minCount.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_minCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0);
++
++
++ return _runInstancesType->property_minCount;
++ }
++
++ /**
++ * setter for minCount
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_minCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_minCount)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_minCount &&
++ arg_minCount == _runInstancesType->property_minCount)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_minCount(_runInstancesType, env);
++
++ _runInstancesType->property_minCount = arg_minCount;
++ _runInstancesType->is_valid_minCount = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for minCount
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_minCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++ _runInstancesType->is_valid_minCount = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether minCount is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_minCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_minCount;
++ }
++
++ /**
++ * Set minCount to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_minCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_minCount(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for reservationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_reservationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_reservationId;
++ }
++
++ /**
++ * setter for reservationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_reservationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_reservationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_reservationId &&
++ arg_reservationId == _runInstancesType->property_reservationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_reservationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_runInstancesType_reset_reservationId(_runInstancesType, env);
++
++
++ if(NULL == arg_reservationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId);
++ if(NULL == _runInstancesType->property_reservationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_reservationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for reservationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_reservationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_reservationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_reservationId);
++ _runInstancesType->property_reservationId = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_reservationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether reservationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_reservationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_reservationId;
++ }
++
++ /**
++ * Set reservationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_reservationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_reservationId(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for instanceIds.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_instanceIds;
++ }
++
++ /**
++ * setter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_instanceIds &&
++ arg_instanceIds == _runInstancesType->property_instanceIds)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_instanceIds, env);
++
++ if (size < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if(NULL == arg_instanceIds)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_runInstancesType_reset_instanceIds(_runInstancesType, env);
++
++
++ if(NULL == arg_instanceIds)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_instanceIds = arg_instanceIds;
++ if(non_nil_exists)
++ {
++ _runInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of instanceIds.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_instanceIds_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ if(_runInstancesType->property_instanceIds == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_instanceIds, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if( _runInstancesType->is_valid_instanceIds &&
++ _runInstancesType->property_instanceIds &&
++
++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_instanceIds, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_instanceIds)
++ {
++ if(_runInstancesType->property_instanceIds != NULL)
++ {
++ size = axutil_array_list_size(_runInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_instanceIds == NULL)
++ {
++ _runInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ axutil_array_list_set(_runInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds));
++ _runInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_instanceIds)
++ {
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++
++ }
++
++
++ if(_runInstancesType->property_instanceIds == NULL)
++ {
++ _runInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++ if(_runInstancesType->property_instanceIds == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_runInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds));
++ _runInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1);
++ if(_runInstancesType->property_instanceIds == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_runInstancesType->property_instanceIds, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_instanceIds_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_runInstancesType_set_instanceIds_nil_at(_runInstancesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++ if (_runInstancesType->property_instanceIds != NULL)
++ {
++ count = axutil_array_list_size(_runInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_runInstancesType->property_instanceIds, env);
++ }
++ _runInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceIds is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_instanceIds_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_instanceIds;
++ }
++
++ /**
++ * Set instanceIds to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_instanceIds(_runInstancesType, env);
++ }
++
++
++ /**
++ * Check whether instanceIds is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_instanceIds_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return (_runInstancesType->is_valid_instanceIds == AXIS2_FALSE ||
++ NULL == _runInstancesType->property_instanceIds ||
++ NULL == axutil_array_list_get(_runInstancesType->property_instanceIds, env, i));
++ }
++
++ /**
++ * Set instanceIds to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->property_instanceIds == NULL ||
++ _runInstancesType->is_valid_instanceIds == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_runInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceIds is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_instanceIds == NULL)
++ {
++ _runInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++
++
++ axutil_array_list_set(_runInstancesType->property_instanceIds , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for netNames.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_netNames;
++ }
++
++ /**
++ * setter for netNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_netNames)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_netNames &&
++ arg_netNames == _runInstancesType->property_netNames)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_netNames, env);
++
++ if (size < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netNames has less than minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_netNames, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if(NULL == arg_netNames)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netNames is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_runInstancesType_reset_netNames(_runInstancesType, env);
++
++
++ if(NULL == arg_netNames)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_netNames = arg_netNames;
++ if(non_nil_exists)
++ {
++ _runInstancesType->is_valid_netNames = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of netNames.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_netNames_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ if(_runInstancesType->property_netNames == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_netNames, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of netNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_netNames)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if( _runInstancesType->is_valid_netNames &&
++ _runInstancesType->property_netNames &&
++
++ arg_netNames == (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_netNames, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_netNames)
++ {
++ if(_runInstancesType->property_netNames != NULL)
++ {
++ size = axutil_array_list_size(_runInstancesType->property_netNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesType->property_netNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of netNames is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_netNames == NULL)
++ {
++ _runInstancesType->property_netNames = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ axutil_array_list_set(_runInstancesType->property_netNames , env, i, axutil_strdup(env, arg_netNames));
++ _runInstancesType->is_valid_netNames = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to netNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netNames)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_netNames)
++ {
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++
++ }
++
++
++ if(_runInstancesType->property_netNames == NULL)
++ {
++ _runInstancesType->property_netNames = axutil_array_list_create(env, 10);
++ }
++ if(_runInstancesType->property_netNames == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for netNames");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_runInstancesType->property_netNames , env, axutil_strdup(env, arg_netNames));
++ _runInstancesType->is_valid_netNames = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the netNames array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1);
++ if(_runInstancesType->property_netNames == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_runInstancesType->property_netNames, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_netNames_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_runInstancesType_set_netNames_nil_at(_runInstancesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for netNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++ if (_runInstancesType->property_netNames != NULL)
++ {
++ count = axutil_array_list_size(_runInstancesType->property_netNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_runInstancesType->property_netNames, env);
++ }
++ _runInstancesType->is_valid_netNames = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether netNames is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_netNames_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_netNames;
++ }
++
++ /**
++ * Set netNames to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_netNames(_runInstancesType, env);
++ }
++
++
++ /**
++ * Check whether netNames is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_netNames_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return (_runInstancesType->is_valid_netNames == AXIS2_FALSE ||
++ NULL == _runInstancesType->property_netNames ||
++ NULL == axutil_array_list_get(_runInstancesType->property_netNames, env, i));
++ }
++
++ /**
++ * Set netNames to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->property_netNames == NULL ||
++ _runInstancesType->is_valid_netNames == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_runInstancesType->property_netNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesType->property_netNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of netNames is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of netNames is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_netNames == NULL)
++ {
++ _runInstancesType->is_valid_netNames = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_netNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++
++
++ axutil_array_list_set(_runInstancesType->property_netNames , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for macAddresses.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_macAddresses;
++ }
++
++ /**
++ * setter for macAddresses
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_macAddresses)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_macAddresses &&
++ arg_macAddresses == _runInstancesType->property_macAddresses)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_macAddresses, env);
++
++ if (size < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "macAddresses has less than minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_macAddresses, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if(NULL == arg_macAddresses)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "macAddresses is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_runInstancesType_reset_macAddresses(_runInstancesType, env);
++
++
++ if(NULL == arg_macAddresses)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_macAddresses = arg_macAddresses;
++ if(non_nil_exists)
++ {
++ _runInstancesType->is_valid_macAddresses = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of macAddresses.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_macAddresses_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ if(_runInstancesType->property_macAddresses == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_macAddresses, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of macAddresses.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_macAddresses)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if( _runInstancesType->is_valid_macAddresses &&
++ _runInstancesType->property_macAddresses &&
++
++ arg_macAddresses == (axis2_char_t*)axutil_array_list_get(_runInstancesType->property_macAddresses, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_macAddresses)
++ {
++ if(_runInstancesType->property_macAddresses != NULL)
++ {
++ size = axutil_array_list_size(_runInstancesType->property_macAddresses, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesType->property_macAddresses, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of macAddresses is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_macAddresses == NULL)
++ {
++ _runInstancesType->property_macAddresses = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ axutil_array_list_set(_runInstancesType->property_macAddresses , env, i, axutil_strdup(env, arg_macAddresses));
++ _runInstancesType->is_valid_macAddresses = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to macAddresses.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_macAddresses)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_macAddresses)
++ {
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++
++ }
++
++
++ if(_runInstancesType->property_macAddresses == NULL)
++ {
++ _runInstancesType->property_macAddresses = axutil_array_list_create(env, 10);
++ }
++ if(_runInstancesType->property_macAddresses == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for macAddresses");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_runInstancesType->property_macAddresses , env, axutil_strdup(env, arg_macAddresses));
++ _runInstancesType->is_valid_macAddresses = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the macAddresses array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1);
++ if(_runInstancesType->property_macAddresses == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_runInstancesType->property_macAddresses, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_macAddresses_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_runInstancesType_set_macAddresses_nil_at(_runInstancesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for macAddresses
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++ if (_runInstancesType->property_macAddresses != NULL)
++ {
++ count = axutil_array_list_size(_runInstancesType->property_macAddresses, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_runInstancesType->property_macAddresses, env);
++ }
++ _runInstancesType->is_valid_macAddresses = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether macAddresses is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_macAddresses_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_macAddresses;
++ }
++
++ /**
++ * Set macAddresses to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_macAddresses(_runInstancesType, env);
++ }
++
++
++ /**
++ * Check whether macAddresses is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_macAddresses_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return (_runInstancesType->is_valid_macAddresses == AXIS2_FALSE ||
++ NULL == _runInstancesType->property_macAddresses ||
++ NULL == axutil_array_list_get(_runInstancesType->property_macAddresses, env, i));
++ }
++
++ /**
++ * Set macAddresses to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->property_macAddresses == NULL ||
++ _runInstancesType->is_valid_macAddresses == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_runInstancesType->property_macAddresses, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesType->property_macAddresses, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of macAddresses is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of macAddresses is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_macAddresses == NULL)
++ {
++ _runInstancesType->is_valid_macAddresses = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_macAddresses, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++
++
++ axutil_array_list_set(_runInstancesType->property_macAddresses , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for networkIndexList.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_networkIndexList;
++ }
++
++ /**
++ * setter for networkIndexList
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_networkIndexList)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_networkIndexList &&
++ arg_networkIndexList == _runInstancesType->property_networkIndexList)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_networkIndexList, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "networkIndexList has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_networkIndexList, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_runInstancesType_reset_networkIndexList(_runInstancesType, env);
++
++
++ if(NULL == arg_networkIndexList)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_networkIndexList = arg_networkIndexList;
++ if(non_nil_exists)
++ {
++ _runInstancesType->is_valid_networkIndexList = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of networkIndexList.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_networkIndexList_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ int* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0);
++
++
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ return (int)0;
++ }
++ ret_val = (int*)axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i);
++
++ if(ret_val)
++ {
++ return *ret_val;
++ }
++ return (int)0;
++
++ }
++
++ /**
++ * Set the ith element of networkIndexList.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const int arg_networkIndexList)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int* ptr_param_networkIndexList;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if( _runInstancesType->is_valid_networkIndexList &&
++ _runInstancesType->property_networkIndexList &&
++
++ arg_networkIndexList == *((int*)axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i)))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ non_nil_exists = AXIS2_TRUE; /* no way to check for nill for each elements for primitive types */
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of networkIndexList is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ _runInstancesType->property_networkIndexList = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i);
++ if(NULL != element)
++ {
++
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE;
++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++ ptr_param_networkIndexList = (int*)
++ AXIS2_MALLOC(env->allocator, sizeof(int));
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of networkIndexList");
++ return AXIS2_FAILURE;
++
++ }
++ *ptr_param_networkIndexList = arg_networkIndexList;
++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, ptr_param_networkIndexList);
++ _runInstancesType->is_valid_networkIndexList = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to networkIndexList.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_networkIndexList)
++ {
++ int* ptr_param_networkIndexList;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ _runInstancesType->property_networkIndexList = axutil_array_list_create(env, 10);
++ }
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for networkIndexList");
++ return AXIS2_FAILURE;
++
++ }
++ ptr_param_networkIndexList = (int*)
++ AXIS2_MALLOC(env->allocator, sizeof(int));
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of networkIndexList");
++ return AXIS2_FAILURE;
++
++ }
++ *ptr_param_networkIndexList = arg_networkIndexList;
++ axutil_array_list_add(_runInstancesType->property_networkIndexList , env, ptr_param_networkIndexList);
++ _runInstancesType->is_valid_networkIndexList = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the networkIndexList array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, -1);
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_runInstancesType->property_networkIndexList, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_networkIndexList_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_runInstancesType_set_networkIndexList_nil_at(_runInstancesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for networkIndexList
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++ if (_runInstancesType->property_networkIndexList != NULL)
++ {
++ count = axutil_array_list_size(_runInstancesType->property_networkIndexList, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_runInstancesType->property_networkIndexList, env);
++ }
++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether networkIndexList is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_networkIndexList_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_networkIndexList;
++ }
++
++ /**
++ * Set networkIndexList to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_networkIndexList(_runInstancesType, env);
++ }
++
++
++ /**
++ * Check whether networkIndexList is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_networkIndexList_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return (_runInstancesType->is_valid_networkIndexList == AXIS2_FALSE ||
++ NULL == _runInstancesType->property_networkIndexList ||
++ NULL == axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i));
++ }
++
++ /**
++ * Set networkIndexList to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->property_networkIndexList == NULL ||
++ _runInstancesType->is_valid_networkIndexList == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_runInstancesType->property_networkIndexList, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of networkIndexList is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_runInstancesType->property_networkIndexList == NULL)
++ {
++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_runInstancesType->property_networkIndexList, env, i);
++ if(NULL != element)
++ {
++
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _runInstancesType->is_valid_networkIndexList = AXIS2_FALSE;
++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_runInstancesType->property_networkIndexList , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for vlan.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_vlan(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, (int)0);
++
++
++ return _runInstancesType->property_vlan;
++ }
++
++ /**
++ * setter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_vlan(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_vlan)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_vlan &&
++ arg_vlan == _runInstancesType->property_vlan)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_runInstancesType_reset_vlan(_runInstancesType, env);
++
++ _runInstancesType->property_vlan = arg_vlan;
++ _runInstancesType->is_valid_vlan = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_vlan(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++ _runInstancesType->is_valid_vlan = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether vlan is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_vlan_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_vlan;
++ }
++
++ /**
++ * Set vlan to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_vlan_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_vlan(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for userData.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_userData(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_userData;
++ }
++
++ /**
++ * setter for userData
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userData(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userData)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_userData &&
++ arg_userData == _runInstancesType->property_userData)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_userData)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userData is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_runInstancesType_reset_userData(_runInstancesType, env);
++
++
++ if(NULL == arg_userData)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_userData = (axis2_char_t *)axutil_strdup(env, arg_userData);
++ if(NULL == _runInstancesType->property_userData)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userData");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_userData = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userData
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_userData(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_userData != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_userData);
++ _runInstancesType->property_userData = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_userData = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userData is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_userData_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_userData;
++ }
++
++ /**
++ * Set userData to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userData_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_userData(_runInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for launchIndex.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_launchIndex(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, NULL);
++
++
++ return _runInstancesType->property_launchIndex;
++ }
++
++ /**
++ * setter for launchIndex
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_launchIndex(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_launchIndex)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++ if(_runInstancesType->is_valid_launchIndex &&
++ arg_launchIndex == _runInstancesType->property_launchIndex)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_launchIndex)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "launchIndex is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_runInstancesType_reset_launchIndex(_runInstancesType, env);
++
++
++ if(NULL == arg_launchIndex)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _runInstancesType->property_launchIndex = (axis2_char_t *)axutil_strdup(env, arg_launchIndex);
++ if(NULL == _runInstancesType->property_launchIndex)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for launchIndex");
++ return AXIS2_FAILURE;
++ }
++ _runInstancesType->is_valid_launchIndex = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for launchIndex
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_launchIndex(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_runInstancesType->property_launchIndex != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _runInstancesType->property_launchIndex);
++ _runInstancesType->property_launchIndex = NULL;
++ }
++
++
++
++ _runInstancesType->is_valid_launchIndex = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether launchIndex is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_launchIndex_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _runInstancesType, AXIS2_TRUE);
++
++ return !_runInstancesType->is_valid_launchIndex;
++ }
++
++ /**
++ * Set launchIndex to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_launchIndex_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_runInstancesType_reset_launchIndex(_runInstancesType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_runInstancesType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_runInstancesType.h
+@@ -0,0 +1,1700 @@
++
++
++ #ifndef ADB_RUNINSTANCESTYPE_H
++ #define ADB_RUNINSTANCESTYPE_H
++
++ /**
++ * adb_runInstancesType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_runInstancesType class
++ */
++ typedef struct adb_runInstancesType adb_runInstancesType_t;
++
++
++ #include "adb_virtualMachineType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_runInstancesType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_runInstancesType_t object
++ */
++ adb_runInstancesType_t* AXIS2_CALL
++ adb_runInstancesType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_runInstancesType_t object
++ * @param _runInstancesType adb_runInstancesType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_free (
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_correlationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_correlationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_correlationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_userId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_userId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_statusMessage(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_statusMessage(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_statusMessage(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_get_return(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_return(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_return(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for imageId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_imageId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for imageId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_imageId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_imageId);
++
++ /**
++ * Resetter for imageId
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_imageId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for kernelId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_kernelId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for kernelId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_kernelId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_kernelId);
++
++ /**
++ * Resetter for kernelId
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_kernelId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for ramdiskId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_ramdiskId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for ramdiskId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_ramdiskId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ramdiskId);
++
++ /**
++ * Resetter for ramdiskId
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_ramdiskId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for imageURL.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_imageURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for imageURL.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_imageURL axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_imageURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_imageURL);
++
++ /**
++ * Resetter for imageURL
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_imageURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for kernelURL.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_kernelURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for kernelURL.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_kernelURL axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_kernelURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_kernelURL);
++
++ /**
++ * Resetter for kernelURL
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_kernelURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for ramdiskURL.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_ramdiskURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for ramdiskURL.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_ramdiskURL axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_ramdiskURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_ramdiskURL);
++
++ /**
++ * Resetter for ramdiskURL
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_ramdiskURL(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceType.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return adb_virtualMachineType_t*
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_runInstancesType_get_instanceType(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceType.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceType adb_virtualMachineType_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceType(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceType);
++
++ /**
++ * Resetter for instanceType
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_instanceType(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for keyName.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_keyName(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for keyName.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_keyName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_keyName(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_keyName);
++
++ /**
++ * Resetter for keyName
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_keyName(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for maxCount.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_maxCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for maxCount.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_maxCount int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_maxCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_maxCount);
++
++ /**
++ * Resetter for maxCount
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_maxCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for minCount.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_minCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for minCount.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_minCount int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_minCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_minCount);
++
++ /**
++ * Resetter for minCount
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_minCount(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for reservationId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_reservationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for reservationId.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_reservationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_reservationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_reservationId);
++
++ /**
++ * Resetter for reservationId
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_reservationId(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceIds. Deprecated for array types, Use adb_runInstancesType_get_instanceIds_at instead
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceIds.Deprecated for array types, Use adb_runInstancesType_set_instanceIds_at
++ * or adb_runInstancesType_add_instanceIds instead.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds);
++
++ /**
++ * Resetter for instanceIds
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for netNames. Deprecated for array types, Use adb_runInstancesType_get_netNames_at instead
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for netNames.Deprecated for array types, Use adb_runInstancesType_set_netNames_at
++ * or adb_runInstancesType_add_netNames instead.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_netNames Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_netNames);
++
++ /**
++ * Resetter for netNames
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for macAddresses. Deprecated for array types, Use adb_runInstancesType_get_macAddresses_at instead
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for macAddresses.Deprecated for array types, Use adb_runInstancesType_set_macAddresses_at
++ * or adb_runInstancesType_add_macAddresses instead.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_macAddresses Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_macAddresses);
++
++ /**
++ * Resetter for macAddresses
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for networkIndexList. Deprecated for array types, Use adb_runInstancesType_get_networkIndexList_at instead
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return Array of int*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_runInstancesType_get_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for networkIndexList.Deprecated for array types, Use adb_runInstancesType_set_networkIndexList_at
++ * or adb_runInstancesType_add_networkIndexList instead.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_networkIndexList Array of int*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_networkIndexList);
++
++ /**
++ * Resetter for networkIndexList
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for vlan.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_vlan(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for vlan.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_vlan int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_vlan(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_vlan);
++
++ /**
++ * Resetter for vlan
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_vlan(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userData.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_userData(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userData.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_userData axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_userData(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userData);
++
++ /**
++ * Resetter for userData
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_userData(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for launchIndex.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_launchIndex(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for launchIndex.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_launchIndex axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_launchIndex(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_launchIndex);
++
++ /**
++ * Resetter for launchIndex
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_reset_launchIndex(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of instanceIds.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_instanceIds_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced)
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_instanceIds element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds);
++
++
++ /**
++ * Add to instanceIds.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds);
++
++ /**
++ * Get the size of the instanceIds array.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_instanceIds(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of instanceIds.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_instanceIds_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of netNames.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_netNames_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of netNames. (If the ith already exist, it will be replaced)
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_netNames element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_netNames);
++
++
++ /**
++ * Add to netNames.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_netNames element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netNames);
++
++ /**
++ * Get the size of the netNames array.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the netNames array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_netNames(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of netNames.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_netNames_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of macAddresses.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_runInstancesType_get_macAddresses_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of macAddresses. (If the ith already exist, it will be replaced)
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_macAddresses element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_macAddresses);
++
++
++ /**
++ * Add to macAddresses.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_macAddresses element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_macAddresses);
++
++ /**
++ * Get the size of the macAddresses array.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the macAddresses array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_macAddresses(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of macAddresses.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_macAddresses_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of networkIndexList.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith int of the array
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_get_networkIndexList_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of networkIndexList. (If the ith already exist, it will be replaced)
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_networkIndexList element to set int to the array
++ * @return ith int of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i,
++ const int arg_networkIndexList);
++
++
++ /**
++ * Add to networkIndexList.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_networkIndexList element to add int to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_add_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ const int arg_networkIndexList);
++
++ /**
++ * Get the size of the networkIndexList array.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the networkIndexList array.
++ */
++ int AXIS2_CALL
++ adb_runInstancesType_sizeof_networkIndexList(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of networkIndexList.
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_remove_networkIndexList_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_correlationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_userId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_statusMessage_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_statusMessage_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_return_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether imageId is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_imageId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether kernelId is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_kernelId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether ramdiskId is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_ramdiskId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether imageURL is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_imageURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether kernelURL is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_kernelURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether ramdiskURL is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_ramdiskURL_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceType is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_instanceType_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether keyName is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_keyName_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether maxCount is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_maxCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether minCount is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_minCount_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether reservationId is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_reservationId_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceIds is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_instanceIds_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether netNames is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_netNames_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether macAddresses is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_macAddresses_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether networkIndexList is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_networkIndexList_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether vlan is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_vlan_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userData is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_userData_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether launchIndex is nill
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_launchIndex_nil(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether instanceIds is nill at i
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_instanceIds_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set instanceIds to nill at i
++ * @param _runInstancesType _ adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_instanceIds_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether netNames is nill at i
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_netNames_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set netNames to nill at i
++ * @param _runInstancesType _ adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_netNames_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether macAddresses is nill at i
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_macAddresses_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set macAddresses to nill at i
++ * @param _runInstancesType _ adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_macAddresses_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether networkIndexList is nill at i
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_networkIndexList_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set networkIndexList to nill at i
++ * @param _runInstancesType _ adb_runInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_set_networkIndexList_nil_at(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_runInstancesType_deserialize(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_runInstancesType_declare_parent_namespaces(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _runInstancesType adb_runInstancesType_t object
++ * @param env pointer to environment struct
++ * @param runInstancesType_om_node node to serialize from
++ * @param runInstancesType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_runInstancesType_serialize(
++ adb_runInstancesType_t* _runInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t* runInstancesType_om_node, axiom_element_t *runInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_runInstancesType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_runInstancesType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_RUNINSTANCESTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeType.c
+@@ -0,0 +1,3005 @@
++
++
++ /**
++ * adb_detachVolumeType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_detachVolumeType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = detachVolumeType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_detachVolumeType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_instanceId;
++
++
++ axis2_bool_t is_valid_instanceId;
++
++
++ axis2_char_t* property_volumeId;
++
++
++ axis2_bool_t is_valid_volumeId;
++
++
++ axis2_char_t* property_remoteDev;
++
++
++ axis2_bool_t is_valid_remoteDev;
++
++
++ axis2_char_t* property_localDev;
++
++
++ axis2_bool_t is_valid_localDev;
++
++
++ axis2_bool_t property_force;
++
++
++ axis2_bool_t is_valid_force;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_correlationId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_userId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_return_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_instanceId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_volumeId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_remoteDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_localDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_force_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_detachVolumeType_t* AXIS2_CALL
++ adb_detachVolumeType_create(
++ const axutil_env_t *env)
++ {
++ adb_detachVolumeType_t *_detachVolumeType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _detachVolumeType = (adb_detachVolumeType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_detachVolumeType_t));
++
++ if(NULL == _detachVolumeType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_detachVolumeType, 0, sizeof(adb_detachVolumeType_t));
++
++ _detachVolumeType->property_correlationId = NULL;
++ _detachVolumeType->is_valid_correlationId = AXIS2_FALSE;
++ _detachVolumeType->property_userId = NULL;
++ _detachVolumeType->is_valid_userId = AXIS2_FALSE;
++ _detachVolumeType->property_statusMessage = NULL;
++ _detachVolumeType->is_valid_statusMessage = AXIS2_FALSE;
++ _detachVolumeType->is_valid_return = AXIS2_FALSE;
++ _detachVolumeType->property_instanceId = NULL;
++ _detachVolumeType->is_valid_instanceId = AXIS2_FALSE;
++ _detachVolumeType->property_volumeId = NULL;
++ _detachVolumeType->is_valid_volumeId = AXIS2_FALSE;
++ _detachVolumeType->property_remoteDev = NULL;
++ _detachVolumeType->is_valid_remoteDev = AXIS2_FALSE;
++ _detachVolumeType->property_localDev = NULL;
++ _detachVolumeType->is_valid_localDev = AXIS2_FALSE;
++ _detachVolumeType->is_valid_force = AXIS2_FALSE;
++
++
++ return _detachVolumeType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_free (
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ adb_detachVolumeType_reset_correlationId(_detachVolumeType, env);
++ adb_detachVolumeType_reset_userId(_detachVolumeType, env);
++ adb_detachVolumeType_reset_statusMessage(_detachVolumeType, env);
++ adb_detachVolumeType_reset_return(_detachVolumeType, env);
++ adb_detachVolumeType_reset_instanceId(_detachVolumeType, env);
++ adb_detachVolumeType_reset_volumeId(_detachVolumeType, env);
++ adb_detachVolumeType_reset_remoteDev(_detachVolumeType, env);
++ adb_detachVolumeType_reset_localDev(_detachVolumeType, env);
++ adb_detachVolumeType_reset_force(_detachVolumeType, env);
++
++
++ if(_detachVolumeType)
++ {
++ AXIS2_FREE(env->allocator, _detachVolumeType);
++ _detachVolumeType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_deserialize(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for detachVolumeType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeType_set_correlationId(_detachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeType_set_correlationId(_detachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeType_set_userId(_detachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeType_set_userId(_detachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeType_set_statusMessage(_detachVolumeType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_detachVolumeType_set_return(_detachVolumeType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_detachVolumeType_set_return(_detachVolumeType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building instanceId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeType_set_instanceId(_detachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeType_set_instanceId(_detachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building volumeId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeType_set_volumeId(_detachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeType_set_volumeId(_detachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building remoteDev element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeType_set_remoteDev(_detachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeType_set_remoteDev(_detachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building localDev element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeType_set_localDev(_detachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeType_set_localDev(_detachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building force element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "force", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_detachVolumeType_set_force(_detachVolumeType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_detachVolumeType_set_force(_detachVolumeType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element force");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for force ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_detachVolumeType_declare_parent_namespaces(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_detachVolumeType_serialize(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *text_value_7;
++ axis2_char_t *text_value_7_temp;
++
++ axis2_char_t *text_value_8;
++ axis2_char_t *text_value_8_temp;
++
++ axis2_char_t text_value_9[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _detachVolumeType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _detachVolumeType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _detachVolumeType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_detachVolumeType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_instanceId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing instanceId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _detachVolumeType->property_instanceId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_volumeId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("volumeId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing volumeId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svolumeId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svolumeId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _detachVolumeType->property_volumeId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_remoteDev)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("remoteDev")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing remoteDev element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sremoteDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sremoteDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_7 = _detachVolumeType->property_remoteDev;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
++ if (text_value_7_temp)
++ {
++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
++ AXIS2_FREE(env->allocator, text_value_7_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_localDev)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("localDev")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing localDev element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%slocalDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%slocalDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_8 = _detachVolumeType->property_localDev;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
++ if (text_value_8_temp)
++ {
++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
++ AXIS2_FREE(env->allocator, text_value_8_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeType->is_valid_force)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("force")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("force")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing force element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sforce>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sforce>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_9, (_detachVolumeType->property_force)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_correlationId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ return _detachVolumeType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_correlationId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_correlationId &&
++ arg_correlationId == _detachVolumeType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_correlationId(_detachVolumeType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _detachVolumeType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_correlationId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_correlationId);
++ _detachVolumeType->property_correlationId = NULL;
++ }
++
++
++
++ _detachVolumeType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_correlationId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_correlationId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_correlationId(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_userId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ return _detachVolumeType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_userId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_userId &&
++ arg_userId == _detachVolumeType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_userId(_detachVolumeType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _detachVolumeType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_userId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_userId);
++ _detachVolumeType->property_userId = NULL;
++ }
++
++
++
++ _detachVolumeType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_userId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_userId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_userId(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_statusMessage(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ return _detachVolumeType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_statusMessage(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_statusMessage &&
++ arg_statusMessage == _detachVolumeType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_statusMessage(_detachVolumeType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _detachVolumeType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_statusMessage(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_statusMessage);
++ _detachVolumeType->property_statusMessage = NULL;
++ }
++
++
++
++ _detachVolumeType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_statusMessage_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_statusMessage_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_statusMessage(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_get_return(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, (axis2_bool_t)0);
++
++
++ return _detachVolumeType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_return(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_return &&
++ arg_return == _detachVolumeType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_return(_detachVolumeType, env);
++
++ _detachVolumeType->property_return = arg_return;
++ _detachVolumeType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_return(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++ _detachVolumeType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_return_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_return_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_return(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for instanceId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_instanceId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ return _detachVolumeType->property_instanceId;
++ }
++
++ /**
++ * setter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_instanceId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_instanceId &&
++ arg_instanceId == _detachVolumeType->property_instanceId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_instanceId(_detachVolumeType, env);
++
++
++ if(NULL == arg_instanceId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
++ if(NULL == _detachVolumeType->property_instanceId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeType->is_valid_instanceId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_instanceId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeType->property_instanceId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_instanceId);
++ _detachVolumeType->property_instanceId = NULL;
++ }
++
++
++
++ _detachVolumeType->is_valid_instanceId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_instanceId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_instanceId;
++ }
++
++ /**
++ * Set instanceId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_instanceId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_instanceId(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for volumeId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_volumeId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ return _detachVolumeType->property_volumeId;
++ }
++
++ /**
++ * setter for volumeId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_volumeId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_volumeId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_volumeId &&
++ arg_volumeId == _detachVolumeType->property_volumeId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_volumeId(_detachVolumeType, env);
++
++
++ if(NULL == arg_volumeId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId);
++ if(NULL == _detachVolumeType->property_volumeId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeType->is_valid_volumeId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for volumeId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_volumeId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeType->property_volumeId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_volumeId);
++ _detachVolumeType->property_volumeId = NULL;
++ }
++
++
++
++ _detachVolumeType->is_valid_volumeId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether volumeId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_volumeId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_volumeId;
++ }
++
++ /**
++ * Set volumeId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_volumeId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_volumeId(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for remoteDev.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_remoteDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ return _detachVolumeType->property_remoteDev;
++ }
++
++ /**
++ * setter for remoteDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_remoteDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_remoteDev)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_remoteDev &&
++ arg_remoteDev == _detachVolumeType->property_remoteDev)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_remoteDev(_detachVolumeType, env);
++
++
++ if(NULL == arg_remoteDev)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev);
++ if(NULL == _detachVolumeType->property_remoteDev)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeType->is_valid_remoteDev = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for remoteDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_remoteDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeType->property_remoteDev != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_remoteDev);
++ _detachVolumeType->property_remoteDev = NULL;
++ }
++
++
++
++ _detachVolumeType->is_valid_remoteDev = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether remoteDev is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_remoteDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_remoteDev;
++ }
++
++ /**
++ * Set remoteDev to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_remoteDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_remoteDev(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for localDev.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_localDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, NULL);
++
++
++ return _detachVolumeType->property_localDev;
++ }
++
++ /**
++ * setter for localDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_localDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_localDev)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_localDev &&
++ arg_localDev == _detachVolumeType->property_localDev)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_localDev(_detachVolumeType, env);
++
++
++ if(NULL == arg_localDev)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev);
++ if(NULL == _detachVolumeType->property_localDev)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeType->is_valid_localDev = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for localDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_localDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeType->property_localDev != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeType->property_localDev);
++ _detachVolumeType->property_localDev = NULL;
++ }
++
++
++
++ _detachVolumeType->is_valid_localDev = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether localDev is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_localDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_localDev;
++ }
++
++ /**
++ * Set localDev to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_localDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_localDev(_detachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for force.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_get_force(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, (axis2_bool_t)0);
++
++
++ return _detachVolumeType->property_force;
++ }
++
++ /**
++ * setter for force
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_force(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_force)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++ if(_detachVolumeType->is_valid_force &&
++ arg_force == _detachVolumeType->property_force)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeType_reset_force(_detachVolumeType, env);
++
++ _detachVolumeType->property_force = arg_force;
++ _detachVolumeType->is_valid_force = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for force
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_force(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_FAILURE);
++
++
++ _detachVolumeType->is_valid_force = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether force is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_force_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeType, AXIS2_TRUE);
++
++ return !_detachVolumeType->is_valid_force;
++ }
++
++ /**
++ * Set force to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_force_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeType_reset_force(_detachVolumeType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeType.h
+@@ -0,0 +1,622 @@
++
++
++ #ifndef ADB_DETACHVOLUMETYPE_H
++ #define ADB_DETACHVOLUMETYPE_H
++
++ /**
++ * adb_detachVolumeType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_detachVolumeType class
++ */
++ typedef struct adb_detachVolumeType adb_detachVolumeType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_detachVolumeType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_detachVolumeType_t object
++ */
++ adb_detachVolumeType_t* AXIS2_CALL
++ adb_detachVolumeType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_detachVolumeType_t object
++ * @param _detachVolumeType adb_detachVolumeType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_free (
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_correlationId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_correlationId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_correlationId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_userId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_userId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_userId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_statusMessage(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_statusMessage(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_statusMessage(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_get_return(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_return(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_return(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_instanceId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_instanceId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId);
++
++ /**
++ * Resetter for instanceId
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_instanceId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for volumeId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_volumeId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for volumeId.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_volumeId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_volumeId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_volumeId);
++
++ /**
++ * Resetter for volumeId
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_volumeId(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for remoteDev.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_remoteDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for remoteDev.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_remoteDev axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_remoteDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_remoteDev);
++
++ /**
++ * Resetter for remoteDev
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_remoteDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for localDev.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeType_get_localDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for localDev.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_localDev axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_localDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_localDev);
++
++ /**
++ * Resetter for localDev
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_localDev(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for force.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_get_force(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for force.
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_force axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_force(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_force);
++
++ /**
++ * Resetter for force
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_reset_force(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_correlationId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_userId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_statusMessage_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_set_statusMessage_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_return_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceId is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_instanceId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether volumeId is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_volumeId_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether remoteDev is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_remoteDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether localDev is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_localDev_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether force is nill
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_force_nil(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeType_deserialize(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_detachVolumeType_declare_parent_namespaces(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _detachVolumeType adb_detachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param detachVolumeType_om_node node to serialize from
++ * @param detachVolumeType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_detachVolumeType_serialize(
++ adb_detachVolumeType_t* _detachVolumeType,
++ const axutil_env_t *env,
++ axiom_node_t* detachVolumeType_om_node, axiom_element_t *detachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_detachVolumeType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DETACHVOLUMETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkRule.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkRule.c
+@@ -0,0 +1,4279 @@
++
++
++ /**
++ * adb_networkRule.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_networkRule.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = networkRule
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_networkRule
++ {
++ axis2_char_t* property_type;
++
++
++ axis2_bool_t is_valid_type;
++
++
++ axutil_array_list_t* property_sourceNames;
++
++
++ axis2_bool_t is_valid_sourceNames;
++
++
++ axutil_array_list_t* property_userNames;
++
++
++ axis2_bool_t is_valid_userNames;
++
++
++ axutil_array_list_t* property_sourceNets;
++
++
++ axis2_bool_t is_valid_sourceNets;
++
++
++ axis2_char_t* property_destUserName;
++
++
++ axis2_bool_t is_valid_destUserName;
++
++
++ axis2_char_t* property_destName;
++
++
++ axis2_bool_t is_valid_destName;
++
++
++ axis2_char_t* property_protocol;
++
++
++ axis2_bool_t is_valid_protocol;
++
++
++ int property_portRangeMin;
++
++
++ axis2_bool_t is_valid_portRangeMin;
++
++
++ int property_portRangeMax;
++
++
++ axis2_bool_t is_valid_portRangeMax;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_type_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destUserName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_protocol_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMin_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMax_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_networkRule_t* AXIS2_CALL
++ adb_networkRule_create(
++ const axutil_env_t *env)
++ {
++ adb_networkRule_t *_networkRule = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _networkRule = (adb_networkRule_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_networkRule_t));
++
++ if(NULL == _networkRule)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_networkRule, 0, sizeof(adb_networkRule_t));
++
++ _networkRule->property_type = NULL;
++ _networkRule->is_valid_type = AXIS2_FALSE;
++ _networkRule->property_sourceNames = NULL;
++ _networkRule->is_valid_sourceNames = AXIS2_FALSE;
++ _networkRule->property_userNames = NULL;
++ _networkRule->is_valid_userNames = AXIS2_FALSE;
++ _networkRule->property_sourceNets = NULL;
++ _networkRule->is_valid_sourceNets = AXIS2_FALSE;
++ _networkRule->property_destUserName = NULL;
++ _networkRule->is_valid_destUserName = AXIS2_FALSE;
++ _networkRule->property_destName = NULL;
++ _networkRule->is_valid_destName = AXIS2_FALSE;
++ _networkRule->property_protocol = NULL;
++ _networkRule->is_valid_protocol = AXIS2_FALSE;
++ _networkRule->is_valid_portRangeMin = AXIS2_FALSE;
++ _networkRule->is_valid_portRangeMax = AXIS2_FALSE;
++
++
++ return _networkRule;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_free (
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ adb_networkRule_reset_type(_networkRule, env);
++ adb_networkRule_reset_sourceNames(_networkRule, env);
++ adb_networkRule_reset_userNames(_networkRule, env);
++ adb_networkRule_reset_sourceNets(_networkRule, env);
++ adb_networkRule_reset_destUserName(_networkRule, env);
++ adb_networkRule_reset_destName(_networkRule, env);
++ adb_networkRule_reset_protocol(_networkRule, env);
++ adb_networkRule_reset_portRangeMin(_networkRule, env);
++ adb_networkRule_reset_portRangeMax(_networkRule, env);
++
++
++ if(_networkRule)
++ {
++ AXIS2_FREE(env->allocator, _networkRule);
++ _networkRule = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_deserialize(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for networkRule : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building type element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "type", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkRule_set_type(_networkRule, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element type");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_networkRule_set_type(_networkRule, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for type ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element type missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building sourceNames array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building sourceNames element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "sourceNames", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element sourceNames");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for sourceNames ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNames (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_networkRule_set_sourceNames(_networkRule, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building userNames array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building userNames element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "userNames", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userNames");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userNames ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userNames (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_networkRule_set_userNames(_networkRule, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building sourceNets array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building sourceNets element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "sourceNets", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element sourceNets");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for sourceNets ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNets (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_networkRule_set_sourceNets(_networkRule, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building destUserName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "destUserName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkRule_set_destUserName(_networkRule, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element destUserName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_networkRule_set_destUserName(_networkRule, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for destUserName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building destName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "destName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkRule_set_destName(_networkRule, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element destName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_networkRule_set_destName(_networkRule, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for destName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element destName missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building protocol element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "protocol", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkRule_set_protocol(_networkRule, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element protocol");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_networkRule_set_protocol(_networkRule, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for protocol ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element protocol missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building portRangeMin element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "portRangeMin", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkRule_set_portRangeMin(_networkRule, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element portRangeMin");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for portRangeMin ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element portRangeMin missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building portRangeMax element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "portRangeMax", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkRule_set_portRangeMax(_networkRule, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element portRangeMax");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for portRangeMax ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element portRangeMax missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_networkRule_declare_parent_namespaces(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_networkRule_serialize(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t *text_value_4;
++ axis2_char_t *text_value_4_temp;
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *text_value_7;
++ axis2_char_t *text_value_7_temp;
++
++ axis2_char_t text_value_8[64];
++
++ axis2_char_t text_value_9[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_type)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property type");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("type")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("type")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing type element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%stype>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%stype>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _networkRule->property_type;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_sourceNames)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("sourceNames")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("sourceNames")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing sourceNames array
++ */
++ if (_networkRule->property_sourceNames != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%ssourceNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%ssourceNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_networkRule->property_sourceNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing sourceNames element
++ */
++
++
++
++ text_value_2 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_userNames)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userNames")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userNames")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing userNames array
++ */
++ if (_networkRule->property_userNames != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%suserNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%suserNames>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_networkRule->property_userNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkRule->property_userNames, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing userNames element
++ */
++
++
++
++ text_value_3 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_sourceNets)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("sourceNets")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("sourceNets")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing sourceNets array
++ */
++ if (_networkRule->property_sourceNets != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%ssourceNets>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%ssourceNets>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_networkRule->property_sourceNets, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing sourceNets element
++ */
++
++
++
++ text_value_4 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
++ if (text_value_4_temp)
++ {
++ axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
++ AXIS2_FREE(env->allocator, text_value_4_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_destUserName)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("destUserName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("destUserName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing destUserName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sdestUserName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sdestUserName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _networkRule->property_destUserName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_destName)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property destName");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("destName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("destName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing destName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sdestName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sdestName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _networkRule->property_destName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_protocol)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property protocol");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("protocol")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("protocol")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing protocol element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sprotocol>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sprotocol>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_7 = _networkRule->property_protocol;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
++ if (text_value_7_temp)
++ {
++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
++ AXIS2_FREE(env->allocator, text_value_7_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_portRangeMin)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property portRangeMin");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("portRangeMin")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("portRangeMin")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing portRangeMin element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sportRangeMin>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sportRangeMin>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_8, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _networkRule->property_portRangeMin);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkRule->is_valid_portRangeMax)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property portRangeMax");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("portRangeMax")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("portRangeMax")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing portRangeMax element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sportRangeMax>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sportRangeMax>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_9, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _networkRule->property_portRangeMax);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for type.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_type(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ return _networkRule->property_type;
++ }
++
++ /**
++ * setter for type
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_type(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_type)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_type &&
++ arg_type == _networkRule->property_type)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_type)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "type is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_networkRule_reset_type(_networkRule, env);
++
++
++ if(NULL == arg_type)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkRule->property_type = (axis2_char_t *)axutil_strdup(env, arg_type);
++ if(NULL == _networkRule->property_type)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for type");
++ return AXIS2_FAILURE;
++ }
++ _networkRule->is_valid_type = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for type
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_type(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++
++
++ if(_networkRule->property_type != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _networkRule->property_type);
++ _networkRule->property_type = NULL;
++ }
++
++
++
++ _networkRule->is_valid_type = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether type is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_type_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_type;
++ }
++
++ /**
++ * Set type to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_type_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_type(_networkRule, env);
++ }
++
++
++
++ /**
++ * getter for sourceNames.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkRule_get_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ return _networkRule->property_sourceNames;
++ }
++
++ /**
++ * setter for sourceNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_sourceNames)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_sourceNames &&
++ arg_sourceNames == _networkRule->property_sourceNames)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_sourceNames, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNames has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_sourceNames, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_networkRule_reset_sourceNames(_networkRule, env);
++
++
++ if(NULL == arg_sourceNames)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkRule->property_sourceNames = arg_sourceNames;
++ if(non_nil_exists)
++ {
++ _networkRule->is_valid_sourceNames = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of sourceNames.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_sourceNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ if(_networkRule->property_sourceNames == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNames, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of sourceNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_sourceNames)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if( _networkRule->is_valid_sourceNames &&
++ _networkRule->property_sourceNames &&
++
++ arg_sourceNames == (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNames, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_sourceNames)
++ {
++ if(_networkRule->property_sourceNames != NULL)
++ {
++ size = axutil_array_list_size(_networkRule->property_sourceNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNames is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkRule->property_sourceNames == NULL)
++ {
++ _networkRule->property_sourceNames = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkRule->is_valid_sourceNames = AXIS2_FALSE;
++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, axutil_strdup(env, arg_sourceNames));
++ _networkRule->is_valid_sourceNames = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to sourceNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_add_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_sourceNames)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++ if(NULL == arg_sourceNames)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_networkRule->property_sourceNames == NULL)
++ {
++ _networkRule->property_sourceNames = axutil_array_list_create(env, 10);
++ }
++ if(_networkRule->property_sourceNames == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for sourceNames");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_networkRule->property_sourceNames , env, axutil_strdup(env, arg_sourceNames));
++ _networkRule->is_valid_sourceNames = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the sourceNames array.
++ */
++ int AXIS2_CALL
++ adb_networkRule_sizeof_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, -1);
++ if(_networkRule->property_sourceNames == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_networkRule->property_sourceNames, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_remove_sourceNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ return adb_networkRule_set_sourceNames_nil_at(_networkRule, env, i);
++ }
++
++
++
++ /**
++ * resetter for sourceNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++ if (_networkRule->property_sourceNames != NULL)
++ {
++ count = axutil_array_list_size(_networkRule->property_sourceNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_networkRule->property_sourceNames, env);
++ }
++ _networkRule->is_valid_sourceNames = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether sourceNames is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_sourceNames;
++ }
++
++ /**
++ * Set sourceNames to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_sourceNames(_networkRule, env);
++ }
++
++
++ /**
++ * Check whether sourceNames is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return (_networkRule->is_valid_sourceNames == AXIS2_FALSE ||
++ NULL == _networkRule->property_sourceNames ||
++ NULL == axutil_array_list_get(_networkRule->property_sourceNames, env, i));
++ }
++
++ /**
++ * Set sourceNames to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->property_sourceNames == NULL ||
++ _networkRule->is_valid_sourceNames == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_networkRule->property_sourceNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNames is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkRule->property_sourceNames == NULL)
++ {
++ _networkRule->is_valid_sourceNames = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkRule->property_sourceNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkRule->is_valid_sourceNames = AXIS2_FALSE;
++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_networkRule->property_sourceNames , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for userNames.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkRule_get_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ return _networkRule->property_userNames;
++ }
++
++ /**
++ * setter for userNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_userNames)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_userNames &&
++ arg_userNames == _networkRule->property_userNames)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_userNames, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userNames has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_userNames, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_networkRule_reset_userNames(_networkRule, env);
++
++
++ if(NULL == arg_userNames)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkRule->property_userNames = arg_userNames;
++ if(non_nil_exists)
++ {
++ _networkRule->is_valid_userNames = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of userNames.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_userNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ if(_networkRule->property_userNames == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_networkRule->property_userNames, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of userNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_userNames)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if( _networkRule->is_valid_userNames &&
++ _networkRule->property_userNames &&
++
++ arg_userNames == (axis2_char_t*)axutil_array_list_get(_networkRule->property_userNames, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_userNames)
++ {
++ if(_networkRule->property_userNames != NULL)
++ {
++ size = axutil_array_list_size(_networkRule->property_userNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_networkRule->property_userNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of userNames is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkRule->property_userNames == NULL)
++ {
++ _networkRule->property_userNames = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkRule->property_userNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkRule->is_valid_userNames = AXIS2_FALSE;
++ axutil_array_list_set(_networkRule->property_userNames , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_networkRule->property_userNames , env, i, axutil_strdup(env, arg_userNames));
++ _networkRule->is_valid_userNames = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to userNames.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_add_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userNames)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++ if(NULL == arg_userNames)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_networkRule->property_userNames == NULL)
++ {
++ _networkRule->property_userNames = axutil_array_list_create(env, 10);
++ }
++ if(_networkRule->property_userNames == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for userNames");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_networkRule->property_userNames , env, axutil_strdup(env, arg_userNames));
++ _networkRule->is_valid_userNames = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the userNames array.
++ */
++ int AXIS2_CALL
++ adb_networkRule_sizeof_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, -1);
++ if(_networkRule->property_userNames == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_networkRule->property_userNames, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_remove_userNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ return adb_networkRule_set_userNames_nil_at(_networkRule, env, i);
++ }
++
++
++
++ /**
++ * resetter for userNames
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++ if (_networkRule->property_userNames != NULL)
++ {
++ count = axutil_array_list_size(_networkRule->property_userNames, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkRule->property_userNames, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_networkRule->property_userNames, env);
++ }
++ _networkRule->is_valid_userNames = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userNames is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_userNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_userNames;
++ }
++
++ /**
++ * Set userNames to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_userNames(_networkRule, env);
++ }
++
++
++ /**
++ * Check whether userNames is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_userNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return (_networkRule->is_valid_userNames == AXIS2_FALSE ||
++ NULL == _networkRule->property_userNames ||
++ NULL == axutil_array_list_get(_networkRule->property_userNames, env, i));
++ }
++
++ /**
++ * Set userNames to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->property_userNames == NULL ||
++ _networkRule->is_valid_userNames == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_networkRule->property_userNames, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_networkRule->property_userNames, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of userNames is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkRule->property_userNames == NULL)
++ {
++ _networkRule->is_valid_userNames = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkRule->property_userNames, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkRule->is_valid_userNames = AXIS2_FALSE;
++ axutil_array_list_set(_networkRule->property_userNames , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_networkRule->property_userNames , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for sourceNets.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkRule_get_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ return _networkRule->property_sourceNets;
++ }
++
++ /**
++ * setter for sourceNets
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_sourceNets)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_sourceNets &&
++ arg_sourceNets == _networkRule->property_sourceNets)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_sourceNets, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceNets has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_sourceNets, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_networkRule_reset_sourceNets(_networkRule, env);
++
++
++ if(NULL == arg_sourceNets)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkRule->property_sourceNets = arg_sourceNets;
++ if(non_nil_exists)
++ {
++ _networkRule->is_valid_sourceNets = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of sourceNets.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_sourceNets_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ if(_networkRule->property_sourceNets == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNets, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of sourceNets.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_sourceNets)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if( _networkRule->is_valid_sourceNets &&
++ _networkRule->property_sourceNets &&
++
++ arg_sourceNets == (axis2_char_t*)axutil_array_list_get(_networkRule->property_sourceNets, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_sourceNets)
++ {
++ if(_networkRule->property_sourceNets != NULL)
++ {
++ size = axutil_array_list_size(_networkRule->property_sourceNets, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNets, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNets is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkRule->property_sourceNets == NULL)
++ {
++ _networkRule->property_sourceNets = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkRule->is_valid_sourceNets = AXIS2_FALSE;
++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, axutil_strdup(env, arg_sourceNets));
++ _networkRule->is_valid_sourceNets = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to sourceNets.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_add_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_sourceNets)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++ if(NULL == arg_sourceNets)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_networkRule->property_sourceNets == NULL)
++ {
++ _networkRule->property_sourceNets = axutil_array_list_create(env, 10);
++ }
++ if(_networkRule->property_sourceNets == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for sourceNets");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_networkRule->property_sourceNets , env, axutil_strdup(env, arg_sourceNets));
++ _networkRule->is_valid_sourceNets = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the sourceNets array.
++ */
++ int AXIS2_CALL
++ adb_networkRule_sizeof_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, -1);
++ if(_networkRule->property_sourceNets == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_networkRule->property_sourceNets, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_remove_sourceNets_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ return adb_networkRule_set_sourceNets_nil_at(_networkRule, env, i);
++ }
++
++
++
++ /**
++ * resetter for sourceNets
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++ if (_networkRule->property_sourceNets != NULL)
++ {
++ count = axutil_array_list_size(_networkRule->property_sourceNets, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_networkRule->property_sourceNets, env);
++ }
++ _networkRule->is_valid_sourceNets = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether sourceNets is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNets_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_sourceNets;
++ }
++
++ /**
++ * Set sourceNets to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_sourceNets(_networkRule, env);
++ }
++
++
++ /**
++ * Check whether sourceNets is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNets_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return (_networkRule->is_valid_sourceNets == AXIS2_FALSE ||
++ NULL == _networkRule->property_sourceNets ||
++ NULL == axutil_array_list_get(_networkRule->property_sourceNets, env, i));
++ }
++
++ /**
++ * Set sourceNets to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->property_sourceNets == NULL ||
++ _networkRule->is_valid_sourceNets == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_networkRule->property_sourceNets, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_networkRule->property_sourceNets, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceNets is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkRule->property_sourceNets == NULL)
++ {
++ _networkRule->is_valid_sourceNets = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkRule->property_sourceNets, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkRule->is_valid_sourceNets = AXIS2_FALSE;
++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_networkRule->property_sourceNets , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for destUserName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_destUserName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ return _networkRule->property_destUserName;
++ }
++
++ /**
++ * setter for destUserName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destUserName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_destUserName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_destUserName &&
++ arg_destUserName == _networkRule->property_destUserName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_networkRule_reset_destUserName(_networkRule, env);
++
++
++ if(NULL == arg_destUserName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkRule->property_destUserName = (axis2_char_t *)axutil_strdup(env, arg_destUserName);
++ if(NULL == _networkRule->property_destUserName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for destUserName");
++ return AXIS2_FAILURE;
++ }
++ _networkRule->is_valid_destUserName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for destUserName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_destUserName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++
++
++ if(_networkRule->property_destUserName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _networkRule->property_destUserName);
++ _networkRule->property_destUserName = NULL;
++ }
++
++
++
++ _networkRule->is_valid_destUserName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether destUserName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_destUserName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_destUserName;
++ }
++
++ /**
++ * Set destUserName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destUserName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_destUserName(_networkRule, env);
++ }
++
++
++
++ /**
++ * getter for destName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_destName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ return _networkRule->property_destName;
++ }
++
++ /**
++ * setter for destName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_destName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_destName &&
++ arg_destName == _networkRule->property_destName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_destName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "destName is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_networkRule_reset_destName(_networkRule, env);
++
++
++ if(NULL == arg_destName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkRule->property_destName = (axis2_char_t *)axutil_strdup(env, arg_destName);
++ if(NULL == _networkRule->property_destName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for destName");
++ return AXIS2_FAILURE;
++ }
++ _networkRule->is_valid_destName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for destName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_destName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++
++
++ if(_networkRule->property_destName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _networkRule->property_destName);
++ _networkRule->property_destName = NULL;
++ }
++
++
++
++ _networkRule->is_valid_destName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether destName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_destName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_destName;
++ }
++
++ /**
++ * Set destName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_destName(_networkRule, env);
++ }
++
++
++
++ /**
++ * getter for protocol.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_protocol(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, NULL);
++
++
++ return _networkRule->property_protocol;
++ }
++
++ /**
++ * setter for protocol
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_protocol(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_protocol)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_protocol &&
++ arg_protocol == _networkRule->property_protocol)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_protocol)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "protocol is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_networkRule_reset_protocol(_networkRule, env);
++
++
++ if(NULL == arg_protocol)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkRule->property_protocol = (axis2_char_t *)axutil_strdup(env, arg_protocol);
++ if(NULL == _networkRule->property_protocol)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for protocol");
++ return AXIS2_FAILURE;
++ }
++ _networkRule->is_valid_protocol = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for protocol
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_protocol(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++
++
++
++ if(_networkRule->property_protocol != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _networkRule->property_protocol);
++ _networkRule->property_protocol = NULL;
++ }
++
++
++
++ _networkRule->is_valid_protocol = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether protocol is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_protocol_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_protocol;
++ }
++
++ /**
++ * Set protocol to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_protocol_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_protocol(_networkRule, env);
++ }
++
++
++
++ /**
++ * getter for portRangeMin.
++ */
++ int AXIS2_CALL
++ adb_networkRule_get_portRangeMin(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, (int)0);
++
++
++ return _networkRule->property_portRangeMin;
++ }
++
++ /**
++ * setter for portRangeMin
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMin(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const int arg_portRangeMin)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_portRangeMin &&
++ arg_portRangeMin == _networkRule->property_portRangeMin)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_networkRule_reset_portRangeMin(_networkRule, env);
++
++ _networkRule->property_portRangeMin = arg_portRangeMin;
++ _networkRule->is_valid_portRangeMin = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for portRangeMin
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_portRangeMin(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++ _networkRule->is_valid_portRangeMin = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether portRangeMin is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_portRangeMin_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_portRangeMin;
++ }
++
++ /**
++ * Set portRangeMin to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMin_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_portRangeMin(_networkRule, env);
++ }
++
++
++
++ /**
++ * getter for portRangeMax.
++ */
++ int AXIS2_CALL
++ adb_networkRule_get_portRangeMax(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, (int)0);
++
++
++ return _networkRule->property_portRangeMax;
++ }
++
++ /**
++ * setter for portRangeMax
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMax(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const int arg_portRangeMax)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++ if(_networkRule->is_valid_portRangeMax &&
++ arg_portRangeMax == _networkRule->property_portRangeMax)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_networkRule_reset_portRangeMax(_networkRule, env);
++
++ _networkRule->property_portRangeMax = arg_portRangeMax;
++ _networkRule->is_valid_portRangeMax = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for portRangeMax
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_portRangeMax(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_FAILURE);
++
++
++ _networkRule->is_valid_portRangeMax = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether portRangeMax is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_portRangeMax_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkRule, AXIS2_TRUE);
++
++ return !_networkRule->is_valid_portRangeMax;
++ }
++
++ /**
++ * Set portRangeMax to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMax_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env)
++ {
++ return adb_networkRule_reset_portRangeMax(_networkRule, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkRule.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkRule.h
+@@ -0,0 +1,919 @@
++
++
++ #ifndef ADB_NETWORKRULE_H
++ #define ADB_NETWORKRULE_H
++
++ /**
++ * adb_networkRule.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_networkRule class
++ */
++ typedef struct adb_networkRule adb_networkRule_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_networkRule_t
++ * @param env pointer to environment struct
++ * @return newly created adb_networkRule_t object
++ */
++ adb_networkRule_t* AXIS2_CALL
++ adb_networkRule_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_networkRule_t object
++ * @param _networkRule adb_networkRule_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_free (
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for type.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_type(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for type.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_type axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_type(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_type);
++
++ /**
++ * Resetter for type
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_type(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for sourceNames. Deprecated for array types, Use adb_networkRule_get_sourceNames_at instead
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkRule_get_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for sourceNames.Deprecated for array types, Use adb_networkRule_set_sourceNames_at
++ * or adb_networkRule_add_sourceNames instead.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_sourceNames Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_sourceNames);
++
++ /**
++ * Resetter for sourceNames
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userNames. Deprecated for array types, Use adb_networkRule_get_userNames_at instead
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkRule_get_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userNames.Deprecated for array types, Use adb_networkRule_set_userNames_at
++ * or adb_networkRule_add_userNames instead.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_userNames Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_userNames);
++
++ /**
++ * Resetter for userNames
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for sourceNets. Deprecated for array types, Use adb_networkRule_get_sourceNets_at instead
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkRule_get_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for sourceNets.Deprecated for array types, Use adb_networkRule_set_sourceNets_at
++ * or adb_networkRule_add_sourceNets instead.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_sourceNets Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_sourceNets);
++
++ /**
++ * Resetter for sourceNets
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for destUserName.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_destUserName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for destUserName.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_destUserName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destUserName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_destUserName);
++
++ /**
++ * Resetter for destUserName
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_destUserName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for destName.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_destName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for destName.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_destName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_destName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_destName);
++
++ /**
++ * Resetter for destName
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_destName(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for protocol.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_protocol(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for protocol.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_protocol axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_protocol(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_protocol);
++
++ /**
++ * Resetter for protocol
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_protocol(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for portRangeMin.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_networkRule_get_portRangeMin(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for portRangeMin.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_portRangeMin int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMin(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const int arg_portRangeMin);
++
++ /**
++ * Resetter for portRangeMin
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_portRangeMin(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for portRangeMax.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_networkRule_get_portRangeMax(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for portRangeMax.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_portRangeMax int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_portRangeMax(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const int arg_portRangeMax);
++
++ /**
++ * Resetter for portRangeMax
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_reset_portRangeMax(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of sourceNames.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_sourceNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of sourceNames. (If the ith already exist, it will be replaced)
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_sourceNames element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_sourceNames);
++
++
++ /**
++ * Add to sourceNames.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_sourceNames element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_add_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_sourceNames);
++
++ /**
++ * Get the size of the sourceNames array.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @return the size of the sourceNames array.
++ */
++ int AXIS2_CALL
++ adb_networkRule_sizeof_sourceNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of sourceNames.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_remove_sourceNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of userNames.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_userNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of userNames. (If the ith already exist, it will be replaced)
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_userNames element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_userNames);
++
++
++ /**
++ * Add to userNames.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_userNames element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_add_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userNames);
++
++ /**
++ * Get the size of the userNames array.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @return the size of the userNames array.
++ */
++ int AXIS2_CALL
++ adb_networkRule_sizeof_userNames(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of userNames.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_remove_userNames_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of sourceNets.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkRule_get_sourceNets_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of sourceNets. (If the ith already exist, it will be replaced)
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_sourceNets element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_sourceNets);
++
++
++ /**
++ * Add to sourceNets.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param arg_sourceNets element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_add_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_sourceNets);
++
++ /**
++ * Get the size of the sourceNets array.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @return the size of the sourceNets array.
++ */
++ int AXIS2_CALL
++ adb_networkRule_sizeof_sourceNets(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of sourceNets.
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_remove_sourceNets_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether type is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_type_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether sourceNames is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userNames is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_userNames_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether sourceNets is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNets_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether destUserName is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_destUserName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether destName is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_destName_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether protocol is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_protocol_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether portRangeMin is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_portRangeMin_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether portRangeMax is nill
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_portRangeMax_nil(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether sourceNames is nill at i
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set sourceNames to nill at i
++ * @param _networkRule _ adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether userNames is nill at i
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_userNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set userNames to nill at i
++ * @param _networkRule _ adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_userNames_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether sourceNets is nill at i
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_sourceNets_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set sourceNets to nill at i
++ * @param _networkRule _ adb_networkRule_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_set_sourceNets_nil_at(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkRule_deserialize(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_networkRule_declare_parent_namespaces(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _networkRule adb_networkRule_t object
++ * @param env pointer to environment struct
++ * @param networkRule_om_node node to serialize from
++ * @param networkRule_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_networkRule_serialize(
++ adb_networkRule_t* _networkRule,
++ const axutil_env_t *env,
++ axiom_node_t* networkRule_om_node, axiom_element_t *networkRule_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_networkRule is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkRule_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_NETWORKRULE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkType.c
+@@ -0,0 +1,2076 @@
++
++
++ /**
++ * adb_configureNetworkType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_configureNetworkType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = configureNetworkType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_configureNetworkType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_rules;
++
++
++ axis2_bool_t is_valid_rules;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_correlationId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_userId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_return_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules_nil_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_configureNetworkType_t* AXIS2_CALL
++ adb_configureNetworkType_create(
++ const axutil_env_t *env)
++ {
++ adb_configureNetworkType_t *_configureNetworkType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _configureNetworkType = (adb_configureNetworkType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_configureNetworkType_t));
++
++ if(NULL == _configureNetworkType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_configureNetworkType, 0, sizeof(adb_configureNetworkType_t));
++
++ _configureNetworkType->property_correlationId = NULL;
++ _configureNetworkType->is_valid_correlationId = AXIS2_FALSE;
++ _configureNetworkType->property_userId = NULL;
++ _configureNetworkType->is_valid_userId = AXIS2_FALSE;
++ _configureNetworkType->property_statusMessage = NULL;
++ _configureNetworkType->is_valid_statusMessage = AXIS2_FALSE;
++ _configureNetworkType->is_valid_return = AXIS2_FALSE;
++ _configureNetworkType->property_rules = NULL;
++ _configureNetworkType->is_valid_rules = AXIS2_FALSE;
++
++
++ return _configureNetworkType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_free (
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ adb_configureNetworkType_reset_correlationId(_configureNetworkType, env);
++ adb_configureNetworkType_reset_userId(_configureNetworkType, env);
++ adb_configureNetworkType_reset_statusMessage(_configureNetworkType, env);
++ adb_configureNetworkType_reset_return(_configureNetworkType, env);
++ adb_configureNetworkType_reset_rules(_configureNetworkType, env);
++
++
++ if(_configureNetworkType)
++ {
++ AXIS2_FREE(env->allocator, _configureNetworkType);
++ _configureNetworkType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_deserialize(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for configureNetworkType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_configureNetworkType_set_correlationId(_configureNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_configureNetworkType_set_correlationId(_configureNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_configureNetworkType_set_userId(_configureNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_configureNetworkType_set_userId(_configureNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_configureNetworkType_set_statusMessage(_configureNetworkType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_configureNetworkType_set_return(_configureNetworkType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_configureNetworkType_set_return(_configureNetworkType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building rules array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building rules element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "rules", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ element = (void*)adb_networkRule_create(env);
++
++ status = adb_networkRule_deserialize((adb_networkRule_t*)element, env,
++ ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element rules ");
++ }
++ else
++ {
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for rules ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "rules (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_configureNetworkType_set_rules(_configureNetworkType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_configureNetworkType_declare_parent_namespaces(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_configureNetworkType_serialize(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _configureNetworkType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _configureNetworkType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _configureNetworkType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_configureNetworkType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkType->is_valid_rules)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("rules")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("rules")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing rules array
++ */
++ if (_configureNetworkType->property_rules != NULL)
++ {
++
++
++ sprintf(start_input_str, "<%s%srules",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%srules>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_configureNetworkType->property_rules, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing rules element
++ */
++
++
++
++ if(!adb_networkRule_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_networkRule_serialize((adb_networkRule_t*)element,
++ env, current_node, parent_element,
++ adb_networkRule_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_networkRule_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkType_get_correlationId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL);
++
++
++ return _configureNetworkType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_correlationId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ if(_configureNetworkType->is_valid_correlationId &&
++ arg_correlationId == _configureNetworkType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkType_reset_correlationId(_configureNetworkType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _configureNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _configureNetworkType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _configureNetworkType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_correlationId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_configureNetworkType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _configureNetworkType->property_correlationId);
++ _configureNetworkType->property_correlationId = NULL;
++ }
++
++
++
++ _configureNetworkType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_correlationId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE);
++
++ return !_configureNetworkType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_correlationId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkType_reset_correlationId(_configureNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkType_get_userId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL);
++
++
++ return _configureNetworkType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_userId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ if(_configureNetworkType->is_valid_userId &&
++ arg_userId == _configureNetworkType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkType_reset_userId(_configureNetworkType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _configureNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _configureNetworkType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _configureNetworkType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_userId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_configureNetworkType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _configureNetworkType->property_userId);
++ _configureNetworkType->property_userId = NULL;
++ }
++
++
++
++ _configureNetworkType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_userId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE);
++
++ return !_configureNetworkType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_userId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkType_reset_userId(_configureNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkType_get_statusMessage(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL);
++
++
++ return _configureNetworkType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_statusMessage(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ if(_configureNetworkType->is_valid_statusMessage &&
++ arg_statusMessage == _configureNetworkType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkType_reset_statusMessage(_configureNetworkType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _configureNetworkType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _configureNetworkType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _configureNetworkType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_statusMessage(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_configureNetworkType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _configureNetworkType->property_statusMessage);
++ _configureNetworkType->property_statusMessage = NULL;
++ }
++
++
++
++ _configureNetworkType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_statusMessage_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE);
++
++ return !_configureNetworkType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_statusMessage_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkType_reset_statusMessage(_configureNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_get_return(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, (axis2_bool_t)0);
++
++
++ return _configureNetworkType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_return(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ if(_configureNetworkType->is_valid_return &&
++ arg_return == _configureNetworkType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkType_reset_return(_configureNetworkType, env);
++
++ _configureNetworkType->property_return = arg_return;
++ _configureNetworkType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_return(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++
++ _configureNetworkType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_return_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE);
++
++ return !_configureNetworkType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_return_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkType_reset_return(_configureNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for rules.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_configureNetworkType_get_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL);
++
++
++ return _configureNetworkType->property_rules;
++ }
++
++ /**
++ * setter for rules
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_rules)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ if(_configureNetworkType->is_valid_rules &&
++ arg_rules == _configureNetworkType->property_rules)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_rules, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "rules has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_rules, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_configureNetworkType_reset_rules(_configureNetworkType, env);
++
++
++ if(NULL == arg_rules)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _configureNetworkType->property_rules = arg_rules;
++ if(non_nil_exists)
++ {
++ _configureNetworkType->is_valid_rules = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of rules.
++ */
++ adb_networkRule_t* AXIS2_CALL
++ adb_configureNetworkType_get_rules_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ adb_networkRule_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, NULL);
++
++
++ if(_configureNetworkType->property_rules == NULL)
++ {
++ return (adb_networkRule_t*)0;
++ }
++ ret_val = (adb_networkRule_t*)axutil_array_list_get(_configureNetworkType->property_rules, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of rules.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i,
++ adb_networkRule_t* arg_rules)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ if( _configureNetworkType->is_valid_rules &&
++ _configureNetworkType->property_rules &&
++
++ arg_rules == (adb_networkRule_t*)axutil_array_list_get(_configureNetworkType->property_rules, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_rules)
++ {
++ if(_configureNetworkType->property_rules != NULL)
++ {
++ size = axutil_array_list_size(_configureNetworkType->property_rules, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_configureNetworkType->property_rules, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of rules is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_configureNetworkType->property_rules == NULL)
++ {
++ _configureNetworkType->property_rules = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_networkRule_free((adb_networkRule_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _configureNetworkType->is_valid_rules = AXIS2_FALSE;
++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, arg_rules);
++ _configureNetworkType->is_valid_rules = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to rules.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_add_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ adb_networkRule_t* arg_rules)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_rules)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_configureNetworkType->property_rules == NULL)
++ {
++ _configureNetworkType->property_rules = axutil_array_list_create(env, 10);
++ }
++ if(_configureNetworkType->property_rules == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for rules");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_configureNetworkType->property_rules , env, arg_rules);
++ _configureNetworkType->is_valid_rules = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the rules array.
++ */
++ int AXIS2_CALL
++ adb_configureNetworkType_sizeof_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, -1);
++ if(_configureNetworkType->property_rules == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_configureNetworkType->property_rules, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_remove_rules_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_configureNetworkType_set_rules_nil_at(_configureNetworkType, env, i);
++ }
++
++
++
++ /**
++ * resetter for rules
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++
++
++ if (_configureNetworkType->property_rules != NULL)
++ {
++ count = axutil_array_list_size(_configureNetworkType->property_rules, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ adb_networkRule_free((adb_networkRule_t*)element, env);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_configureNetworkType->property_rules, env);
++ }
++ _configureNetworkType->is_valid_rules = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether rules is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_rules_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE);
++
++ return !_configureNetworkType->is_valid_rules;
++ }
++
++ /**
++ * Set rules to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkType_reset_rules(_configureNetworkType, env);
++ }
++
++
++ /**
++ * Check whether rules is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_rules_nil_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_TRUE);
++
++ return (_configureNetworkType->is_valid_rules == AXIS2_FALSE ||
++ NULL == _configureNetworkType->property_rules ||
++ NULL == axutil_array_list_get(_configureNetworkType->property_rules, env, i));
++ }
++
++ /**
++ * Set rules to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules_nil_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkType, AXIS2_FAILURE);
++
++ if(_configureNetworkType->property_rules == NULL ||
++ _configureNetworkType->is_valid_rules == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_configureNetworkType->property_rules, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_configureNetworkType->property_rules, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of rules is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_configureNetworkType->property_rules == NULL)
++ {
++ _configureNetworkType->is_valid_rules = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_configureNetworkType->property_rules, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_networkRule_free((adb_networkRule_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _configureNetworkType->is_valid_rules = AXIS2_FALSE;
++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_configureNetworkType->property_rules , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkType.h
+@@ -0,0 +1,540 @@
++
++
++ #ifndef ADB_CONFIGURENETWORKTYPE_H
++ #define ADB_CONFIGURENETWORKTYPE_H
++
++ /**
++ * adb_configureNetworkType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_configureNetworkType class
++ */
++ typedef struct adb_configureNetworkType adb_configureNetworkType_t;
++
++
++ #include "adb_networkRule.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_configureNetworkType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_configureNetworkType_t object
++ */
++ adb_configureNetworkType_t* AXIS2_CALL
++ adb_configureNetworkType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_configureNetworkType_t object
++ * @param _configureNetworkType adb_configureNetworkType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_free (
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkType_get_correlationId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_correlationId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_correlationId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkType_get_userId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_userId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_userId(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkType_get_statusMessage(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_statusMessage(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_statusMessage(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_get_return(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_return(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_return(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for rules. Deprecated for array types, Use adb_configureNetworkType_get_rules_at instead
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return Array of adb_networkRule_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_configureNetworkType_get_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for rules.Deprecated for array types, Use adb_configureNetworkType_set_rules_at
++ * or adb_configureNetworkType_add_rules instead.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_rules Array of adb_networkRule_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_rules);
++
++ /**
++ * Resetter for rules
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_reset_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of rules.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith adb_networkRule_t* of the array
++ */
++ adb_networkRule_t* AXIS2_CALL
++ adb_configureNetworkType_get_rules_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of rules. (If the ith already exist, it will be replaced)
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_rules element to set adb_networkRule_t* to the array
++ * @return ith adb_networkRule_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i,
++ adb_networkRule_t* arg_rules);
++
++
++ /**
++ * Add to rules.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_rules element to add adb_networkRule_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_add_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ adb_networkRule_t* arg_rules);
++
++ /**
++ * Get the size of the rules array.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the rules array.
++ */
++ int AXIS2_CALL
++ adb_configureNetworkType_sizeof_rules(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of rules.
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_remove_rules_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_correlationId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_userId_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_statusMessage_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_statusMessage_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_return_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether rules is nill
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_rules_nil(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether rules is nill at i
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_rules_nil_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set rules to nill at i
++ * @param _configureNetworkType _ adb_configureNetworkType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_set_rules_nil_at(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkType_deserialize(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_configureNetworkType_declare_parent_namespaces(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _configureNetworkType adb_configureNetworkType_t object
++ * @param env pointer to environment struct
++ * @param configureNetworkType_om_node node to serialize from
++ * @param configureNetworkType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_configureNetworkType_serialize(
++ adb_configureNetworkType_t* _configureNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t* configureNetworkType_om_node, axiom_element_t *configureNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_configureNetworkType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_CONFIGURENETWORKTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesType.c
+@@ -0,0 +1,2061 @@
++
++
++ /**
++ * adb_terminateInstancesType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_terminateInstancesType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = terminateInstancesType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_terminateInstancesType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_instanceIds;
++
++
++ axis2_bool_t is_valid_instanceIds;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_correlationId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_userId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_return_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_terminateInstancesType_t* AXIS2_CALL
++ adb_terminateInstancesType_create(
++ const axutil_env_t *env)
++ {
++ adb_terminateInstancesType_t *_terminateInstancesType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _terminateInstancesType = (adb_terminateInstancesType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_terminateInstancesType_t));
++
++ if(NULL == _terminateInstancesType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_terminateInstancesType, 0, sizeof(adb_terminateInstancesType_t));
++
++ _terminateInstancesType->property_correlationId = NULL;
++ _terminateInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ _terminateInstancesType->property_userId = NULL;
++ _terminateInstancesType->is_valid_userId = AXIS2_FALSE;
++ _terminateInstancesType->property_statusMessage = NULL;
++ _terminateInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ _terminateInstancesType->is_valid_return = AXIS2_FALSE;
++ _terminateInstancesType->property_instanceIds = NULL;
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++
++
++ return _terminateInstancesType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_free (
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ adb_terminateInstancesType_reset_correlationId(_terminateInstancesType, env);
++ adb_terminateInstancesType_reset_userId(_terminateInstancesType, env);
++ adb_terminateInstancesType_reset_statusMessage(_terminateInstancesType, env);
++ adb_terminateInstancesType_reset_return(_terminateInstancesType, env);
++ adb_terminateInstancesType_reset_instanceIds(_terminateInstancesType, env);
++
++
++ if(_terminateInstancesType)
++ {
++ AXIS2_FREE(env->allocator, _terminateInstancesType);
++ _terminateInstancesType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_deserialize(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for terminateInstancesType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_terminateInstancesType_set_correlationId(_terminateInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_terminateInstancesType_set_correlationId(_terminateInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_terminateInstancesType_set_userId(_terminateInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_terminateInstancesType_set_userId(_terminateInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_terminateInstancesType_set_statusMessage(_terminateInstancesType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_terminateInstancesType_set_return(_terminateInstancesType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_terminateInstancesType_set_return(_terminateInstancesType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building instanceIds array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building instanceIds element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_terminateInstancesType_set_instanceIds(_terminateInstancesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_terminateInstancesType_declare_parent_namespaces(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_terminateInstancesType_serialize(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _terminateInstancesType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _terminateInstancesType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _terminateInstancesType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_terminateInstancesType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesType->is_valid_instanceIds)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceIds")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing instanceIds array
++ */
++ if (_terminateInstancesType->property_instanceIds != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing instanceIds element
++ */
++
++
++
++ text_value_5 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_correlationId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL);
++
++
++ return _terminateInstancesType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_correlationId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ if(_terminateInstancesType->is_valid_correlationId &&
++ arg_correlationId == _terminateInstancesType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesType_reset_correlationId(_terminateInstancesType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _terminateInstancesType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _terminateInstancesType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_correlationId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_terminateInstancesType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _terminateInstancesType->property_correlationId);
++ _terminateInstancesType->property_correlationId = NULL;
++ }
++
++
++
++ _terminateInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_correlationId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE);
++
++ return !_terminateInstancesType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_correlationId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesType_reset_correlationId(_terminateInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_userId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL);
++
++
++ return _terminateInstancesType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_userId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ if(_terminateInstancesType->is_valid_userId &&
++ arg_userId == _terminateInstancesType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesType_reset_userId(_terminateInstancesType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _terminateInstancesType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _terminateInstancesType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_userId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_terminateInstancesType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _terminateInstancesType->property_userId);
++ _terminateInstancesType->property_userId = NULL;
++ }
++
++
++
++ _terminateInstancesType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_userId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE);
++
++ return !_terminateInstancesType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_userId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesType_reset_userId(_terminateInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_statusMessage(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL);
++
++
++ return _terminateInstancesType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_statusMessage(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ if(_terminateInstancesType->is_valid_statusMessage &&
++ arg_statusMessage == _terminateInstancesType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesType_reset_statusMessage(_terminateInstancesType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _terminateInstancesType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _terminateInstancesType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_statusMessage(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_terminateInstancesType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _terminateInstancesType->property_statusMessage);
++ _terminateInstancesType->property_statusMessage = NULL;
++ }
++
++
++
++ _terminateInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_statusMessage_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE);
++
++ return !_terminateInstancesType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_statusMessage_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesType_reset_statusMessage(_terminateInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_get_return(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, (axis2_bool_t)0);
++
++
++ return _terminateInstancesType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_return(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ if(_terminateInstancesType->is_valid_return &&
++ arg_return == _terminateInstancesType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesType_reset_return(_terminateInstancesType, env);
++
++ _terminateInstancesType->property_return = arg_return;
++ _terminateInstancesType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_return(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++
++ _terminateInstancesType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_return_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE);
++
++ return !_terminateInstancesType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_return_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesType_reset_return(_terminateInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for instanceIds.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_terminateInstancesType_get_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL);
++
++
++ return _terminateInstancesType->property_instanceIds;
++ }
++
++ /**
++ * setter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ if(_terminateInstancesType->is_valid_instanceIds &&
++ arg_instanceIds == _terminateInstancesType->property_instanceIds)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_instanceIds, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_terminateInstancesType_reset_instanceIds(_terminateInstancesType, env);
++
++
++ if(NULL == arg_instanceIds)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesType->property_instanceIds = arg_instanceIds;
++ if(non_nil_exists)
++ {
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of instanceIds.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_instanceIds_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, NULL);
++
++
++ if(_terminateInstancesType->property_instanceIds == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ if( _terminateInstancesType->is_valid_instanceIds &&
++ _terminateInstancesType->property_instanceIds &&
++
++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_instanceIds)
++ {
++ if(_terminateInstancesType->property_instanceIds != NULL)
++ {
++ size = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_terminateInstancesType->property_instanceIds == NULL)
++ {
++ _terminateInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds));
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_add_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_instanceIds)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_terminateInstancesType->property_instanceIds == NULL)
++ {
++ _terminateInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++ if(_terminateInstancesType->property_instanceIds == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_terminateInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds));
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_terminateInstancesType_sizeof_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, -1);
++ if(_terminateInstancesType->property_instanceIds == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_terminateInstancesType->property_instanceIds, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_remove_instanceIds_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_terminateInstancesType_set_instanceIds_nil_at(_terminateInstancesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++
++
++ if (_terminateInstancesType->property_instanceIds != NULL)
++ {
++ count = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_terminateInstancesType->property_instanceIds, env);
++ }
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceIds is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_instanceIds_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE);
++
++ return !_terminateInstancesType->is_valid_instanceIds;
++ }
++
++ /**
++ * Set instanceIds to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesType_reset_instanceIds(_terminateInstancesType, env);
++ }
++
++
++ /**
++ * Check whether instanceIds is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_instanceIds_nil_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_TRUE);
++
++ return (_terminateInstancesType->is_valid_instanceIds == AXIS2_FALSE ||
++ NULL == _terminateInstancesType->property_instanceIds ||
++ NULL == axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i));
++ }
++
++ /**
++ * Set instanceIds to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds_nil_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesType, AXIS2_FAILURE);
++
++ if(_terminateInstancesType->property_instanceIds == NULL ||
++ _terminateInstancesType->is_valid_instanceIds == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_terminateInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_terminateInstancesType->property_instanceIds == NULL)
++ {
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_terminateInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _terminateInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_terminateInstancesType->property_instanceIds , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesType.h
+@@ -0,0 +1,549 @@
++
++
++ #ifndef ADB_TERMINATEINSTANCESTYPE_H
++ #define ADB_TERMINATEINSTANCESTYPE_H
++
++ /**
++ * adb_terminateInstancesType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_terminateInstancesType class
++ */
++ typedef struct adb_terminateInstancesType adb_terminateInstancesType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_terminateInstancesType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_terminateInstancesType_t object
++ */
++ adb_terminateInstancesType_t* AXIS2_CALL
++ adb_terminateInstancesType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_terminateInstancesType_t object
++ * @param _terminateInstancesType adb_terminateInstancesType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_free (
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_correlationId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_correlationId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_correlationId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_userId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_userId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_userId(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_statusMessage(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_statusMessage(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_statusMessage(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_get_return(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_return(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_return(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceIds. Deprecated for array types, Use adb_terminateInstancesType_get_instanceIds_at instead
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_terminateInstancesType_get_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceIds.Deprecated for array types, Use adb_terminateInstancesType_set_instanceIds_at
++ * or adb_terminateInstancesType_add_instanceIds instead.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds);
++
++ /**
++ * Resetter for instanceIds
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_reset_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of instanceIds.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesType_get_instanceIds_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced)
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_instanceIds element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds);
++
++
++ /**
++ * Add to instanceIds.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_add_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds);
++
++ /**
++ * Get the size of the instanceIds array.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_terminateInstancesType_sizeof_instanceIds(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of instanceIds.
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_remove_instanceIds_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_correlationId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_userId_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_statusMessage_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_statusMessage_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_return_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceIds is nill
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_instanceIds_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set instanceIds to nill (currently the same as reset)
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds_nil(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env);
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether instanceIds is nill at i
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_instanceIds_nil_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set instanceIds to nill at i
++ * @param _terminateInstancesType _ adb_terminateInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_set_instanceIds_nil_at(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesType_deserialize(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_terminateInstancesType_declare_parent_namespaces(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _terminateInstancesType adb_terminateInstancesType_t object
++ * @param env pointer to environment struct
++ * @param terminateInstancesType_om_node node to serialize from
++ * @param terminateInstancesType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_terminateInstancesType_serialize(
++ adb_terminateInstancesType_t* _terminateInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t* terminateInstancesType_om_node, axiom_element_t *terminateInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_terminateInstancesType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_TERMINATEINSTANCESTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_assignAddressResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_assignAddressResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = assignAddressResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_assignAddressResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_correlationId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_userId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_return_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_assignAddressResponseType_t* AXIS2_CALL
++ adb_assignAddressResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_assignAddressResponseType_t *_assignAddressResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _assignAddressResponseType = (adb_assignAddressResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_assignAddressResponseType_t));
++
++ if(NULL == _assignAddressResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_assignAddressResponseType, 0, sizeof(adb_assignAddressResponseType_t));
++
++ _assignAddressResponseType->property_correlationId = NULL;
++ _assignAddressResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _assignAddressResponseType->property_userId = NULL;
++ _assignAddressResponseType->is_valid_userId = AXIS2_FALSE;
++ _assignAddressResponseType->property_statusMessage = NULL;
++ _assignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _assignAddressResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _assignAddressResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_free (
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++ adb_assignAddressResponseType_reset_correlationId(_assignAddressResponseType, env);
++ adb_assignAddressResponseType_reset_userId(_assignAddressResponseType, env);
++ adb_assignAddressResponseType_reset_statusMessage(_assignAddressResponseType, env);
++ adb_assignAddressResponseType_reset_return(_assignAddressResponseType, env);
++
++
++ if(_assignAddressResponseType)
++ {
++ AXIS2_FREE(env->allocator, _assignAddressResponseType);
++ _assignAddressResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_deserialize(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for assignAddressResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressResponseType_set_correlationId(_assignAddressResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_assignAddressResponseType_set_correlationId(_assignAddressResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressResponseType_set_userId(_assignAddressResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_assignAddressResponseType_set_userId(_assignAddressResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressResponseType_set_statusMessage(_assignAddressResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_assignAddressResponseType_set_return(_assignAddressResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_assignAddressResponseType_set_return(_assignAddressResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_assignAddressResponseType_declare_parent_namespaces(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_assignAddressResponseType_serialize(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _assignAddressResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _assignAddressResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _assignAddressResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_assignAddressResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressResponseType_get_correlationId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL);
++
++
++ return _assignAddressResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_correlationId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++ if(_assignAddressResponseType->is_valid_correlationId &&
++ arg_correlationId == _assignAddressResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressResponseType_reset_correlationId(_assignAddressResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _assignAddressResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_correlationId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressResponseType->property_correlationId);
++ _assignAddressResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _assignAddressResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_correlationId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE);
++
++ return !_assignAddressResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_correlationId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressResponseType_reset_correlationId(_assignAddressResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressResponseType_get_userId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL);
++
++
++ return _assignAddressResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_userId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++ if(_assignAddressResponseType->is_valid_userId &&
++ arg_userId == _assignAddressResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressResponseType_reset_userId(_assignAddressResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _assignAddressResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_userId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressResponseType->property_userId);
++ _assignAddressResponseType->property_userId = NULL;
++ }
++
++
++
++ _assignAddressResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_userId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE);
++
++ return !_assignAddressResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_userId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressResponseType_reset_userId(_assignAddressResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressResponseType_get_statusMessage(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, NULL);
++
++
++ return _assignAddressResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_statusMessage(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++ if(_assignAddressResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _assignAddressResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressResponseType_reset_statusMessage(_assignAddressResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _assignAddressResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_statusMessage(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressResponseType->property_statusMessage);
++ _assignAddressResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _assignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_statusMessage_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE);
++
++ return !_assignAddressResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_statusMessage_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressResponseType_reset_statusMessage(_assignAddressResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_get_return(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, (axis2_bool_t)0);
++
++
++ return _assignAddressResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_return(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++ if(_assignAddressResponseType->is_valid_return &&
++ arg_return == _assignAddressResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressResponseType_reset_return(_assignAddressResponseType, env);
++
++ _assignAddressResponseType->property_return = arg_return;
++ _assignAddressResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_return(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_FAILURE);
++
++
++ _assignAddressResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_return_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressResponseType, AXIS2_TRUE);
++
++ return !_assignAddressResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_return_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressResponseType_reset_return(_assignAddressResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_ASSIGNADDRESSRESPONSETYPE_H
++ #define ADB_ASSIGNADDRESSRESPONSETYPE_H
++
++ /**
++ * adb_assignAddressResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_assignAddressResponseType class
++ */
++ typedef struct adb_assignAddressResponseType adb_assignAddressResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_assignAddressResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_assignAddressResponseType_t object
++ */
++ adb_assignAddressResponseType_t* AXIS2_CALL
++ adb_assignAddressResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_assignAddressResponseType_t object
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_free (
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressResponseType_get_correlationId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_correlationId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_correlationId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressResponseType_get_userId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_userId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_userId(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressResponseType_get_statusMessage(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_statusMessage(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_statusMessage(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_get_return(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_return(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_reset_return(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_correlationId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_userId_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_statusMessage_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_set_statusMessage_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_return_nil(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressResponseType_deserialize(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_assignAddressResponseType_declare_parent_namespaces(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _assignAddressResponseType adb_assignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param assignAddressResponseType_om_node node to serialize from
++ * @param assignAddressResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_assignAddressResponseType_serialize(
++ adb_assignAddressResponseType_t* _assignAddressResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* assignAddressResponseType_om_node, axiom_element_t *assignAddressResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_assignAddressResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_ASSIGNADDRESSRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressType.c
+@@ -0,0 +1,2111 @@
++
++
++ /**
++ * adb_assignAddressType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_assignAddressType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = assignAddressType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_assignAddressType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_source;
++
++
++ axis2_bool_t is_valid_source;
++
++
++ axis2_char_t* property_dest;
++
++
++ axis2_bool_t is_valid_dest;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_correlationId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_userId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_return_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_source_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_dest_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_assignAddressType_t* AXIS2_CALL
++ adb_assignAddressType_create(
++ const axutil_env_t *env)
++ {
++ adb_assignAddressType_t *_assignAddressType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _assignAddressType = (adb_assignAddressType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_assignAddressType_t));
++
++ if(NULL == _assignAddressType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_assignAddressType, 0, sizeof(adb_assignAddressType_t));
++
++ _assignAddressType->property_correlationId = NULL;
++ _assignAddressType->is_valid_correlationId = AXIS2_FALSE;
++ _assignAddressType->property_userId = NULL;
++ _assignAddressType->is_valid_userId = AXIS2_FALSE;
++ _assignAddressType->property_statusMessage = NULL;
++ _assignAddressType->is_valid_statusMessage = AXIS2_FALSE;
++ _assignAddressType->is_valid_return = AXIS2_FALSE;
++ _assignAddressType->property_source = NULL;
++ _assignAddressType->is_valid_source = AXIS2_FALSE;
++ _assignAddressType->property_dest = NULL;
++ _assignAddressType->is_valid_dest = AXIS2_FALSE;
++
++
++ return _assignAddressType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_free (
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++ adb_assignAddressType_reset_correlationId(_assignAddressType, env);
++ adb_assignAddressType_reset_userId(_assignAddressType, env);
++ adb_assignAddressType_reset_statusMessage(_assignAddressType, env);
++ adb_assignAddressType_reset_return(_assignAddressType, env);
++ adb_assignAddressType_reset_source(_assignAddressType, env);
++ adb_assignAddressType_reset_dest(_assignAddressType, env);
++
++
++ if(_assignAddressType)
++ {
++ AXIS2_FREE(env->allocator, _assignAddressType);
++ _assignAddressType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_deserialize(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for assignAddressType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressType_set_correlationId(_assignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_assignAddressType_set_correlationId(_assignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressType_set_userId(_assignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_assignAddressType_set_userId(_assignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressType_set_statusMessage(_assignAddressType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_assignAddressType_set_return(_assignAddressType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_assignAddressType_set_return(_assignAddressType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building source element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "source", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressType_set_source(_assignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element source");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_assignAddressType_set_source(_assignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for source ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element source missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building dest element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "dest", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_assignAddressType_set_dest(_assignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element dest");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_assignAddressType_set_dest(_assignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for dest ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element dest missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_assignAddressType_declare_parent_namespaces(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_assignAddressType_serialize(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _assignAddressType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _assignAddressType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _assignAddressType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_assignAddressType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressType->is_valid_source)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property source");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("source")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("source")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing source element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%ssource>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%ssource>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _assignAddressType->property_source;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_assignAddressType->is_valid_dest)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property dest");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("dest")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("dest")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing dest element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sdest>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sdest>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _assignAddressType->property_dest;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_correlationId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL);
++
++
++ return _assignAddressType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_correlationId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++ if(_assignAddressType->is_valid_correlationId &&
++ arg_correlationId == _assignAddressType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressType_reset_correlationId(_assignAddressType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _assignAddressType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_correlationId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressType->property_correlationId);
++ _assignAddressType->property_correlationId = NULL;
++ }
++
++
++
++ _assignAddressType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_correlationId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE);
++
++ return !_assignAddressType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_correlationId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressType_reset_correlationId(_assignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_userId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL);
++
++
++ return _assignAddressType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_userId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++ if(_assignAddressType->is_valid_userId &&
++ arg_userId == _assignAddressType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressType_reset_userId(_assignAddressType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _assignAddressType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_userId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressType->property_userId);
++ _assignAddressType->property_userId = NULL;
++ }
++
++
++
++ _assignAddressType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_userId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE);
++
++ return !_assignAddressType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_userId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressType_reset_userId(_assignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_statusMessage(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL);
++
++
++ return _assignAddressType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_statusMessage(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++ if(_assignAddressType->is_valid_statusMessage &&
++ arg_statusMessage == _assignAddressType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressType_reset_statusMessage(_assignAddressType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _assignAddressType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_statusMessage(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressType->property_statusMessage);
++ _assignAddressType->property_statusMessage = NULL;
++ }
++
++
++
++ _assignAddressType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_statusMessage_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE);
++
++ return !_assignAddressType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_statusMessage_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressType_reset_statusMessage(_assignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_get_return(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, (axis2_bool_t)0);
++
++
++ return _assignAddressType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_return(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++ if(_assignAddressType->is_valid_return &&
++ arg_return == _assignAddressType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_assignAddressType_reset_return(_assignAddressType, env);
++
++ _assignAddressType->property_return = arg_return;
++ _assignAddressType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_return(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++
++ _assignAddressType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_return_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE);
++
++ return !_assignAddressType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_return_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressType_reset_return(_assignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for source.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_source(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL);
++
++
++ return _assignAddressType->property_source;
++ }
++
++ /**
++ * setter for source
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_source(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_source)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++ if(_assignAddressType->is_valid_source &&
++ arg_source == _assignAddressType->property_source)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_source)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "source is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_assignAddressType_reset_source(_assignAddressType, env);
++
++
++ if(NULL == arg_source)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressType->property_source = (axis2_char_t *)axutil_strdup(env, arg_source);
++ if(NULL == _assignAddressType->property_source)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for source");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressType->is_valid_source = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for source
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_source(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressType->property_source != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressType->property_source);
++ _assignAddressType->property_source = NULL;
++ }
++
++
++
++ _assignAddressType->is_valid_source = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether source is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_source_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE);
++
++ return !_assignAddressType->is_valid_source;
++ }
++
++ /**
++ * Set source to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_source_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressType_reset_source(_assignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for dest.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_dest(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, NULL);
++
++
++ return _assignAddressType->property_dest;
++ }
++
++ /**
++ * setter for dest
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_dest(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_dest)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++ if(_assignAddressType->is_valid_dest &&
++ arg_dest == _assignAddressType->property_dest)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_dest)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "dest is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_assignAddressType_reset_dest(_assignAddressType, env);
++
++
++ if(NULL == arg_dest)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _assignAddressType->property_dest = (axis2_char_t *)axutil_strdup(env, arg_dest);
++ if(NULL == _assignAddressType->property_dest)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for dest");
++ return AXIS2_FAILURE;
++ }
++ _assignAddressType->is_valid_dest = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for dest
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_dest(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_assignAddressType->property_dest != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _assignAddressType->property_dest);
++ _assignAddressType->property_dest = NULL;
++ }
++
++
++
++ _assignAddressType->is_valid_dest = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether dest is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_dest_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _assignAddressType, AXIS2_TRUE);
++
++ return !_assignAddressType->is_valid_dest;
++ }
++
++ /**
++ * Set dest to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_dest_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_assignAddressType_reset_dest(_assignAddressType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_assignAddressType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_assignAddressType.h
+@@ -0,0 +1,466 @@
++
++
++ #ifndef ADB_ASSIGNADDRESSTYPE_H
++ #define ADB_ASSIGNADDRESSTYPE_H
++
++ /**
++ * adb_assignAddressType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_assignAddressType class
++ */
++ typedef struct adb_assignAddressType adb_assignAddressType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_assignAddressType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_assignAddressType_t object
++ */
++ adb_assignAddressType_t* AXIS2_CALL
++ adb_assignAddressType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_assignAddressType_t object
++ * @param _assignAddressType adb_assignAddressType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_free (
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_correlationId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_correlationId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_correlationId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_userId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_userId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_userId(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_statusMessage(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_statusMessage(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_statusMessage(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_get_return(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_return(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_return(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for source.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_source(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for source.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_source axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_source(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_source);
++
++ /**
++ * Resetter for source
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_source(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for dest.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_assignAddressType_get_dest(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for dest.
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_dest axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_dest(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_dest);
++
++ /**
++ * Resetter for dest
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_reset_dest(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_correlationId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_userId_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_statusMessage_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_set_statusMessage_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_return_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether source is nill
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_source_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether dest is nill
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_dest_nil(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_assignAddressType_deserialize(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_assignAddressType_declare_parent_namespaces(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _assignAddressType adb_assignAddressType_t object
++ * @param env pointer to environment struct
++ * @param assignAddressType_om_node node to serialize from
++ * @param assignAddressType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_assignAddressType_serialize(
++ adb_assignAddressType_t* _assignAddressType,
++ const axutil_env_t *env,
++ axiom_node_t* assignAddressType_om_node, axiom_element_t *assignAddressType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_assignAddressType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_assignAddressType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_ASSIGNADDRESSTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressType.c
+@@ -0,0 +1,2111 @@
++
++
++ /**
++ * adb_unassignAddressType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_unassignAddressType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = unassignAddressType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_unassignAddressType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_source;
++
++
++ axis2_bool_t is_valid_source;
++
++
++ axis2_char_t* property_dest;
++
++
++ axis2_bool_t is_valid_dest;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_correlationId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_userId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_return_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_source_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_dest_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_unassignAddressType_t* AXIS2_CALL
++ adb_unassignAddressType_create(
++ const axutil_env_t *env)
++ {
++ adb_unassignAddressType_t *_unassignAddressType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _unassignAddressType = (adb_unassignAddressType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_unassignAddressType_t));
++
++ if(NULL == _unassignAddressType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_unassignAddressType, 0, sizeof(adb_unassignAddressType_t));
++
++ _unassignAddressType->property_correlationId = NULL;
++ _unassignAddressType->is_valid_correlationId = AXIS2_FALSE;
++ _unassignAddressType->property_userId = NULL;
++ _unassignAddressType->is_valid_userId = AXIS2_FALSE;
++ _unassignAddressType->property_statusMessage = NULL;
++ _unassignAddressType->is_valid_statusMessage = AXIS2_FALSE;
++ _unassignAddressType->is_valid_return = AXIS2_FALSE;
++ _unassignAddressType->property_source = NULL;
++ _unassignAddressType->is_valid_source = AXIS2_FALSE;
++ _unassignAddressType->property_dest = NULL;
++ _unassignAddressType->is_valid_dest = AXIS2_FALSE;
++
++
++ return _unassignAddressType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_free (
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++ adb_unassignAddressType_reset_correlationId(_unassignAddressType, env);
++ adb_unassignAddressType_reset_userId(_unassignAddressType, env);
++ adb_unassignAddressType_reset_statusMessage(_unassignAddressType, env);
++ adb_unassignAddressType_reset_return(_unassignAddressType, env);
++ adb_unassignAddressType_reset_source(_unassignAddressType, env);
++ adb_unassignAddressType_reset_dest(_unassignAddressType, env);
++
++
++ if(_unassignAddressType)
++ {
++ AXIS2_FREE(env->allocator, _unassignAddressType);
++ _unassignAddressType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_deserialize(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for unassignAddressType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressType_set_correlationId(_unassignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_unassignAddressType_set_correlationId(_unassignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressType_set_userId(_unassignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_unassignAddressType_set_userId(_unassignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressType_set_statusMessage(_unassignAddressType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_unassignAddressType_set_return(_unassignAddressType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_unassignAddressType_set_return(_unassignAddressType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building source element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "source", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressType_set_source(_unassignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element source");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_unassignAddressType_set_source(_unassignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for source ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element source missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building dest element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "dest", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressType_set_dest(_unassignAddressType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element dest");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_unassignAddressType_set_dest(_unassignAddressType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for dest ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element dest missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_unassignAddressType_declare_parent_namespaces(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_unassignAddressType_serialize(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _unassignAddressType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _unassignAddressType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _unassignAddressType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_unassignAddressType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressType->is_valid_source)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property source");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("source")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("source")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing source element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%ssource>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%ssource>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _unassignAddressType->property_source;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressType->is_valid_dest)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property dest");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("dest")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("dest")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing dest element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sdest>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sdest>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _unassignAddressType->property_dest;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_correlationId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL);
++
++
++ return _unassignAddressType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_correlationId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++ if(_unassignAddressType->is_valid_correlationId &&
++ arg_correlationId == _unassignAddressType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressType_reset_correlationId(_unassignAddressType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _unassignAddressType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_correlationId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_correlationId);
++ _unassignAddressType->property_correlationId = NULL;
++ }
++
++
++
++ _unassignAddressType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_correlationId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE);
++
++ return !_unassignAddressType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_correlationId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressType_reset_correlationId(_unassignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_userId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL);
++
++
++ return _unassignAddressType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_userId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++ if(_unassignAddressType->is_valid_userId &&
++ arg_userId == _unassignAddressType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressType_reset_userId(_unassignAddressType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _unassignAddressType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_userId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_userId);
++ _unassignAddressType->property_userId = NULL;
++ }
++
++
++
++ _unassignAddressType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_userId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE);
++
++ return !_unassignAddressType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_userId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressType_reset_userId(_unassignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_statusMessage(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL);
++
++
++ return _unassignAddressType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_statusMessage(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++ if(_unassignAddressType->is_valid_statusMessage &&
++ arg_statusMessage == _unassignAddressType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressType_reset_statusMessage(_unassignAddressType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _unassignAddressType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_statusMessage(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_statusMessage);
++ _unassignAddressType->property_statusMessage = NULL;
++ }
++
++
++
++ _unassignAddressType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_statusMessage_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE);
++
++ return !_unassignAddressType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_statusMessage_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressType_reset_statusMessage(_unassignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_get_return(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, (axis2_bool_t)0);
++
++
++ return _unassignAddressType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_return(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++ if(_unassignAddressType->is_valid_return &&
++ arg_return == _unassignAddressType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressType_reset_return(_unassignAddressType, env);
++
++ _unassignAddressType->property_return = arg_return;
++ _unassignAddressType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_return(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++
++ _unassignAddressType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_return_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE);
++
++ return !_unassignAddressType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_return_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressType_reset_return(_unassignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for source.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_source(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL);
++
++
++ return _unassignAddressType->property_source;
++ }
++
++ /**
++ * setter for source
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_source(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_source)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++ if(_unassignAddressType->is_valid_source &&
++ arg_source == _unassignAddressType->property_source)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_source)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "source is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_unassignAddressType_reset_source(_unassignAddressType, env);
++
++
++ if(NULL == arg_source)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressType->property_source = (axis2_char_t *)axutil_strdup(env, arg_source);
++ if(NULL == _unassignAddressType->property_source)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for source");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressType->is_valid_source = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for source
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_source(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressType->property_source != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_source);
++ _unassignAddressType->property_source = NULL;
++ }
++
++
++
++ _unassignAddressType->is_valid_source = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether source is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_source_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE);
++
++ return !_unassignAddressType->is_valid_source;
++ }
++
++ /**
++ * Set source to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_source_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressType_reset_source(_unassignAddressType, env);
++ }
++
++
++
++ /**
++ * getter for dest.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_dest(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, NULL);
++
++
++ return _unassignAddressType->property_dest;
++ }
++
++ /**
++ * setter for dest
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_dest(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_dest)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++ if(_unassignAddressType->is_valid_dest &&
++ arg_dest == _unassignAddressType->property_dest)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_dest)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "dest is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_unassignAddressType_reset_dest(_unassignAddressType, env);
++
++
++ if(NULL == arg_dest)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressType->property_dest = (axis2_char_t *)axutil_strdup(env, arg_dest);
++ if(NULL == _unassignAddressType->property_dest)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for dest");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressType->is_valid_dest = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for dest
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_dest(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressType->property_dest != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressType->property_dest);
++ _unassignAddressType->property_dest = NULL;
++ }
++
++
++
++ _unassignAddressType->is_valid_dest = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether dest is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_dest_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressType, AXIS2_TRUE);
++
++ return !_unassignAddressType->is_valid_dest;
++ }
++
++ /**
++ * Set dest to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_dest_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressType_reset_dest(_unassignAddressType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressType.h
+@@ -0,0 +1,466 @@
++
++
++ #ifndef ADB_UNASSIGNADDRESSTYPE_H
++ #define ADB_UNASSIGNADDRESSTYPE_H
++
++ /**
++ * adb_unassignAddressType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_unassignAddressType class
++ */
++ typedef struct adb_unassignAddressType adb_unassignAddressType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_unassignAddressType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_unassignAddressType_t object
++ */
++ adb_unassignAddressType_t* AXIS2_CALL
++ adb_unassignAddressType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_unassignAddressType_t object
++ * @param _unassignAddressType adb_unassignAddressType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_free (
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_correlationId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_correlationId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_correlationId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_userId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_userId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_userId(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_statusMessage(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_statusMessage(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_statusMessage(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_get_return(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_return(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_return(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for source.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_source(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for source.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_source axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_source(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_source);
++
++ /**
++ * Resetter for source
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_source(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for dest.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressType_get_dest(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for dest.
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param arg_dest axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_dest(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_dest);
++
++ /**
++ * Resetter for dest
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_reset_dest(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_correlationId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_userId_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_statusMessage_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_set_statusMessage_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_return_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether source is nill
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_source_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether dest is nill
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_dest_nil(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressType_deserialize(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_unassignAddressType_declare_parent_namespaces(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _unassignAddressType adb_unassignAddressType_t object
++ * @param env pointer to environment struct
++ * @param unassignAddressType_om_node node to serialize from
++ * @param unassignAddressType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_unassignAddressType_serialize(
++ adb_unassignAddressType_t* _unassignAddressType,
++ const axutil_env_t *env,
++ axiom_node_t* unassignAddressType_om_node, axiom_element_t *unassignAddressType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_unassignAddressType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_UNASSIGNADDRESSTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksType.c
+@@ -0,0 +1,2468 @@
++
++
++ /**
++ * adb_describeNetworksType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describeNetworksType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describeNetworksType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describeNetworksType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_nameserver;
++
++
++ axis2_bool_t is_valid_nameserver;
++
++
++ axutil_array_list_t* property_clusterControllers;
++
++
++ axis2_bool_t is_valid_clusterControllers;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_correlationId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_userId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_return_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_nameserver_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers_nil_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describeNetworksType_t* AXIS2_CALL
++ adb_describeNetworksType_create(
++ const axutil_env_t *env)
++ {
++ adb_describeNetworksType_t *_describeNetworksType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describeNetworksType = (adb_describeNetworksType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describeNetworksType_t));
++
++ if(NULL == _describeNetworksType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describeNetworksType, 0, sizeof(adb_describeNetworksType_t));
++
++ _describeNetworksType->property_correlationId = NULL;
++ _describeNetworksType->is_valid_correlationId = AXIS2_FALSE;
++ _describeNetworksType->property_userId = NULL;
++ _describeNetworksType->is_valid_userId = AXIS2_FALSE;
++ _describeNetworksType->property_statusMessage = NULL;
++ _describeNetworksType->is_valid_statusMessage = AXIS2_FALSE;
++ _describeNetworksType->is_valid_return = AXIS2_FALSE;
++ _describeNetworksType->property_nameserver = NULL;
++ _describeNetworksType->is_valid_nameserver = AXIS2_FALSE;
++ _describeNetworksType->property_clusterControllers = NULL;
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE;
++
++
++ return _describeNetworksType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_free (
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ adb_describeNetworksType_reset_correlationId(_describeNetworksType, env);
++ adb_describeNetworksType_reset_userId(_describeNetworksType, env);
++ adb_describeNetworksType_reset_statusMessage(_describeNetworksType, env);
++ adb_describeNetworksType_reset_return(_describeNetworksType, env);
++ adb_describeNetworksType_reset_nameserver(_describeNetworksType, env);
++ adb_describeNetworksType_reset_clusterControllers(_describeNetworksType, env);
++
++
++ if(_describeNetworksType)
++ {
++ AXIS2_FREE(env->allocator, _describeNetworksType);
++ _describeNetworksType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_deserialize(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describeNetworksType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksType_set_correlationId(_describeNetworksType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeNetworksType_set_correlationId(_describeNetworksType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksType_set_userId(_describeNetworksType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeNetworksType_set_userId(_describeNetworksType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksType_set_statusMessage(_describeNetworksType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describeNetworksType_set_return(_describeNetworksType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describeNetworksType_set_return(_describeNetworksType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building nameserver element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "nameserver", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksType_set_nameserver(_describeNetworksType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element nameserver");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeNetworksType_set_nameserver(_describeNetworksType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nameserver ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building clusterControllers array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building clusterControllers element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "clusterControllers", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element clusterControllers");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for clusterControllers ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describeNetworksType_set_clusterControllers(_describeNetworksType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describeNetworksType_declare_parent_namespaces(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describeNetworksType_serialize(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describeNetworksType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describeNetworksType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describeNetworksType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describeNetworksType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksType->is_valid_nameserver)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("nameserver")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("nameserver")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing nameserver element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%snameserver>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%snameserver>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _describeNetworksType->property_nameserver;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksType->is_valid_clusterControllers)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("clusterControllers")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("clusterControllers")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing clusterControllers array
++ */
++ if (_describeNetworksType->property_clusterControllers != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sclusterControllers>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sclusterControllers>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing clusterControllers element
++ */
++
++
++
++ text_value_6 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_correlationId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL);
++
++
++ return _describeNetworksType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_correlationId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if(_describeNetworksType->is_valid_correlationId &&
++ arg_correlationId == _describeNetworksType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksType_reset_correlationId(_describeNetworksType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describeNetworksType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describeNetworksType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_correlationId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeNetworksType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_correlationId);
++ _describeNetworksType->property_correlationId = NULL;
++ }
++
++
++
++ _describeNetworksType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_correlationId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE);
++
++ return !_describeNetworksType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_correlationId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksType_reset_correlationId(_describeNetworksType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_userId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL);
++
++
++ return _describeNetworksType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_userId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if(_describeNetworksType->is_valid_userId &&
++ arg_userId == _describeNetworksType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksType_reset_userId(_describeNetworksType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describeNetworksType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describeNetworksType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_userId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeNetworksType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_userId);
++ _describeNetworksType->property_userId = NULL;
++ }
++
++
++
++ _describeNetworksType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_userId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE);
++
++ return !_describeNetworksType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_userId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksType_reset_userId(_describeNetworksType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_statusMessage(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL);
++
++
++ return _describeNetworksType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_statusMessage(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if(_describeNetworksType->is_valid_statusMessage &&
++ arg_statusMessage == _describeNetworksType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksType_reset_statusMessage(_describeNetworksType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describeNetworksType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describeNetworksType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_statusMessage(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeNetworksType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_statusMessage);
++ _describeNetworksType->property_statusMessage = NULL;
++ }
++
++
++
++ _describeNetworksType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_statusMessage_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE);
++
++ return !_describeNetworksType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_statusMessage_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksType_reset_statusMessage(_describeNetworksType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_get_return(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, (axis2_bool_t)0);
++
++
++ return _describeNetworksType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_return(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if(_describeNetworksType->is_valid_return &&
++ arg_return == _describeNetworksType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksType_reset_return(_describeNetworksType, env);
++
++ _describeNetworksType->property_return = arg_return;
++ _describeNetworksType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_return(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++ _describeNetworksType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_return_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE);
++
++ return !_describeNetworksType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_return_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksType_reset_return(_describeNetworksType, env);
++ }
++
++
++
++ /**
++ * getter for nameserver.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_nameserver(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL);
++
++
++ return _describeNetworksType->property_nameserver;
++ }
++
++ /**
++ * setter for nameserver
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_nameserver(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_nameserver)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if(_describeNetworksType->is_valid_nameserver &&
++ arg_nameserver == _describeNetworksType->property_nameserver)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksType_reset_nameserver(_describeNetworksType, env);
++
++
++ if(NULL == arg_nameserver)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksType->property_nameserver = (axis2_char_t *)axutil_strdup(env, arg_nameserver);
++ if(NULL == _describeNetworksType->property_nameserver)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nameserver");
++ return AXIS2_FAILURE;
++ }
++ _describeNetworksType->is_valid_nameserver = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for nameserver
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_nameserver(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeNetworksType->property_nameserver != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeNetworksType->property_nameserver);
++ _describeNetworksType->property_nameserver = NULL;
++ }
++
++
++
++ _describeNetworksType->is_valid_nameserver = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether nameserver is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_nameserver_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE);
++
++ return !_describeNetworksType->is_valid_nameserver;
++ }
++
++ /**
++ * Set nameserver to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_nameserver_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksType_reset_nameserver(_describeNetworksType, env);
++ }
++
++
++
++ /**
++ * getter for clusterControllers.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeNetworksType_get_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL);
++
++
++ return _describeNetworksType->property_clusterControllers;
++ }
++
++ /**
++ * setter for clusterControllers
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_clusterControllers)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if(_describeNetworksType->is_valid_clusterControllers &&
++ arg_clusterControllers == _describeNetworksType->property_clusterControllers)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_clusterControllers, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_clusterControllers, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describeNetworksType_reset_clusterControllers(_describeNetworksType, env);
++
++
++ if(NULL == arg_clusterControllers)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksType->property_clusterControllers = arg_clusterControllers;
++ if(non_nil_exists)
++ {
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of clusterControllers.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_clusterControllers_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, NULL);
++
++
++ if(_describeNetworksType->property_clusterControllers == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of clusterControllers.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_clusterControllers)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if( _describeNetworksType->is_valid_clusterControllers &&
++ _describeNetworksType->property_clusterControllers &&
++
++ arg_clusterControllers == (axis2_char_t*)axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_clusterControllers)
++ {
++ if(_describeNetworksType->property_clusterControllers != NULL)
++ {
++ size = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeNetworksType->property_clusterControllers == NULL)
++ {
++ _describeNetworksType->property_clusterControllers = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE;
++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, axutil_strdup(env, arg_clusterControllers));
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to clusterControllers.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_add_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_clusterControllers)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_clusterControllers)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describeNetworksType->property_clusterControllers == NULL)
++ {
++ _describeNetworksType->property_clusterControllers = axutil_array_list_create(env, 10);
++ }
++ if(_describeNetworksType->property_clusterControllers == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for clusterControllers");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describeNetworksType->property_clusterControllers , env, axutil_strdup(env, arg_clusterControllers));
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the clusterControllers array.
++ */
++ int AXIS2_CALL
++ adb_describeNetworksType_sizeof_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, -1);
++ if(_describeNetworksType->property_clusterControllers == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describeNetworksType->property_clusterControllers, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_remove_clusterControllers_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describeNetworksType_set_clusterControllers_nil_at(_describeNetworksType, env, i);
++ }
++
++
++
++ /**
++ * resetter for clusterControllers
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++
++
++ if (_describeNetworksType->property_clusterControllers != NULL)
++ {
++ count = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describeNetworksType->property_clusterControllers, env);
++ }
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether clusterControllers is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_clusterControllers_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE);
++
++ return !_describeNetworksType->is_valid_clusterControllers;
++ }
++
++ /**
++ * Set clusterControllers to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksType_reset_clusterControllers(_describeNetworksType, env);
++ }
++
++
++ /**
++ * Check whether clusterControllers is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_clusterControllers_nil_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_TRUE);
++
++ return (_describeNetworksType->is_valid_clusterControllers == AXIS2_FALSE ||
++ NULL == _describeNetworksType->property_clusterControllers ||
++ NULL == axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i));
++ }
++
++ /**
++ * Set clusterControllers to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers_nil_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksType, AXIS2_FAILURE);
++
++ if(_describeNetworksType->property_clusterControllers == NULL ||
++ _describeNetworksType->is_valid_clusterControllers == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describeNetworksType->property_clusterControllers, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeNetworksType->property_clusterControllers == NULL)
++ {
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeNetworksType->property_clusterControllers, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeNetworksType->is_valid_clusterControllers = AXIS2_FALSE;
++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describeNetworksType->property_clusterControllers , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksType.h
+@@ -0,0 +1,590 @@
++
++
++ #ifndef ADB_DESCRIBENETWORKSTYPE_H
++ #define ADB_DESCRIBENETWORKSTYPE_H
++
++ /**
++ * adb_describeNetworksType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describeNetworksType class
++ */
++ typedef struct adb_describeNetworksType adb_describeNetworksType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describeNetworksType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describeNetworksType_t object
++ */
++ adb_describeNetworksType_t* AXIS2_CALL
++ adb_describeNetworksType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describeNetworksType_t object
++ * @param _describeNetworksType adb_describeNetworksType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_free (
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_correlationId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_correlationId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_correlationId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_userId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_userId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_userId(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_statusMessage(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_statusMessage(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_statusMessage(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_get_return(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_return(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_return(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for nameserver.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_nameserver(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for nameserver.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param arg_nameserver axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_nameserver(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_nameserver);
++
++ /**
++ * Resetter for nameserver
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_nameserver(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for clusterControllers. Deprecated for array types, Use adb_describeNetworksType_get_clusterControllers_at instead
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeNetworksType_get_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for clusterControllers.Deprecated for array types, Use adb_describeNetworksType_set_clusterControllers_at
++ * or adb_describeNetworksType_add_clusterControllers instead.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param arg_clusterControllers Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_clusterControllers);
++
++ /**
++ * Resetter for clusterControllers
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_reset_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of clusterControllers.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksType_get_clusterControllers_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of clusterControllers. (If the ith already exist, it will be replaced)
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_clusterControllers element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_clusterControllers);
++
++
++ /**
++ * Add to clusterControllers.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param arg_clusterControllers element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_add_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_clusterControllers);
++
++ /**
++ * Get the size of the clusterControllers array.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the clusterControllers array.
++ */
++ int AXIS2_CALL
++ adb_describeNetworksType_sizeof_clusterControllers(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of clusterControllers.
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_remove_clusterControllers_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_correlationId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_userId_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_statusMessage_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_statusMessage_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_return_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether nameserver is nill
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_nameserver_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether clusterControllers is nill
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_clusterControllers_nil(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether clusterControllers is nill at i
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_clusterControllers_nil_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set clusterControllers to nill at i
++ * @param _describeNetworksType _ adb_describeNetworksType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_set_clusterControllers_nil_at(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksType_deserialize(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describeNetworksType_declare_parent_namespaces(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describeNetworksType adb_describeNetworksType_t object
++ * @param env pointer to environment struct
++ * @param describeNetworksType_om_node node to serialize from
++ * @param describeNetworksType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describeNetworksType_serialize(
++ adb_describeNetworksType_t* _describeNetworksType,
++ const axutil_env_t *env,
++ axiom_node_t* describeNetworksType_om_node, axiom_element_t *describeNetworksType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describeNetworksType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBENETWORKSTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_unassignAddressResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_unassignAddressResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = unassignAddressResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_unassignAddressResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_correlationId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_userId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_return_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_unassignAddressResponseType_t* AXIS2_CALL
++ adb_unassignAddressResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_unassignAddressResponseType_t *_unassignAddressResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _unassignAddressResponseType = (adb_unassignAddressResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_unassignAddressResponseType_t));
++
++ if(NULL == _unassignAddressResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_unassignAddressResponseType, 0, sizeof(adb_unassignAddressResponseType_t));
++
++ _unassignAddressResponseType->property_correlationId = NULL;
++ _unassignAddressResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _unassignAddressResponseType->property_userId = NULL;
++ _unassignAddressResponseType->is_valid_userId = AXIS2_FALSE;
++ _unassignAddressResponseType->property_statusMessage = NULL;
++ _unassignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _unassignAddressResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _unassignAddressResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_free (
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++ adb_unassignAddressResponseType_reset_correlationId(_unassignAddressResponseType, env);
++ adb_unassignAddressResponseType_reset_userId(_unassignAddressResponseType, env);
++ adb_unassignAddressResponseType_reset_statusMessage(_unassignAddressResponseType, env);
++ adb_unassignAddressResponseType_reset_return(_unassignAddressResponseType, env);
++
++
++ if(_unassignAddressResponseType)
++ {
++ AXIS2_FREE(env->allocator, _unassignAddressResponseType);
++ _unassignAddressResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_deserialize(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for unassignAddressResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressResponseType_set_correlationId(_unassignAddressResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_unassignAddressResponseType_set_correlationId(_unassignAddressResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressResponseType_set_userId(_unassignAddressResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_unassignAddressResponseType_set_userId(_unassignAddressResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_unassignAddressResponseType_set_statusMessage(_unassignAddressResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_unassignAddressResponseType_set_return(_unassignAddressResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_unassignAddressResponseType_set_return(_unassignAddressResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_unassignAddressResponseType_declare_parent_namespaces(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_unassignAddressResponseType_serialize(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _unassignAddressResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _unassignAddressResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _unassignAddressResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_unassignAddressResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_unassignAddressResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressResponseType_get_correlationId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL);
++
++
++ return _unassignAddressResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_correlationId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++ if(_unassignAddressResponseType->is_valid_correlationId &&
++ arg_correlationId == _unassignAddressResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressResponseType_reset_correlationId(_unassignAddressResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _unassignAddressResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_correlationId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressResponseType->property_correlationId);
++ _unassignAddressResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _unassignAddressResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_correlationId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE);
++
++ return !_unassignAddressResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_correlationId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressResponseType_reset_correlationId(_unassignAddressResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressResponseType_get_userId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL);
++
++
++ return _unassignAddressResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_userId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++ if(_unassignAddressResponseType->is_valid_userId &&
++ arg_userId == _unassignAddressResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressResponseType_reset_userId(_unassignAddressResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _unassignAddressResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_userId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressResponseType->property_userId);
++ _unassignAddressResponseType->property_userId = NULL;
++ }
++
++
++
++ _unassignAddressResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_userId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE);
++
++ return !_unassignAddressResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_userId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressResponseType_reset_userId(_unassignAddressResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressResponseType_get_statusMessage(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, NULL);
++
++
++ return _unassignAddressResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_statusMessage(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++ if(_unassignAddressResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _unassignAddressResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressResponseType_reset_statusMessage(_unassignAddressResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _unassignAddressResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _unassignAddressResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _unassignAddressResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_statusMessage(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_unassignAddressResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _unassignAddressResponseType->property_statusMessage);
++ _unassignAddressResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _unassignAddressResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_statusMessage_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE);
++
++ return !_unassignAddressResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_statusMessage_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressResponseType_reset_statusMessage(_unassignAddressResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_get_return(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, (axis2_bool_t)0);
++
++
++ return _unassignAddressResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_return(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++ if(_unassignAddressResponseType->is_valid_return &&
++ arg_return == _unassignAddressResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_unassignAddressResponseType_reset_return(_unassignAddressResponseType, env);
++
++ _unassignAddressResponseType->property_return = arg_return;
++ _unassignAddressResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_return(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_FAILURE);
++
++
++ _unassignAddressResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_return_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _unassignAddressResponseType, AXIS2_TRUE);
++
++ return !_unassignAddressResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_return_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_unassignAddressResponseType_reset_return(_unassignAddressResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_unassignAddressResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_unassignAddressResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_UNASSIGNADDRESSRESPONSETYPE_H
++ #define ADB_UNASSIGNADDRESSRESPONSETYPE_H
++
++ /**
++ * adb_unassignAddressResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_unassignAddressResponseType class
++ */
++ typedef struct adb_unassignAddressResponseType adb_unassignAddressResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_unassignAddressResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_unassignAddressResponseType_t object
++ */
++ adb_unassignAddressResponseType_t* AXIS2_CALL
++ adb_unassignAddressResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_unassignAddressResponseType_t object
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_free (
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressResponseType_get_correlationId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_correlationId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_correlationId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressResponseType_get_userId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_userId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_userId(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_unassignAddressResponseType_get_statusMessage(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_statusMessage(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_statusMessage(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_get_return(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_return(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_reset_return(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_correlationId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_userId_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_statusMessage_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_set_statusMessage_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_return_nil(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_unassignAddressResponseType_deserialize(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_unassignAddressResponseType_declare_parent_namespaces(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _unassignAddressResponseType adb_unassignAddressResponseType_t object
++ * @param env pointer to environment struct
++ * @param unassignAddressResponseType_om_node node to serialize from
++ * @param unassignAddressResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_unassignAddressResponseType_serialize(
++ adb_unassignAddressResponseType_t* _unassignAddressResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* unassignAddressResponseType_om_node, axiom_element_t *unassignAddressResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_unassignAddressResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_unassignAddressResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_UNASSIGNADDRESSRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_stopNetworkResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_stopNetworkResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = stopNetworkResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_stopNetworkResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_correlationId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_userId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_return_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_stopNetworkResponseType_t* AXIS2_CALL
++ adb_stopNetworkResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_stopNetworkResponseType_t *_stopNetworkResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _stopNetworkResponseType = (adb_stopNetworkResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_stopNetworkResponseType_t));
++
++ if(NULL == _stopNetworkResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_stopNetworkResponseType, 0, sizeof(adb_stopNetworkResponseType_t));
++
++ _stopNetworkResponseType->property_correlationId = NULL;
++ _stopNetworkResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _stopNetworkResponseType->property_userId = NULL;
++ _stopNetworkResponseType->is_valid_userId = AXIS2_FALSE;
++ _stopNetworkResponseType->property_statusMessage = NULL;
++ _stopNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _stopNetworkResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _stopNetworkResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_free (
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++ adb_stopNetworkResponseType_reset_correlationId(_stopNetworkResponseType, env);
++ adb_stopNetworkResponseType_reset_userId(_stopNetworkResponseType, env);
++ adb_stopNetworkResponseType_reset_statusMessage(_stopNetworkResponseType, env);
++ adb_stopNetworkResponseType_reset_return(_stopNetworkResponseType, env);
++
++
++ if(_stopNetworkResponseType)
++ {
++ AXIS2_FREE(env->allocator, _stopNetworkResponseType);
++ _stopNetworkResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_deserialize(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for stopNetworkResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkResponseType_set_correlationId(_stopNetworkResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_stopNetworkResponseType_set_correlationId(_stopNetworkResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkResponseType_set_userId(_stopNetworkResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_stopNetworkResponseType_set_userId(_stopNetworkResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkResponseType_set_statusMessage(_stopNetworkResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_stopNetworkResponseType_set_return(_stopNetworkResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_stopNetworkResponseType_set_return(_stopNetworkResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_stopNetworkResponseType_declare_parent_namespaces(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_stopNetworkResponseType_serialize(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _stopNetworkResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _stopNetworkResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _stopNetworkResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_stopNetworkResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkResponseType_get_correlationId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL);
++
++
++ return _stopNetworkResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_correlationId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++ if(_stopNetworkResponseType->is_valid_correlationId &&
++ arg_correlationId == _stopNetworkResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkResponseType_reset_correlationId(_stopNetworkResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _stopNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _stopNetworkResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _stopNetworkResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_correlationId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_stopNetworkResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _stopNetworkResponseType->property_correlationId);
++ _stopNetworkResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _stopNetworkResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_correlationId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE);
++
++ return !_stopNetworkResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_correlationId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkResponseType_reset_correlationId(_stopNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkResponseType_get_userId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL);
++
++
++ return _stopNetworkResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_userId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++ if(_stopNetworkResponseType->is_valid_userId &&
++ arg_userId == _stopNetworkResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkResponseType_reset_userId(_stopNetworkResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _stopNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _stopNetworkResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _stopNetworkResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_userId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_stopNetworkResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _stopNetworkResponseType->property_userId);
++ _stopNetworkResponseType->property_userId = NULL;
++ }
++
++
++
++ _stopNetworkResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_userId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE);
++
++ return !_stopNetworkResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_userId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkResponseType_reset_userId(_stopNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkResponseType_get_statusMessage(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, NULL);
++
++
++ return _stopNetworkResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_statusMessage(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++ if(_stopNetworkResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _stopNetworkResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkResponseType_reset_statusMessage(_stopNetworkResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _stopNetworkResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _stopNetworkResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _stopNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_statusMessage(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_stopNetworkResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _stopNetworkResponseType->property_statusMessage);
++ _stopNetworkResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _stopNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_statusMessage_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE);
++
++ return !_stopNetworkResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_statusMessage_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkResponseType_reset_statusMessage(_stopNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_get_return(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, (axis2_bool_t)0);
++
++
++ return _stopNetworkResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_return(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++ if(_stopNetworkResponseType->is_valid_return &&
++ arg_return == _stopNetworkResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkResponseType_reset_return(_stopNetworkResponseType, env);
++
++ _stopNetworkResponseType->property_return = arg_return;
++ _stopNetworkResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_return(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_FAILURE);
++
++
++ _stopNetworkResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_return_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkResponseType, AXIS2_TRUE);
++
++ return !_stopNetworkResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_return_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkResponseType_reset_return(_stopNetworkResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_STOPNETWORKRESPONSETYPE_H
++ #define ADB_STOPNETWORKRESPONSETYPE_H
++
++ /**
++ * adb_stopNetworkResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_stopNetworkResponseType class
++ */
++ typedef struct adb_stopNetworkResponseType adb_stopNetworkResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_stopNetworkResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_stopNetworkResponseType_t object
++ */
++ adb_stopNetworkResponseType_t* AXIS2_CALL
++ adb_stopNetworkResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_stopNetworkResponseType_t object
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_free (
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkResponseType_get_correlationId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_correlationId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_correlationId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkResponseType_get_userId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_userId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_userId(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkResponseType_get_statusMessage(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_statusMessage(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_statusMessage(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_get_return(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_return(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_reset_return(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_correlationId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_userId_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_statusMessage_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_set_statusMessage_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_return_nil(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkResponseType_deserialize(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_stopNetworkResponseType_declare_parent_namespaces(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _stopNetworkResponseType adb_stopNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param stopNetworkResponseType_om_node node to serialize from
++ * @param stopNetworkResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_stopNetworkResponseType_serialize(
++ adb_stopNetworkResponseType_t* _stopNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* stopNetworkResponseType_om_node, axiom_element_t *stopNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_stopNetworkResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_STOPNETWORKRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_rebootInstancesResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_rebootInstancesResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = rebootInstancesResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_rebootInstancesResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_correlationId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_userId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_return_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_rebootInstancesResponseType_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_rebootInstancesResponseType_t *_rebootInstancesResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _rebootInstancesResponseType = (adb_rebootInstancesResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_rebootInstancesResponseType_t));
++
++ if(NULL == _rebootInstancesResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_rebootInstancesResponseType, 0, sizeof(adb_rebootInstancesResponseType_t));
++
++ _rebootInstancesResponseType->property_correlationId = NULL;
++ _rebootInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _rebootInstancesResponseType->property_userId = NULL;
++ _rebootInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ _rebootInstancesResponseType->property_statusMessage = NULL;
++ _rebootInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _rebootInstancesResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _rebootInstancesResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_free (
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++ adb_rebootInstancesResponseType_reset_correlationId(_rebootInstancesResponseType, env);
++ adb_rebootInstancesResponseType_reset_userId(_rebootInstancesResponseType, env);
++ adb_rebootInstancesResponseType_reset_statusMessage(_rebootInstancesResponseType, env);
++ adb_rebootInstancesResponseType_reset_return(_rebootInstancesResponseType, env);
++
++
++ if(_rebootInstancesResponseType)
++ {
++ AXIS2_FREE(env->allocator, _rebootInstancesResponseType);
++ _rebootInstancesResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_deserialize(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for rebootInstancesResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_rebootInstancesResponseType_set_correlationId(_rebootInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_rebootInstancesResponseType_set_correlationId(_rebootInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_rebootInstancesResponseType_set_userId(_rebootInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_rebootInstancesResponseType_set_userId(_rebootInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_rebootInstancesResponseType_set_statusMessage(_rebootInstancesResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_rebootInstancesResponseType_set_return(_rebootInstancesResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_rebootInstancesResponseType_set_return(_rebootInstancesResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_rebootInstancesResponseType_declare_parent_namespaces(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_serialize(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _rebootInstancesResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _rebootInstancesResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _rebootInstancesResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_rebootInstancesResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_get_correlationId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL);
++
++
++ return _rebootInstancesResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_correlationId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++ if(_rebootInstancesResponseType->is_valid_correlationId &&
++ arg_correlationId == _rebootInstancesResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesResponseType_reset_correlationId(_rebootInstancesResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _rebootInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _rebootInstancesResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _rebootInstancesResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_correlationId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_rebootInstancesResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _rebootInstancesResponseType->property_correlationId);
++ _rebootInstancesResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _rebootInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_correlationId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE);
++
++ return !_rebootInstancesResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_correlationId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesResponseType_reset_correlationId(_rebootInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_get_userId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL);
++
++
++ return _rebootInstancesResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_userId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++ if(_rebootInstancesResponseType->is_valid_userId &&
++ arg_userId == _rebootInstancesResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesResponseType_reset_userId(_rebootInstancesResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _rebootInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _rebootInstancesResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _rebootInstancesResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_userId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_rebootInstancesResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _rebootInstancesResponseType->property_userId);
++ _rebootInstancesResponseType->property_userId = NULL;
++ }
++
++
++
++ _rebootInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_userId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE);
++
++ return !_rebootInstancesResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_userId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesResponseType_reset_userId(_rebootInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_get_statusMessage(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, NULL);
++
++
++ return _rebootInstancesResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_statusMessage(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++ if(_rebootInstancesResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _rebootInstancesResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesResponseType_reset_statusMessage(_rebootInstancesResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _rebootInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _rebootInstancesResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _rebootInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_statusMessage(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_rebootInstancesResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _rebootInstancesResponseType->property_statusMessage);
++ _rebootInstancesResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _rebootInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_statusMessage_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE);
++
++ return !_rebootInstancesResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_statusMessage_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesResponseType_reset_statusMessage(_rebootInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_get_return(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, (axis2_bool_t)0);
++
++
++ return _rebootInstancesResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_return(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++ if(_rebootInstancesResponseType->is_valid_return &&
++ arg_return == _rebootInstancesResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesResponseType_reset_return(_rebootInstancesResponseType, env);
++
++ _rebootInstancesResponseType->property_return = arg_return;
++ _rebootInstancesResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_return(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_FAILURE);
++
++
++ _rebootInstancesResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_return_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesResponseType, AXIS2_TRUE);
++
++ return !_rebootInstancesResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_return_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesResponseType_reset_return(_rebootInstancesResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_REBOOTINSTANCESRESPONSETYPE_H
++ #define ADB_REBOOTINSTANCESRESPONSETYPE_H
++
++ /**
++ * adb_rebootInstancesResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_rebootInstancesResponseType class
++ */
++ typedef struct adb_rebootInstancesResponseType adb_rebootInstancesResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_rebootInstancesResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_rebootInstancesResponseType_t object
++ */
++ adb_rebootInstancesResponseType_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_rebootInstancesResponseType_t object
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_free (
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_get_correlationId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_correlationId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_correlationId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_get_userId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_userId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_userId(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_get_statusMessage(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_statusMessage(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_statusMessage(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_get_return(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_return(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_reset_return(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_correlationId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_userId_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_statusMessage_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_set_statusMessage_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_return_nil(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesResponseType_deserialize(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_rebootInstancesResponseType_declare_parent_namespaces(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _rebootInstancesResponseType adb_rebootInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param rebootInstancesResponseType_om_node node to serialize from
++ * @param rebootInstancesResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_rebootInstancesResponseType_serialize(
++ adb_rebootInstancesResponseType_t* _rebootInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* rebootInstancesResponseType_om_node, axiom_element_t *rebootInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_rebootInstancesResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_REBOOTINSTANCESRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputResponseType.c
+@@ -0,0 +1,1738 @@
++
++
++ /**
++ * adb_getConsoleOutputResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_getConsoleOutputResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = getConsoleOutputResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_getConsoleOutputResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_consoleOutput;
++
++
++ axis2_bool_t is_valid_consoleOutput;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_correlationId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_userId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_return_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_consoleOutput_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_getConsoleOutputResponseType_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_getConsoleOutputResponseType_t *_getConsoleOutputResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _getConsoleOutputResponseType = (adb_getConsoleOutputResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_getConsoleOutputResponseType_t));
++
++ if(NULL == _getConsoleOutputResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_getConsoleOutputResponseType, 0, sizeof(adb_getConsoleOutputResponseType_t));
++
++ _getConsoleOutputResponseType->property_correlationId = NULL;
++ _getConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _getConsoleOutputResponseType->property_userId = NULL;
++ _getConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE;
++ _getConsoleOutputResponseType->property_statusMessage = NULL;
++ _getConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _getConsoleOutputResponseType->is_valid_return = AXIS2_FALSE;
++ _getConsoleOutputResponseType->property_consoleOutput = NULL;
++ _getConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE;
++
++
++ return _getConsoleOutputResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_free (
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++ adb_getConsoleOutputResponseType_reset_correlationId(_getConsoleOutputResponseType, env);
++ adb_getConsoleOutputResponseType_reset_userId(_getConsoleOutputResponseType, env);
++ adb_getConsoleOutputResponseType_reset_statusMessage(_getConsoleOutputResponseType, env);
++ adb_getConsoleOutputResponseType_reset_return(_getConsoleOutputResponseType, env);
++ adb_getConsoleOutputResponseType_reset_consoleOutput(_getConsoleOutputResponseType, env);
++
++
++ if(_getConsoleOutputResponseType)
++ {
++ AXIS2_FREE(env->allocator, _getConsoleOutputResponseType);
++ _getConsoleOutputResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_deserialize(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for getConsoleOutputResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputResponseType_set_correlationId(_getConsoleOutputResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_getConsoleOutputResponseType_set_correlationId(_getConsoleOutputResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputResponseType_set_userId(_getConsoleOutputResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_getConsoleOutputResponseType_set_userId(_getConsoleOutputResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputResponseType_set_statusMessage(_getConsoleOutputResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_getConsoleOutputResponseType_set_return(_getConsoleOutputResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_getConsoleOutputResponseType_set_return(_getConsoleOutputResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building consoleOutput element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "consoleOutput", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputResponseType_set_consoleOutput(_getConsoleOutputResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element consoleOutput");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_getConsoleOutputResponseType_set_consoleOutput(_getConsoleOutputResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for consoleOutput ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_getConsoleOutputResponseType_declare_parent_namespaces(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_serialize(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _getConsoleOutputResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _getConsoleOutputResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _getConsoleOutputResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_getConsoleOutputResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputResponseType->is_valid_consoleOutput)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("consoleOutput")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("consoleOutput")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing consoleOutput element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sconsoleOutput>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sconsoleOutput>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _getConsoleOutputResponseType->property_consoleOutput;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_correlationId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL);
++
++
++ return _getConsoleOutputResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_correlationId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputResponseType->is_valid_correlationId &&
++ arg_correlationId == _getConsoleOutputResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputResponseType_reset_correlationId(_getConsoleOutputResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _getConsoleOutputResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_correlationId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_correlationId);
++ _getConsoleOutputResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _getConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_correlationId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE);
++
++ return !_getConsoleOutputResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_correlationId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputResponseType_reset_correlationId(_getConsoleOutputResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_userId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL);
++
++
++ return _getConsoleOutputResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_userId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputResponseType->is_valid_userId &&
++ arg_userId == _getConsoleOutputResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputResponseType_reset_userId(_getConsoleOutputResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _getConsoleOutputResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_userId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_userId);
++ _getConsoleOutputResponseType->property_userId = NULL;
++ }
++
++
++
++ _getConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_userId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE);
++
++ return !_getConsoleOutputResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_userId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputResponseType_reset_userId(_getConsoleOutputResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_statusMessage(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL);
++
++
++ return _getConsoleOutputResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_statusMessage(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _getConsoleOutputResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputResponseType_reset_statusMessage(_getConsoleOutputResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _getConsoleOutputResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_statusMessage(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_statusMessage);
++ _getConsoleOutputResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _getConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_statusMessage_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE);
++
++ return !_getConsoleOutputResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_statusMessage_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputResponseType_reset_statusMessage(_getConsoleOutputResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_return(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, (axis2_bool_t)0);
++
++
++ return _getConsoleOutputResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_return(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputResponseType->is_valid_return &&
++ arg_return == _getConsoleOutputResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputResponseType_reset_return(_getConsoleOutputResponseType, env);
++
++ _getConsoleOutputResponseType->property_return = arg_return;
++ _getConsoleOutputResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_return(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++
++ _getConsoleOutputResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_return_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE);
++
++ return !_getConsoleOutputResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_return_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputResponseType_reset_return(_getConsoleOutputResponseType, env);
++ }
++
++
++
++ /**
++ * getter for consoleOutput.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_consoleOutput(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, NULL);
++
++
++ return _getConsoleOutputResponseType->property_consoleOutput;
++ }
++
++ /**
++ * setter for consoleOutput
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_consoleOutput(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_consoleOutput)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputResponseType->is_valid_consoleOutput &&
++ arg_consoleOutput == _getConsoleOutputResponseType->property_consoleOutput)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputResponseType_reset_consoleOutput(_getConsoleOutputResponseType, env);
++
++
++ if(NULL == arg_consoleOutput)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputResponseType->property_consoleOutput = (axis2_char_t *)axutil_strdup(env, arg_consoleOutput);
++ if(NULL == _getConsoleOutputResponseType->property_consoleOutput)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for consoleOutput");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for consoleOutput
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_consoleOutput(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputResponseType->property_consoleOutput != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputResponseType->property_consoleOutput);
++ _getConsoleOutputResponseType->property_consoleOutput = NULL;
++ }
++
++
++
++ _getConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether consoleOutput is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_consoleOutput_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputResponseType, AXIS2_TRUE);
++
++ return !_getConsoleOutputResponseType->is_valid_consoleOutput;
++ }
++
++ /**
++ * Set consoleOutput to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_consoleOutput_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputResponseType_reset_consoleOutput(_getConsoleOutputResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputResponseType.h
+@@ -0,0 +1,414 @@
++
++
++ #ifndef ADB_GETCONSOLEOUTPUTRESPONSETYPE_H
++ #define ADB_GETCONSOLEOUTPUTRESPONSETYPE_H
++
++ /**
++ * adb_getConsoleOutputResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_getConsoleOutputResponseType class
++ */
++ typedef struct adb_getConsoleOutputResponseType adb_getConsoleOutputResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_getConsoleOutputResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_getConsoleOutputResponseType_t object
++ */
++ adb_getConsoleOutputResponseType_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_getConsoleOutputResponseType_t object
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_free (
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_correlationId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_correlationId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_correlationId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_userId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_userId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_userId(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_statusMessage(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_statusMessage(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_statusMessage(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_return(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_return(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_return(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for consoleOutput.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_get_consoleOutput(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for consoleOutput.
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_consoleOutput axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_consoleOutput(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_consoleOutput);
++
++ /**
++ * Resetter for consoleOutput
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_reset_consoleOutput(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_correlationId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_userId_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_statusMessage_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_set_statusMessage_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_return_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether consoleOutput is nill
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_consoleOutput_nil(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_deserialize(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_getConsoleOutputResponseType_declare_parent_namespaces(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _getConsoleOutputResponseType adb_getConsoleOutputResponseType_t object
++ * @param env pointer to environment struct
++ * @param getConsoleOutputResponseType_om_node node to serialize from
++ * @param getConsoleOutputResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_getConsoleOutputResponseType_serialize(
++ adb_getConsoleOutputResponseType_t* _getConsoleOutputResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* getConsoleOutputResponseType_om_node, axiom_element_t *getConsoleOutputResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_getConsoleOutputResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_GETCONSOLEOUTPUTRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkType.c
+@@ -0,0 +1,1986 @@
++
++
++ /**
++ * adb_stopNetworkType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_stopNetworkType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = stopNetworkType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_stopNetworkType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ int property_vlan;
++
++
++ axis2_bool_t is_valid_vlan;
++
++
++ axis2_char_t* property_netName;
++
++
++ axis2_bool_t is_valid_netName;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_correlationId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_userId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_return_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_vlan_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_netName_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_stopNetworkType_t* AXIS2_CALL
++ adb_stopNetworkType_create(
++ const axutil_env_t *env)
++ {
++ adb_stopNetworkType_t *_stopNetworkType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _stopNetworkType = (adb_stopNetworkType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_stopNetworkType_t));
++
++ if(NULL == _stopNetworkType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_stopNetworkType, 0, sizeof(adb_stopNetworkType_t));
++
++ _stopNetworkType->property_correlationId = NULL;
++ _stopNetworkType->is_valid_correlationId = AXIS2_FALSE;
++ _stopNetworkType->property_userId = NULL;
++ _stopNetworkType->is_valid_userId = AXIS2_FALSE;
++ _stopNetworkType->property_statusMessage = NULL;
++ _stopNetworkType->is_valid_statusMessage = AXIS2_FALSE;
++ _stopNetworkType->is_valid_return = AXIS2_FALSE;
++ _stopNetworkType->is_valid_vlan = AXIS2_FALSE;
++ _stopNetworkType->property_netName = NULL;
++ _stopNetworkType->is_valid_netName = AXIS2_FALSE;
++
++
++ return _stopNetworkType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_free (
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++ adb_stopNetworkType_reset_correlationId(_stopNetworkType, env);
++ adb_stopNetworkType_reset_userId(_stopNetworkType, env);
++ adb_stopNetworkType_reset_statusMessage(_stopNetworkType, env);
++ adb_stopNetworkType_reset_return(_stopNetworkType, env);
++ adb_stopNetworkType_reset_vlan(_stopNetworkType, env);
++ adb_stopNetworkType_reset_netName(_stopNetworkType, env);
++
++
++ if(_stopNetworkType)
++ {
++ AXIS2_FREE(env->allocator, _stopNetworkType);
++ _stopNetworkType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_deserialize(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for stopNetworkType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkType_set_correlationId(_stopNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_stopNetworkType_set_correlationId(_stopNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkType_set_userId(_stopNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_stopNetworkType_set_userId(_stopNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkType_set_statusMessage(_stopNetworkType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_stopNetworkType_set_return(_stopNetworkType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_stopNetworkType_set_return(_stopNetworkType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building vlan element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkType_set_vlan(_stopNetworkType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building netName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "netName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_stopNetworkType_set_netName(_stopNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_stopNetworkType_set_netName(_stopNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_stopNetworkType_declare_parent_namespaces(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_stopNetworkType_serialize(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _stopNetworkType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _stopNetworkType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _stopNetworkType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_stopNetworkType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkType->is_valid_vlan)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("vlan")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing vlan element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _stopNetworkType->property_vlan);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_stopNetworkType->is_valid_netName)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("netName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing netName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%snetName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%snetName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _stopNetworkType->property_netName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_correlationId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL);
++
++
++ return _stopNetworkType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_correlationId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++ if(_stopNetworkType->is_valid_correlationId &&
++ arg_correlationId == _stopNetworkType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkType_reset_correlationId(_stopNetworkType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _stopNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _stopNetworkType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _stopNetworkType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_correlationId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_stopNetworkType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_correlationId);
++ _stopNetworkType->property_correlationId = NULL;
++ }
++
++
++
++ _stopNetworkType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_correlationId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE);
++
++ return !_stopNetworkType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_correlationId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkType_reset_correlationId(_stopNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_userId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL);
++
++
++ return _stopNetworkType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_userId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++ if(_stopNetworkType->is_valid_userId &&
++ arg_userId == _stopNetworkType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkType_reset_userId(_stopNetworkType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _stopNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _stopNetworkType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _stopNetworkType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_userId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_stopNetworkType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_userId);
++ _stopNetworkType->property_userId = NULL;
++ }
++
++
++
++ _stopNetworkType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_userId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE);
++
++ return !_stopNetworkType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_userId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkType_reset_userId(_stopNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_statusMessage(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL);
++
++
++ return _stopNetworkType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_statusMessage(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++ if(_stopNetworkType->is_valid_statusMessage &&
++ arg_statusMessage == _stopNetworkType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkType_reset_statusMessage(_stopNetworkType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _stopNetworkType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _stopNetworkType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _stopNetworkType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_statusMessage(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_stopNetworkType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_statusMessage);
++ _stopNetworkType->property_statusMessage = NULL;
++ }
++
++
++
++ _stopNetworkType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_statusMessage_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE);
++
++ return !_stopNetworkType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_statusMessage_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkType_reset_statusMessage(_stopNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_get_return(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, (axis2_bool_t)0);
++
++
++ return _stopNetworkType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_return(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++ if(_stopNetworkType->is_valid_return &&
++ arg_return == _stopNetworkType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkType_reset_return(_stopNetworkType, env);
++
++ _stopNetworkType->property_return = arg_return;
++ _stopNetworkType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_return(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++
++ _stopNetworkType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_return_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE);
++
++ return !_stopNetworkType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_return_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkType_reset_return(_stopNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for vlan.
++ */
++ int AXIS2_CALL
++ adb_stopNetworkType_get_vlan(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, (int)0);
++
++
++ return _stopNetworkType->property_vlan;
++ }
++
++ /**
++ * setter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_vlan(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const int arg_vlan)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++ if(_stopNetworkType->is_valid_vlan &&
++ arg_vlan == _stopNetworkType->property_vlan)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkType_reset_vlan(_stopNetworkType, env);
++
++ _stopNetworkType->property_vlan = arg_vlan;
++ _stopNetworkType->is_valid_vlan = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_vlan(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++
++ _stopNetworkType->is_valid_vlan = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether vlan is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_vlan_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE);
++
++ return !_stopNetworkType->is_valid_vlan;
++ }
++
++ /**
++ * Set vlan to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_vlan_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkType_reset_vlan(_stopNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for netName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_netName(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, NULL);
++
++
++ return _stopNetworkType->property_netName;
++ }
++
++ /**
++ * setter for netName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_netName(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++ if(_stopNetworkType->is_valid_netName &&
++ arg_netName == _stopNetworkType->property_netName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_stopNetworkType_reset_netName(_stopNetworkType, env);
++
++
++ if(NULL == arg_netName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _stopNetworkType->property_netName = (axis2_char_t *)axutil_strdup(env, arg_netName);
++ if(NULL == _stopNetworkType->property_netName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for netName");
++ return AXIS2_FAILURE;
++ }
++ _stopNetworkType->is_valid_netName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for netName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_netName(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_stopNetworkType->property_netName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _stopNetworkType->property_netName);
++ _stopNetworkType->property_netName = NULL;
++ }
++
++
++
++ _stopNetworkType->is_valid_netName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether netName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_netName_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _stopNetworkType, AXIS2_TRUE);
++
++ return !_stopNetworkType->is_valid_netName;
++ }
++
++ /**
++ * Set netName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_netName_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_stopNetworkType_reset_netName(_stopNetworkType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_stopNetworkType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_stopNetworkType.h
+@@ -0,0 +1,466 @@
++
++
++ #ifndef ADB_STOPNETWORKTYPE_H
++ #define ADB_STOPNETWORKTYPE_H
++
++ /**
++ * adb_stopNetworkType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_stopNetworkType class
++ */
++ typedef struct adb_stopNetworkType adb_stopNetworkType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_stopNetworkType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_stopNetworkType_t object
++ */
++ adb_stopNetworkType_t* AXIS2_CALL
++ adb_stopNetworkType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_stopNetworkType_t object
++ * @param _stopNetworkType adb_stopNetworkType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_free (
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_correlationId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_correlationId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_correlationId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_userId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_userId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_userId(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_statusMessage(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_statusMessage(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_statusMessage(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_get_return(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_return(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_return(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for vlan.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_stopNetworkType_get_vlan(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for vlan.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_vlan int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_vlan(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const int arg_vlan);
++
++ /**
++ * Resetter for vlan
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_vlan(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for netName.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_stopNetworkType_get_netName(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for netName.
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_netName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_netName(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netName);
++
++ /**
++ * Resetter for netName
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_reset_netName(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_correlationId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_userId_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_statusMessage_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_set_statusMessage_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_return_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether vlan is nill
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_vlan_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether netName is nill
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_netName_nil(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_stopNetworkType_deserialize(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_stopNetworkType_declare_parent_namespaces(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _stopNetworkType adb_stopNetworkType_t object
++ * @param env pointer to environment struct
++ * @param stopNetworkType_om_node node to serialize from
++ * @param stopNetworkType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_stopNetworkType_serialize(
++ adb_stopNetworkType_t* _stopNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t* stopNetworkType_om_node, axiom_element_t *stopNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_stopNetworkType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_stopNetworkType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_STOPNETWORKTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkType.c
+@@ -0,0 +1,1835 @@
++
++
++ /**
++ * adb_networkType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_networkType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = networkType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_networkType
++ {
++ int property_vlan;
++
++
++ axis2_bool_t is_valid_vlan;
++
++
++ axis2_char_t* property_netName;
++
++
++ axis2_bool_t is_valid_netName;
++
++
++ axis2_char_t* property_userName;
++
++
++ axis2_bool_t is_valid_userName;
++
++
++ axutil_array_list_t* property_activeAddrs;
++
++
++ axis2_bool_t is_valid_activeAddrs;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_vlan_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_netName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_userName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs_nil_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_networkType_t* AXIS2_CALL
++ adb_networkType_create(
++ const axutil_env_t *env)
++ {
++ adb_networkType_t *_networkType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _networkType = (adb_networkType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_networkType_t));
++
++ if(NULL == _networkType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_networkType, 0, sizeof(adb_networkType_t));
++
++ _networkType->is_valid_vlan = AXIS2_FALSE;
++ _networkType->property_netName = NULL;
++ _networkType->is_valid_netName = AXIS2_FALSE;
++ _networkType->property_userName = NULL;
++ _networkType->is_valid_userName = AXIS2_FALSE;
++ _networkType->is_valid_activeAddrs = AXIS2_FALSE;
++
++
++ return _networkType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_networkType_free (
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++ adb_networkType_reset_vlan(_networkType, env);
++ adb_networkType_reset_netName(_networkType, env);
++ adb_networkType_reset_userName(_networkType, env);
++ adb_networkType_reset_activeAddrs(_networkType, env);
++
++
++ if(_networkType)
++ {
++ AXIS2_FREE(env->allocator, _networkType);
++ _networkType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_networkType_deserialize(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for networkType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building vlan element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkType_set_vlan(_networkType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building netName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "netName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkType_set_netName(_networkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_networkType_set_netName(_networkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element netName missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_networkType_set_userName(_networkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_networkType_set_userName(_networkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element userName missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building activeAddrs array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building activeAddrs element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "activeAddrs", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ /* we keeps ints in arrays from their pointers */
++ element = AXIS2_MALLOC(env-> allocator, sizeof(int));
++ (*(int*)element) = atoi(text_value);
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element activeAddrs");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for activeAddrs ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeAddrs (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_networkType_set_activeAddrs(_networkType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_networkType_declare_parent_namespaces(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_networkType_serialize(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t text_value_1[64];
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkType->is_valid_vlan)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("vlan")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing vlan element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_1, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _networkType->property_vlan);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkType->is_valid_netName)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property netName");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("netName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing netName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%snetName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%snetName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _networkType->property_netName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkType->is_valid_userName)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property userName");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _networkType->property_userName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_networkType->is_valid_activeAddrs)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("activeAddrs")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("activeAddrs")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing activeAddrs array
++ */
++ if (_networkType->property_activeAddrs != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sactiveAddrs>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sactiveAddrs>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_networkType->property_activeAddrs, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing activeAddrs element
++ */
++
++
++
++ sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, *((int*)element));
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for vlan.
++ */
++ int AXIS2_CALL
++ adb_networkType_get_vlan(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _networkType, (int)0);
++
++
++ return _networkType->property_vlan;
++ }
++
++ /**
++ * setter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_vlan(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const int arg_vlan)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++ if(_networkType->is_valid_vlan &&
++ arg_vlan == _networkType->property_vlan)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_networkType_reset_vlan(_networkType, env);
++
++ _networkType->property_vlan = arg_vlan;
++ _networkType->is_valid_vlan = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_vlan(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++
++ _networkType->is_valid_vlan = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether vlan is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_vlan_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE);
++
++ return !_networkType->is_valid_vlan;
++ }
++
++ /**
++ * Set vlan to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_vlan_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ return adb_networkType_reset_vlan(_networkType, env);
++ }
++
++
++
++ /**
++ * getter for netName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkType_get_netName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL);
++
++
++ return _networkType->property_netName;
++ }
++
++ /**
++ * setter for netName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_netName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++ if(_networkType->is_valid_netName &&
++ arg_netName == _networkType->property_netName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_netName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netName is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_networkType_reset_netName(_networkType, env);
++
++
++ if(NULL == arg_netName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkType->property_netName = (axis2_char_t *)axutil_strdup(env, arg_netName);
++ if(NULL == _networkType->property_netName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for netName");
++ return AXIS2_FAILURE;
++ }
++ _networkType->is_valid_netName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for netName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_netName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_networkType->property_netName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _networkType->property_netName);
++ _networkType->property_netName = NULL;
++ }
++
++
++
++ _networkType->is_valid_netName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether netName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_netName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE);
++
++ return !_networkType->is_valid_netName;
++ }
++
++ /**
++ * Set netName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_netName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ return adb_networkType_reset_netName(_networkType, env);
++ }
++
++
++
++ /**
++ * getter for userName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkType_get_userName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL);
++
++
++ return _networkType->property_userName;
++ }
++
++ /**
++ * setter for userName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_userName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++ if(_networkType->is_valid_userName &&
++ arg_userName == _networkType->property_userName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_userName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "userName is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_networkType_reset_userName(_networkType, env);
++
++
++ if(NULL == arg_userName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkType->property_userName = (axis2_char_t *)axutil_strdup(env, arg_userName);
++ if(NULL == _networkType->property_userName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userName");
++ return AXIS2_FAILURE;
++ }
++ _networkType->is_valid_userName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_userName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_networkType->property_userName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _networkType->property_userName);
++ _networkType->property_userName = NULL;
++ }
++
++
++
++ _networkType->is_valid_userName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_userName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE);
++
++ return !_networkType->is_valid_userName;
++ }
++
++ /**
++ * Set userName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_userName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ return adb_networkType_reset_userName(_networkType, env);
++ }
++
++
++
++ /**
++ * getter for activeAddrs.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkType_get_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _networkType, NULL);
++
++
++ return _networkType->property_activeAddrs;
++ }
++
++ /**
++ * setter for activeAddrs
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_activeAddrs)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++ if(_networkType->is_valid_activeAddrs &&
++ arg_activeAddrs == _networkType->property_activeAddrs)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_activeAddrs, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeAddrs has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_activeAddrs, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_networkType_reset_activeAddrs(_networkType, env);
++
++
++ if(NULL == arg_activeAddrs)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _networkType->property_activeAddrs = arg_activeAddrs;
++ if(non_nil_exists)
++ {
++ _networkType->is_valid_activeAddrs = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of activeAddrs.
++ */
++ int AXIS2_CALL
++ adb_networkType_get_activeAddrs_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i)
++ {
++ int* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _networkType, (int)0);
++
++
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ return (int)0;
++ }
++ ret_val = (int*)axutil_array_list_get(_networkType->property_activeAddrs, env, i);
++
++ if(ret_val)
++ {
++ return *ret_val;
++ }
++ return (int)0;
++
++ }
++
++ /**
++ * Set the ith element of activeAddrs.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i,
++ const int arg_activeAddrs)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int* ptr_param_activeAddrs;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++ if( _networkType->is_valid_activeAddrs &&
++ _networkType->property_activeAddrs &&
++
++ arg_activeAddrs == *((int*)axutil_array_list_get(_networkType->property_activeAddrs, env, i)))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ non_nil_exists = AXIS2_TRUE; /* no way to check for nill for each elements for primitive types */
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeAddrs is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ _networkType->property_activeAddrs = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i);
++ if(NULL != element)
++ {
++
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkType->is_valid_activeAddrs = AXIS2_FALSE;
++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++ ptr_param_activeAddrs = (int*)
++ AXIS2_MALLOC(env->allocator, sizeof(int));
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of activeAddrs");
++ return AXIS2_FAILURE;
++
++ }
++ *ptr_param_activeAddrs = arg_activeAddrs;
++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, ptr_param_activeAddrs);
++ _networkType->is_valid_activeAddrs = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to activeAddrs.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_add_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const int arg_activeAddrs)
++ {
++ int* ptr_param_activeAddrs;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++
++
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ _networkType->property_activeAddrs = axutil_array_list_create(env, 10);
++ }
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for activeAddrs");
++ return AXIS2_FAILURE;
++
++ }
++ ptr_param_activeAddrs = (int*)
++ AXIS2_MALLOC(env->allocator, sizeof(int));
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of activeAddrs");
++ return AXIS2_FAILURE;
++
++ }
++ *ptr_param_activeAddrs = arg_activeAddrs;
++ axutil_array_list_add(_networkType->property_activeAddrs , env, ptr_param_activeAddrs);
++ _networkType->is_valid_activeAddrs = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the activeAddrs array.
++ */
++ int AXIS2_CALL
++ adb_networkType_sizeof_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _networkType, -1);
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_networkType->property_activeAddrs, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_remove_activeAddrs_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_networkType_set_activeAddrs_nil_at(_networkType, env, i);
++ }
++
++
++
++ /**
++ * resetter for activeAddrs
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++
++
++ if (_networkType->property_activeAddrs != NULL)
++ {
++ count = axutil_array_list_size(_networkType->property_activeAddrs, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_networkType->property_activeAddrs, env);
++ }
++ _networkType->is_valid_activeAddrs = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether activeAddrs is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_activeAddrs_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE);
++
++ return !_networkType->is_valid_activeAddrs;
++ }
++
++ /**
++ * Set activeAddrs to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env)
++ {
++ return adb_networkType_reset_activeAddrs(_networkType, env);
++ }
++
++
++ /**
++ * Check whether activeAddrs is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_activeAddrs_nil_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_TRUE);
++
++ return (_networkType->is_valid_activeAddrs == AXIS2_FALSE ||
++ NULL == _networkType->property_activeAddrs ||
++ NULL == axutil_array_list_get(_networkType->property_activeAddrs, env, i));
++ }
++
++ /**
++ * Set activeAddrs to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs_nil_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _networkType, AXIS2_FAILURE);
++
++ if(_networkType->property_activeAddrs == NULL ||
++ _networkType->is_valid_activeAddrs == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_networkType->property_activeAddrs, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_networkType->property_activeAddrs, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeAddrs is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_networkType->property_activeAddrs == NULL)
++ {
++ _networkType->is_valid_activeAddrs = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_networkType->property_activeAddrs, env, i);
++ if(NULL != element)
++ {
++
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _networkType->is_valid_activeAddrs = AXIS2_FALSE;
++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_networkType->property_activeAddrs , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_networkType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_networkType.h
+@@ -0,0 +1,475 @@
++
++
++ #ifndef ADB_NETWORKTYPE_H
++ #define ADB_NETWORKTYPE_H
++
++ /**
++ * adb_networkType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_networkType class
++ */
++ typedef struct adb_networkType adb_networkType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_networkType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_networkType_t object
++ */
++ adb_networkType_t* AXIS2_CALL
++ adb_networkType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_networkType_t object
++ * @param _networkType adb_networkType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_free (
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for vlan.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_networkType_get_vlan(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for vlan.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param arg_vlan int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_vlan(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const int arg_vlan);
++
++ /**
++ * Resetter for vlan
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_vlan(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for netName.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkType_get_netName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for netName.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param arg_netName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_netName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netName);
++
++ /**
++ * Resetter for netName
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_netName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userName.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_networkType_get_userName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userName.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param arg_userName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_userName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userName);
++
++ /**
++ * Resetter for userName
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_userName(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for activeAddrs. Deprecated for array types, Use adb_networkType_get_activeAddrs_at instead
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return Array of int*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_networkType_get_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for activeAddrs.Deprecated for array types, Use adb_networkType_set_activeAddrs_at
++ * or adb_networkType_add_activeAddrs instead.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param arg_activeAddrs Array of int*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_activeAddrs);
++
++ /**
++ * Resetter for activeAddrs
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_reset_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of activeAddrs.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith int of the array
++ */
++ int AXIS2_CALL
++ adb_networkType_get_activeAddrs_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of activeAddrs. (If the ith already exist, it will be replaced)
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_activeAddrs element to set int to the array
++ * @return ith int of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i,
++ const int arg_activeAddrs);
++
++
++ /**
++ * Add to activeAddrs.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param arg_activeAddrs element to add int to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_add_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ const int arg_activeAddrs);
++
++ /**
++ * Get the size of the activeAddrs array.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the activeAddrs array.
++ */
++ int AXIS2_CALL
++ adb_networkType_sizeof_activeAddrs(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of activeAddrs.
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_remove_activeAddrs_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether vlan is nill
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_vlan_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether netName is nill
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_netName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userName is nill
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_userName_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether activeAddrs is nill
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_activeAddrs_nil(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether activeAddrs is nill at i
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_activeAddrs_nil_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set activeAddrs to nill at i
++ * @param _networkType _ adb_networkType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_set_activeAddrs_nil_at(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_networkType_deserialize(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_networkType_declare_parent_namespaces(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _networkType adb_networkType_t object
++ * @param env pointer to environment struct
++ * @param networkType_om_node node to serialize from
++ * @param networkType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_networkType_serialize(
++ adb_networkType_t* _networkType,
++ const axutil_env_t *env,
++ axiom_node_t* networkType_om_node, axiom_element_t *networkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_networkType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_networkType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_NETWORKTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksResponseType.c
+@@ -0,0 +1,2572 @@
++
++
++ /**
++ * adb_describeNetworksResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describeNetworksResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describeNetworksResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describeNetworksResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ int property_mode;
++
++
++ axis2_bool_t is_valid_mode;
++
++
++ int property_addrsPerNet;
++
++
++ axis2_bool_t is_valid_addrsPerNet;
++
++
++ axutil_array_list_t* property_activeNetworks;
++
++
++ axis2_bool_t is_valid_activeNetworks;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_correlationId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_userId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_return_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_mode_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_addrsPerNet_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks_nil_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describeNetworksResponseType_t* AXIS2_CALL
++ adb_describeNetworksResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_describeNetworksResponseType_t *_describeNetworksResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describeNetworksResponseType = (adb_describeNetworksResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describeNetworksResponseType_t));
++
++ if(NULL == _describeNetworksResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describeNetworksResponseType, 0, sizeof(adb_describeNetworksResponseType_t));
++
++ _describeNetworksResponseType->property_correlationId = NULL;
++ _describeNetworksResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _describeNetworksResponseType->property_userId = NULL;
++ _describeNetworksResponseType->is_valid_userId = AXIS2_FALSE;
++ _describeNetworksResponseType->property_statusMessage = NULL;
++ _describeNetworksResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _describeNetworksResponseType->is_valid_return = AXIS2_FALSE;
++ _describeNetworksResponseType->is_valid_mode = AXIS2_FALSE;
++ _describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_FALSE;
++ _describeNetworksResponseType->property_activeNetworks = NULL;
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
++
++
++ return _describeNetworksResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_free (
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env);
++ adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env);
++ adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env);
++ adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env);
++ adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env);
++ adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env);
++ adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env);
++
++
++ if(_describeNetworksResponseType)
++ {
++ AXIS2_FREE(env->allocator, _describeNetworksResponseType);
++ _describeNetworksResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_deserialize(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describeNetworksResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksResponseType_set_correlationId(_describeNetworksResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeNetworksResponseType_set_correlationId(_describeNetworksResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksResponseType_set_userId(_describeNetworksResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeNetworksResponseType_set_userId(_describeNetworksResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksResponseType_set_statusMessage(_describeNetworksResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describeNetworksResponseType_set_return(_describeNetworksResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describeNetworksResponseType_set_return(_describeNetworksResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building mode element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "mode", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksResponseType_set_mode(_describeNetworksResponseType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element mode");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for mode ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building addrsPerNet element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "addrsPerNet", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeNetworksResponseType_set_addrsPerNet(_describeNetworksResponseType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element addrsPerNet");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for addrsPerNet ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building activeNetworks array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building activeNetworks element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "activeNetworks", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ element = (void*)adb_networkType_create(env);
++
++ status = adb_networkType_deserialize((adb_networkType_t*)element, env,
++ ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element activeNetworks ");
++ }
++ else
++ {
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for activeNetworks ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeNetworks (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describeNetworksResponseType_set_activeNetworks(_describeNetworksResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describeNetworksResponseType_declare_parent_namespaces(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describeNetworksResponseType_serialize(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t text_value_6[64];
++
++ axis2_char_t text_value_7[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describeNetworksResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describeNetworksResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describeNetworksResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describeNetworksResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksResponseType->is_valid_mode)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("mode")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("mode")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing mode element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%smode>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%smode>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _describeNetworksResponseType->property_mode);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksResponseType->is_valid_addrsPerNet)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("addrsPerNet")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("addrsPerNet")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing addrsPerNet element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%saddrsPerNet>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%saddrsPerNet>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_6, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _describeNetworksResponseType->property_addrsPerNet);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeNetworksResponseType->is_valid_activeNetworks)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("activeNetworks")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("activeNetworks")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing activeNetworks array
++ */
++ if (_describeNetworksResponseType->property_activeNetworks != NULL)
++ {
++
++
++ sprintf(start_input_str, "<%s%sactiveNetworks",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sactiveNetworks>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing activeNetworks element
++ */
++
++
++
++ if(!adb_networkType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_networkType_serialize((adb_networkType_t*)element,
++ env, current_node, parent_element,
++ adb_networkType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_networkType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_correlationId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
++
++
++ return _describeNetworksResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_correlationId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->is_valid_correlationId &&
++ arg_correlationId == _describeNetworksResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describeNetworksResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describeNetworksResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_correlationId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeNetworksResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_correlationId);
++ _describeNetworksResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _describeNetworksResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_correlationId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return !_describeNetworksResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_correlationId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksResponseType_reset_correlationId(_describeNetworksResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_userId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
++
++
++ return _describeNetworksResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_userId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->is_valid_userId &&
++ arg_userId == _describeNetworksResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describeNetworksResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describeNetworksResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_userId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeNetworksResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_userId);
++ _describeNetworksResponseType->property_userId = NULL;
++ }
++
++
++
++ _describeNetworksResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_userId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return !_describeNetworksResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_userId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksResponseType_reset_userId(_describeNetworksResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_statusMessage(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
++
++
++ return _describeNetworksResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_statusMessage(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _describeNetworksResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describeNetworksResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describeNetworksResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_statusMessage(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeNetworksResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeNetworksResponseType->property_statusMessage);
++ _describeNetworksResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _describeNetworksResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_statusMessage_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return !_describeNetworksResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_statusMessage_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksResponseType_reset_statusMessage(_describeNetworksResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_get_return(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (axis2_bool_t)0);
++
++
++ return _describeNetworksResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_return(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->is_valid_return &&
++ arg_return == _describeNetworksResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env);
++
++ _describeNetworksResponseType->property_return = arg_return;
++ _describeNetworksResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_return(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++ _describeNetworksResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_return_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return !_describeNetworksResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_return_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksResponseType_reset_return(_describeNetworksResponseType, env);
++ }
++
++
++
++ /**
++ * getter for mode.
++ */
++ int AXIS2_CALL
++ adb_describeNetworksResponseType_get_mode(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (int)0);
++
++
++ return _describeNetworksResponseType->property_mode;
++ }
++
++ /**
++ * setter for mode
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_mode(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const int arg_mode)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->is_valid_mode &&
++ arg_mode == _describeNetworksResponseType->property_mode)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env);
++
++ _describeNetworksResponseType->property_mode = arg_mode;
++ _describeNetworksResponseType->is_valid_mode = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for mode
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_mode(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++ _describeNetworksResponseType->is_valid_mode = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether mode is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_mode_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return !_describeNetworksResponseType->is_valid_mode;
++ }
++
++ /**
++ * Set mode to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_mode_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksResponseType_reset_mode(_describeNetworksResponseType, env);
++ }
++
++
++
++ /**
++ * getter for addrsPerNet.
++ */
++ int AXIS2_CALL
++ adb_describeNetworksResponseType_get_addrsPerNet(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, (int)0);
++
++
++ return _describeNetworksResponseType->property_addrsPerNet;
++ }
++
++ /**
++ * setter for addrsPerNet
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_addrsPerNet(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const int arg_addrsPerNet)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->is_valid_addrsPerNet &&
++ arg_addrsPerNet == _describeNetworksResponseType->property_addrsPerNet)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env);
++
++ _describeNetworksResponseType->property_addrsPerNet = arg_addrsPerNet;
++ _describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for addrsPerNet
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_addrsPerNet(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++ _describeNetworksResponseType->is_valid_addrsPerNet = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether addrsPerNet is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_addrsPerNet_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return !_describeNetworksResponseType->is_valid_addrsPerNet;
++ }
++
++ /**
++ * Set addrsPerNet to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_addrsPerNet_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksResponseType_reset_addrsPerNet(_describeNetworksResponseType, env);
++ }
++
++
++
++ /**
++ * getter for activeNetworks.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
++
++
++ return _describeNetworksResponseType->property_activeNetworks;
++ }
++
++ /**
++ * setter for activeNetworks
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_activeNetworks)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->is_valid_activeNetworks &&
++ arg_activeNetworks == _describeNetworksResponseType->property_activeNetworks)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_activeNetworks, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "activeNetworks has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_activeNetworks, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env);
++
++
++ if(NULL == arg_activeNetworks)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeNetworksResponseType->property_activeNetworks = arg_activeNetworks;
++ if(non_nil_exists)
++ {
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of activeNetworks.
++ */
++ adb_networkType_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_activeNetworks_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i)
++ {
++ adb_networkType_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, NULL);
++
++
++ if(_describeNetworksResponseType->property_activeNetworks == NULL)
++ {
++ return (adb_networkType_t*)0;
++ }
++ ret_val = (adb_networkType_t*)axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of activeNetworks.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i,
++ adb_networkType_t* arg_activeNetworks)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if( _describeNetworksResponseType->is_valid_activeNetworks &&
++ _describeNetworksResponseType->property_activeNetworks &&
++
++ arg_activeNetworks == (adb_networkType_t*)axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_activeNetworks)
++ {
++ if(_describeNetworksResponseType->property_activeNetworks != NULL)
++ {
++ size = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeNetworks is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeNetworksResponseType->property_activeNetworks == NULL)
++ {
++ _describeNetworksResponseType->property_activeNetworks = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_networkType_free((adb_networkType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, arg_activeNetworks);
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to activeNetworks.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_add_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ adb_networkType_t* arg_activeNetworks)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_activeNetworks)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describeNetworksResponseType->property_activeNetworks == NULL)
++ {
++ _describeNetworksResponseType->property_activeNetworks = axutil_array_list_create(env, 10);
++ }
++ if(_describeNetworksResponseType->property_activeNetworks == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for activeNetworks");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describeNetworksResponseType->property_activeNetworks , env, arg_activeNetworks);
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the activeNetworks array.
++ */
++ int AXIS2_CALL
++ adb_describeNetworksResponseType_sizeof_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, -1);
++ if(_describeNetworksResponseType->property_activeNetworks == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_remove_activeNetworks_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describeNetworksResponseType_set_activeNetworks_nil_at(_describeNetworksResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for activeNetworks
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++
++
++ if (_describeNetworksResponseType->property_activeNetworks != NULL)
++ {
++ count = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ adb_networkType_free((adb_networkType_t*)element, env);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describeNetworksResponseType->property_activeNetworks, env);
++ }
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether activeNetworks is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_activeNetworks_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return !_describeNetworksResponseType->is_valid_activeNetworks;
++ }
++
++ /**
++ * Set activeNetworks to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeNetworksResponseType_reset_activeNetworks(_describeNetworksResponseType, env);
++ }
++
++
++ /**
++ * Check whether activeNetworks is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_activeNetworks_nil_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_TRUE);
++
++ return (_describeNetworksResponseType->is_valid_activeNetworks == AXIS2_FALSE ||
++ NULL == _describeNetworksResponseType->property_activeNetworks ||
++ NULL == axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i));
++ }
++
++ /**
++ * Set activeNetworks to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks_nil_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeNetworksResponseType, AXIS2_FAILURE);
++
++ if(_describeNetworksResponseType->property_activeNetworks == NULL ||
++ _describeNetworksResponseType->is_valid_activeNetworks == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describeNetworksResponseType->property_activeNetworks, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of activeNetworks is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeNetworksResponseType->property_activeNetworks == NULL)
++ {
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeNetworksResponseType->property_activeNetworks, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_networkType_free((adb_networkType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeNetworksResponseType->is_valid_activeNetworks = AXIS2_FALSE;
++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describeNetworksResponseType->property_activeNetworks , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeNetworksResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeNetworksResponseType.h
+@@ -0,0 +1,644 @@
++
++
++ #ifndef ADB_DESCRIBENETWORKSRESPONSETYPE_H
++ #define ADB_DESCRIBENETWORKSRESPONSETYPE_H
++
++ /**
++ * adb_describeNetworksResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describeNetworksResponseType class
++ */
++ typedef struct adb_describeNetworksResponseType adb_describeNetworksResponseType_t;
++
++
++ #include "adb_networkType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describeNetworksResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describeNetworksResponseType_t object
++ */
++ adb_describeNetworksResponseType_t* AXIS2_CALL
++ adb_describeNetworksResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describeNetworksResponseType_t object
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_free (
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_correlationId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_correlationId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_correlationId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_userId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_userId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_userId(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_statusMessage(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_statusMessage(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_statusMessage(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_get_return(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_return(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_return(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for mode.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_describeNetworksResponseType_get_mode(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for mode.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_mode int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_mode(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const int arg_mode);
++
++ /**
++ * Resetter for mode
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_mode(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for addrsPerNet.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_describeNetworksResponseType_get_addrsPerNet(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for addrsPerNet.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_addrsPerNet int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_addrsPerNet(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ const int arg_addrsPerNet);
++
++ /**
++ * Resetter for addrsPerNet
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_addrsPerNet(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for activeNetworks. Deprecated for array types, Use adb_describeNetworksResponseType_get_activeNetworks_at instead
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of adb_networkType_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for activeNetworks.Deprecated for array types, Use adb_describeNetworksResponseType_set_activeNetworks_at
++ * or adb_describeNetworksResponseType_add_activeNetworks instead.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_activeNetworks Array of adb_networkType_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_activeNetworks);
++
++ /**
++ * Resetter for activeNetworks
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_reset_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of activeNetworks.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith adb_networkType_t* of the array
++ */
++ adb_networkType_t* AXIS2_CALL
++ adb_describeNetworksResponseType_get_activeNetworks_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of activeNetworks. (If the ith already exist, it will be replaced)
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_activeNetworks element to set adb_networkType_t* to the array
++ * @return ith adb_networkType_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i,
++ adb_networkType_t* arg_activeNetworks);
++
++
++ /**
++ * Add to activeNetworks.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_activeNetworks element to add adb_networkType_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_add_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ adb_networkType_t* arg_activeNetworks);
++
++ /**
++ * Get the size of the activeNetworks array.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the activeNetworks array.
++ */
++ int AXIS2_CALL
++ adb_describeNetworksResponseType_sizeof_activeNetworks(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of activeNetworks.
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_remove_activeNetworks_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_correlationId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_userId_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_statusMessage_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_statusMessage_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_return_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether mode is nill
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_mode_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether addrsPerNet is nill
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_addrsPerNet_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether activeNetworks is nill
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_activeNetworks_nil(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether activeNetworks is nill at i
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_activeNetworks_nil_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set activeNetworks to nill at i
++ * @param _describeNetworksResponseType _ adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_set_activeNetworks_nil_at(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeNetworksResponseType_deserialize(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describeNetworksResponseType_declare_parent_namespaces(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describeNetworksResponseType adb_describeNetworksResponseType_t object
++ * @param env pointer to environment struct
++ * @param describeNetworksResponseType_om_node node to serialize from
++ * @param describeNetworksResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describeNetworksResponseType_serialize(
++ adb_describeNetworksResponseType_t* _describeNetworksResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* describeNetworksResponseType_om_node, axiom_element_t *describeNetworksResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describeNetworksResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeNetworksResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBENETWORKSRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_startNetworkResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_startNetworkResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = startNetworkResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_startNetworkResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_correlationId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_userId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_return_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_startNetworkResponseType_t* AXIS2_CALL
++ adb_startNetworkResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_startNetworkResponseType_t *_startNetworkResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _startNetworkResponseType = (adb_startNetworkResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_startNetworkResponseType_t));
++
++ if(NULL == _startNetworkResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_startNetworkResponseType, 0, sizeof(adb_startNetworkResponseType_t));
++
++ _startNetworkResponseType->property_correlationId = NULL;
++ _startNetworkResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _startNetworkResponseType->property_userId = NULL;
++ _startNetworkResponseType->is_valid_userId = AXIS2_FALSE;
++ _startNetworkResponseType->property_statusMessage = NULL;
++ _startNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _startNetworkResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _startNetworkResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_free (
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++ adb_startNetworkResponseType_reset_correlationId(_startNetworkResponseType, env);
++ adb_startNetworkResponseType_reset_userId(_startNetworkResponseType, env);
++ adb_startNetworkResponseType_reset_statusMessage(_startNetworkResponseType, env);
++ adb_startNetworkResponseType_reset_return(_startNetworkResponseType, env);
++
++
++ if(_startNetworkResponseType)
++ {
++ AXIS2_FREE(env->allocator, _startNetworkResponseType);
++ _startNetworkResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_deserialize(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for startNetworkResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkResponseType_set_correlationId(_startNetworkResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_startNetworkResponseType_set_correlationId(_startNetworkResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkResponseType_set_userId(_startNetworkResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_startNetworkResponseType_set_userId(_startNetworkResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkResponseType_set_statusMessage(_startNetworkResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_startNetworkResponseType_set_return(_startNetworkResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_startNetworkResponseType_set_return(_startNetworkResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_startNetworkResponseType_declare_parent_namespaces(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_startNetworkResponseType_serialize(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _startNetworkResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _startNetworkResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _startNetworkResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_startNetworkResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkResponseType_get_correlationId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL);
++
++
++ return _startNetworkResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_correlationId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++ if(_startNetworkResponseType->is_valid_correlationId &&
++ arg_correlationId == _startNetworkResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkResponseType_reset_correlationId(_startNetworkResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _startNetworkResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_correlationId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkResponseType->property_correlationId);
++ _startNetworkResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _startNetworkResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_correlationId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE);
++
++ return !_startNetworkResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_correlationId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkResponseType_reset_correlationId(_startNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkResponseType_get_userId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL);
++
++
++ return _startNetworkResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_userId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++ if(_startNetworkResponseType->is_valid_userId &&
++ arg_userId == _startNetworkResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkResponseType_reset_userId(_startNetworkResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _startNetworkResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_userId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkResponseType->property_userId);
++ _startNetworkResponseType->property_userId = NULL;
++ }
++
++
++
++ _startNetworkResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_userId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE);
++
++ return !_startNetworkResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_userId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkResponseType_reset_userId(_startNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkResponseType_get_statusMessage(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, NULL);
++
++
++ return _startNetworkResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_statusMessage(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++ if(_startNetworkResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _startNetworkResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkResponseType_reset_statusMessage(_startNetworkResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _startNetworkResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_statusMessage(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkResponseType->property_statusMessage);
++ _startNetworkResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _startNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_statusMessage_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE);
++
++ return !_startNetworkResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_statusMessage_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkResponseType_reset_statusMessage(_startNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_get_return(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, (axis2_bool_t)0);
++
++
++ return _startNetworkResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_return(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++ if(_startNetworkResponseType->is_valid_return &&
++ arg_return == _startNetworkResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkResponseType_reset_return(_startNetworkResponseType, env);
++
++ _startNetworkResponseType->property_return = arg_return;
++ _startNetworkResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_return(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_FAILURE);
++
++
++ _startNetworkResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_return_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkResponseType, AXIS2_TRUE);
++
++ return !_startNetworkResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_return_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkResponseType_reset_return(_startNetworkResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_STARTNETWORKRESPONSETYPE_H
++ #define ADB_STARTNETWORKRESPONSETYPE_H
++
++ /**
++ * adb_startNetworkResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_startNetworkResponseType class
++ */
++ typedef struct adb_startNetworkResponseType adb_startNetworkResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_startNetworkResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_startNetworkResponseType_t object
++ */
++ adb_startNetworkResponseType_t* AXIS2_CALL
++ adb_startNetworkResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_startNetworkResponseType_t object
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_free (
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkResponseType_get_correlationId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_correlationId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_correlationId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkResponseType_get_userId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_userId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_userId(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkResponseType_get_statusMessage(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_statusMessage(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_statusMessage(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_get_return(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_return(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_reset_return(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_correlationId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_userId_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_statusMessage_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_set_statusMessage_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_return_nil(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkResponseType_deserialize(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_startNetworkResponseType_declare_parent_namespaces(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _startNetworkResponseType adb_startNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param startNetworkResponseType_om_node node to serialize from
++ * @param startNetworkResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_startNetworkResponseType_serialize(
++ adb_startNetworkResponseType_t* _startNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* startNetworkResponseType_om_node, axiom_element_t *startNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_startNetworkResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_STARTNETWORKRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputType.c
+@@ -0,0 +1,1738 @@
++
++
++ /**
++ * adb_getConsoleOutputType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_getConsoleOutputType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = getConsoleOutputType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_getConsoleOutputType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_instanceId;
++
++
++ axis2_bool_t is_valid_instanceId;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_correlationId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_userId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_return_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_instanceId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_getConsoleOutputType_t* AXIS2_CALL
++ adb_getConsoleOutputType_create(
++ const axutil_env_t *env)
++ {
++ adb_getConsoleOutputType_t *_getConsoleOutputType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _getConsoleOutputType = (adb_getConsoleOutputType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_getConsoleOutputType_t));
++
++ if(NULL == _getConsoleOutputType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_getConsoleOutputType, 0, sizeof(adb_getConsoleOutputType_t));
++
++ _getConsoleOutputType->property_correlationId = NULL;
++ _getConsoleOutputType->is_valid_correlationId = AXIS2_FALSE;
++ _getConsoleOutputType->property_userId = NULL;
++ _getConsoleOutputType->is_valid_userId = AXIS2_FALSE;
++ _getConsoleOutputType->property_statusMessage = NULL;
++ _getConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE;
++ _getConsoleOutputType->is_valid_return = AXIS2_FALSE;
++ _getConsoleOutputType->property_instanceId = NULL;
++ _getConsoleOutputType->is_valid_instanceId = AXIS2_FALSE;
++
++
++ return _getConsoleOutputType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_free (
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++ adb_getConsoleOutputType_reset_correlationId(_getConsoleOutputType, env);
++ adb_getConsoleOutputType_reset_userId(_getConsoleOutputType, env);
++ adb_getConsoleOutputType_reset_statusMessage(_getConsoleOutputType, env);
++ adb_getConsoleOutputType_reset_return(_getConsoleOutputType, env);
++ adb_getConsoleOutputType_reset_instanceId(_getConsoleOutputType, env);
++
++
++ if(_getConsoleOutputType)
++ {
++ AXIS2_FREE(env->allocator, _getConsoleOutputType);
++ _getConsoleOutputType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_deserialize(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for getConsoleOutputType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputType_set_correlationId(_getConsoleOutputType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_getConsoleOutputType_set_correlationId(_getConsoleOutputType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputType_set_userId(_getConsoleOutputType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_getConsoleOutputType_set_userId(_getConsoleOutputType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputType_set_statusMessage(_getConsoleOutputType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_getConsoleOutputType_set_return(_getConsoleOutputType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_getConsoleOutputType_set_return(_getConsoleOutputType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building instanceId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_getConsoleOutputType_set_instanceId(_getConsoleOutputType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_getConsoleOutputType_set_instanceId(_getConsoleOutputType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_getConsoleOutputType_declare_parent_namespaces(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_getConsoleOutputType_serialize(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _getConsoleOutputType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _getConsoleOutputType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _getConsoleOutputType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_getConsoleOutputType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_getConsoleOutputType->is_valid_instanceId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing instanceId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _getConsoleOutputType->property_instanceId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_correlationId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL);
++
++
++ return _getConsoleOutputType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_correlationId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputType->is_valid_correlationId &&
++ arg_correlationId == _getConsoleOutputType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputType_reset_correlationId(_getConsoleOutputType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _getConsoleOutputType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_correlationId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_correlationId);
++ _getConsoleOutputType->property_correlationId = NULL;
++ }
++
++
++
++ _getConsoleOutputType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_correlationId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE);
++
++ return !_getConsoleOutputType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_correlationId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputType_reset_correlationId(_getConsoleOutputType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_userId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL);
++
++
++ return _getConsoleOutputType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_userId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputType->is_valid_userId &&
++ arg_userId == _getConsoleOutputType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputType_reset_userId(_getConsoleOutputType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _getConsoleOutputType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_userId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_userId);
++ _getConsoleOutputType->property_userId = NULL;
++ }
++
++
++
++ _getConsoleOutputType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_userId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE);
++
++ return !_getConsoleOutputType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_userId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputType_reset_userId(_getConsoleOutputType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_statusMessage(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL);
++
++
++ return _getConsoleOutputType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_statusMessage(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputType->is_valid_statusMessage &&
++ arg_statusMessage == _getConsoleOutputType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputType_reset_statusMessage(_getConsoleOutputType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _getConsoleOutputType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_statusMessage(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_statusMessage);
++ _getConsoleOutputType->property_statusMessage = NULL;
++ }
++
++
++
++ _getConsoleOutputType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_statusMessage_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE);
++
++ return !_getConsoleOutputType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_statusMessage_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputType_reset_statusMessage(_getConsoleOutputType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_get_return(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, (axis2_bool_t)0);
++
++
++ return _getConsoleOutputType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_return(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputType->is_valid_return &&
++ arg_return == _getConsoleOutputType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputType_reset_return(_getConsoleOutputType, env);
++
++ _getConsoleOutputType->property_return = arg_return;
++ _getConsoleOutputType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_return(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++
++ _getConsoleOutputType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_return_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE);
++
++ return !_getConsoleOutputType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_return_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputType_reset_return(_getConsoleOutputType, env);
++ }
++
++
++
++ /**
++ * getter for instanceId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_instanceId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, NULL);
++
++
++ return _getConsoleOutputType->property_instanceId;
++ }
++
++ /**
++ * setter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_instanceId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++ if(_getConsoleOutputType->is_valid_instanceId &&
++ arg_instanceId == _getConsoleOutputType->property_instanceId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_getConsoleOutputType_reset_instanceId(_getConsoleOutputType, env);
++
++
++ if(NULL == arg_instanceId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _getConsoleOutputType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
++ if(NULL == _getConsoleOutputType->property_instanceId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
++ return AXIS2_FAILURE;
++ }
++ _getConsoleOutputType->is_valid_instanceId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_instanceId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_getConsoleOutputType->property_instanceId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _getConsoleOutputType->property_instanceId);
++ _getConsoleOutputType->property_instanceId = NULL;
++ }
++
++
++
++ _getConsoleOutputType->is_valid_instanceId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_instanceId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _getConsoleOutputType, AXIS2_TRUE);
++
++ return !_getConsoleOutputType->is_valid_instanceId;
++ }
++
++ /**
++ * Set instanceId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_instanceId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env)
++ {
++ return adb_getConsoleOutputType_reset_instanceId(_getConsoleOutputType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_getConsoleOutputType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_getConsoleOutputType.h
+@@ -0,0 +1,414 @@
++
++
++ #ifndef ADB_GETCONSOLEOUTPUTTYPE_H
++ #define ADB_GETCONSOLEOUTPUTTYPE_H
++
++ /**
++ * adb_getConsoleOutputType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_getConsoleOutputType class
++ */
++ typedef struct adb_getConsoleOutputType adb_getConsoleOutputType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_getConsoleOutputType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_getConsoleOutputType_t object
++ */
++ adb_getConsoleOutputType_t* AXIS2_CALL
++ adb_getConsoleOutputType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_getConsoleOutputType_t object
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_free (
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_correlationId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_correlationId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_correlationId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_userId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_userId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_userId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_statusMessage(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_statusMessage(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_statusMessage(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_get_return(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_return(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_return(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceId.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_getConsoleOutputType_get_instanceId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceId.
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_instanceId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId);
++
++ /**
++ * Resetter for instanceId
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_reset_instanceId(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_correlationId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_userId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_statusMessage_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_set_statusMessage_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_return_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceId is nill
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_instanceId_nil(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_getConsoleOutputType_deserialize(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_getConsoleOutputType_declare_parent_namespaces(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _getConsoleOutputType adb_getConsoleOutputType_t object
++ * @param env pointer to environment struct
++ * @param getConsoleOutputType_om_node node to serialize from
++ * @param getConsoleOutputType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_getConsoleOutputType_serialize(
++ adb_getConsoleOutputType_t* _getConsoleOutputType,
++ const axutil_env_t *env,
++ axiom_node_t* getConsoleOutputType_om_node, axiom_element_t *getConsoleOutputType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_getConsoleOutputType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_getConsoleOutputType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_GETCONSOLEOUTPUTTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_attachVolumeResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_attachVolumeResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = attachVolumeResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_attachVolumeResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_correlationId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_userId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_return_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_attachVolumeResponseType_t* AXIS2_CALL
++ adb_attachVolumeResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_attachVolumeResponseType_t *_attachVolumeResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _attachVolumeResponseType = (adb_attachVolumeResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_attachVolumeResponseType_t));
++
++ if(NULL == _attachVolumeResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_attachVolumeResponseType, 0, sizeof(adb_attachVolumeResponseType_t));
++
++ _attachVolumeResponseType->property_correlationId = NULL;
++ _attachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _attachVolumeResponseType->property_userId = NULL;
++ _attachVolumeResponseType->is_valid_userId = AXIS2_FALSE;
++ _attachVolumeResponseType->property_statusMessage = NULL;
++ _attachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _attachVolumeResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _attachVolumeResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_free (
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++ adb_attachVolumeResponseType_reset_correlationId(_attachVolumeResponseType, env);
++ adb_attachVolumeResponseType_reset_userId(_attachVolumeResponseType, env);
++ adb_attachVolumeResponseType_reset_statusMessage(_attachVolumeResponseType, env);
++ adb_attachVolumeResponseType_reset_return(_attachVolumeResponseType, env);
++
++
++ if(_attachVolumeResponseType)
++ {
++ AXIS2_FREE(env->allocator, _attachVolumeResponseType);
++ _attachVolumeResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_deserialize(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for attachVolumeResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeResponseType_set_correlationId(_attachVolumeResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeResponseType_set_correlationId(_attachVolumeResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeResponseType_set_userId(_attachVolumeResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeResponseType_set_userId(_attachVolumeResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeResponseType_set_statusMessage(_attachVolumeResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_attachVolumeResponseType_set_return(_attachVolumeResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_attachVolumeResponseType_set_return(_attachVolumeResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_attachVolumeResponseType_declare_parent_namespaces(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_attachVolumeResponseType_serialize(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _attachVolumeResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _attachVolumeResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _attachVolumeResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_attachVolumeResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeResponseType_get_correlationId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL);
++
++
++ return _attachVolumeResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_correlationId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_attachVolumeResponseType->is_valid_correlationId &&
++ arg_correlationId == _attachVolumeResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeResponseType_reset_correlationId(_attachVolumeResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _attachVolumeResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_correlationId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeResponseType->property_correlationId);
++ _attachVolumeResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _attachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_correlationId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE);
++
++ return !_attachVolumeResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_correlationId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeResponseType_reset_correlationId(_attachVolumeResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeResponseType_get_userId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL);
++
++
++ return _attachVolumeResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_userId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_attachVolumeResponseType->is_valid_userId &&
++ arg_userId == _attachVolumeResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeResponseType_reset_userId(_attachVolumeResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _attachVolumeResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_userId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeResponseType->property_userId);
++ _attachVolumeResponseType->property_userId = NULL;
++ }
++
++
++
++ _attachVolumeResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_userId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE);
++
++ return !_attachVolumeResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_userId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeResponseType_reset_userId(_attachVolumeResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeResponseType_get_statusMessage(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, NULL);
++
++
++ return _attachVolumeResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_statusMessage(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_attachVolumeResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _attachVolumeResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeResponseType_reset_statusMessage(_attachVolumeResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _attachVolumeResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_statusMessage(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeResponseType->property_statusMessage);
++ _attachVolumeResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _attachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_statusMessage_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE);
++
++ return !_attachVolumeResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_statusMessage_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeResponseType_reset_statusMessage(_attachVolumeResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_get_return(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, (axis2_bool_t)0);
++
++
++ return _attachVolumeResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_return(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_attachVolumeResponseType->is_valid_return &&
++ arg_return == _attachVolumeResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeResponseType_reset_return(_attachVolumeResponseType, env);
++
++ _attachVolumeResponseType->property_return = arg_return;
++ _attachVolumeResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_return(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_FAILURE);
++
++
++ _attachVolumeResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_return_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeResponseType, AXIS2_TRUE);
++
++ return !_attachVolumeResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_return_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeResponseType_reset_return(_attachVolumeResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_ATTACHVOLUMERESPONSETYPE_H
++ #define ADB_ATTACHVOLUMERESPONSETYPE_H
++
++ /**
++ * adb_attachVolumeResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_attachVolumeResponseType class
++ */
++ typedef struct adb_attachVolumeResponseType adb_attachVolumeResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_attachVolumeResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_attachVolumeResponseType_t object
++ */
++ adb_attachVolumeResponseType_t* AXIS2_CALL
++ adb_attachVolumeResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_attachVolumeResponseType_t object
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_free (
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeResponseType_get_correlationId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_correlationId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_correlationId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeResponseType_get_userId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_userId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_userId(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeResponseType_get_statusMessage(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_statusMessage(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_statusMessage(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_get_return(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_return(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_reset_return(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_correlationId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_userId_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_statusMessage_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_set_statusMessage_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_return_nil(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeResponseType_deserialize(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_attachVolumeResponseType_declare_parent_namespaces(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _attachVolumeResponseType adb_attachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param attachVolumeResponseType_om_node node to serialize from
++ * @param attachVolumeResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_attachVolumeResponseType_serialize(
++ adb_attachVolumeResponseType_t* _attachVolumeResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* attachVolumeResponseType_om_node, axiom_element_t *attachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_attachVolumeResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_ATTACHVOLUMERESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_describePublicAddressesType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describePublicAddressesType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describePublicAddressesType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describePublicAddressesType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_correlationId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_userId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_return_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describePublicAddressesType_t* AXIS2_CALL
++ adb_describePublicAddressesType_create(
++ const axutil_env_t *env)
++ {
++ adb_describePublicAddressesType_t *_describePublicAddressesType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describePublicAddressesType = (adb_describePublicAddressesType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describePublicAddressesType_t));
++
++ if(NULL == _describePublicAddressesType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describePublicAddressesType, 0, sizeof(adb_describePublicAddressesType_t));
++
++ _describePublicAddressesType->property_correlationId = NULL;
++ _describePublicAddressesType->is_valid_correlationId = AXIS2_FALSE;
++ _describePublicAddressesType->property_userId = NULL;
++ _describePublicAddressesType->is_valid_userId = AXIS2_FALSE;
++ _describePublicAddressesType->property_statusMessage = NULL;
++ _describePublicAddressesType->is_valid_statusMessage = AXIS2_FALSE;
++ _describePublicAddressesType->is_valid_return = AXIS2_FALSE;
++
++
++ return _describePublicAddressesType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_free (
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++ adb_describePublicAddressesType_reset_correlationId(_describePublicAddressesType, env);
++ adb_describePublicAddressesType_reset_userId(_describePublicAddressesType, env);
++ adb_describePublicAddressesType_reset_statusMessage(_describePublicAddressesType, env);
++ adb_describePublicAddressesType_reset_return(_describePublicAddressesType, env);
++
++
++ if(_describePublicAddressesType)
++ {
++ AXIS2_FREE(env->allocator, _describePublicAddressesType);
++ _describePublicAddressesType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_deserialize(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describePublicAddressesType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describePublicAddressesType_set_correlationId(_describePublicAddressesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describePublicAddressesType_set_correlationId(_describePublicAddressesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describePublicAddressesType_set_userId(_describePublicAddressesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describePublicAddressesType_set_userId(_describePublicAddressesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describePublicAddressesType_set_statusMessage(_describePublicAddressesType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describePublicAddressesType_set_return(_describePublicAddressesType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describePublicAddressesType_set_return(_describePublicAddressesType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describePublicAddressesType_declare_parent_namespaces(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describePublicAddressesType_serialize(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describePublicAddressesType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describePublicAddressesType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describePublicAddressesType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describePublicAddressesType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesType_get_correlationId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL);
++
++
++ return _describePublicAddressesType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_correlationId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesType->is_valid_correlationId &&
++ arg_correlationId == _describePublicAddressesType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesType_reset_correlationId(_describePublicAddressesType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describePublicAddressesType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describePublicAddressesType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_correlationId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describePublicAddressesType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describePublicAddressesType->property_correlationId);
++ _describePublicAddressesType->property_correlationId = NULL;
++ }
++
++
++
++ _describePublicAddressesType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_correlationId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE);
++
++ return !_describePublicAddressesType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_correlationId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesType_reset_correlationId(_describePublicAddressesType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesType_get_userId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL);
++
++
++ return _describePublicAddressesType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_userId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesType->is_valid_userId &&
++ arg_userId == _describePublicAddressesType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesType_reset_userId(_describePublicAddressesType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describePublicAddressesType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describePublicAddressesType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_userId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describePublicAddressesType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describePublicAddressesType->property_userId);
++ _describePublicAddressesType->property_userId = NULL;
++ }
++
++
++
++ _describePublicAddressesType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_userId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE);
++
++ return !_describePublicAddressesType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_userId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesType_reset_userId(_describePublicAddressesType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesType_get_statusMessage(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, NULL);
++
++
++ return _describePublicAddressesType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_statusMessage(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesType->is_valid_statusMessage &&
++ arg_statusMessage == _describePublicAddressesType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesType_reset_statusMessage(_describePublicAddressesType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describePublicAddressesType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describePublicAddressesType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_statusMessage(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describePublicAddressesType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describePublicAddressesType->property_statusMessage);
++ _describePublicAddressesType->property_statusMessage = NULL;
++ }
++
++
++
++ _describePublicAddressesType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_statusMessage_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE);
++
++ return !_describePublicAddressesType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_statusMessage_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesType_reset_statusMessage(_describePublicAddressesType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_get_return(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, (axis2_bool_t)0);
++
++
++ return _describePublicAddressesType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_return(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesType->is_valid_return &&
++ arg_return == _describePublicAddressesType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesType_reset_return(_describePublicAddressesType, env);
++
++ _describePublicAddressesType->property_return = arg_return;
++ _describePublicAddressesType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_return(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_FAILURE);
++
++
++ _describePublicAddressesType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_return_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesType, AXIS2_TRUE);
++
++ return !_describePublicAddressesType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_return_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesType_reset_return(_describePublicAddressesType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_DESCRIBEPUBLICADDRESSESTYPE_H
++ #define ADB_DESCRIBEPUBLICADDRESSESTYPE_H
++
++ /**
++ * adb_describePublicAddressesType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describePublicAddressesType class
++ */
++ typedef struct adb_describePublicAddressesType adb_describePublicAddressesType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describePublicAddressesType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describePublicAddressesType_t object
++ */
++ adb_describePublicAddressesType_t* AXIS2_CALL
++ adb_describePublicAddressesType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describePublicAddressesType_t object
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_free (
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesType_get_correlationId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_correlationId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_correlationId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesType_get_userId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_userId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_userId(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesType_get_statusMessage(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_statusMessage(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_statusMessage(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_get_return(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_return(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_reset_return(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_correlationId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_userId_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_statusMessage_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_set_statusMessage_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_return_nil(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesType_deserialize(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describePublicAddressesType_declare_parent_namespaces(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describePublicAddressesType adb_describePublicAddressesType_t object
++ * @param env pointer to environment struct
++ * @param describePublicAddressesType_om_node node to serialize from
++ * @param describePublicAddressesType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describePublicAddressesType_serialize(
++ adb_describePublicAddressesType_t* _describePublicAddressesType,
++ const axutil_env_t *env,
++ axiom_node_t* describePublicAddressesType_om_node, axiom_element_t *describePublicAddressesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describePublicAddressesType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBEPUBLICADDRESSESTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeType.c
+@@ -0,0 +1,2749 @@
++
++
++ /**
++ * adb_attachVolumeType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_attachVolumeType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = attachVolumeType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_attachVolumeType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axis2_char_t* property_volumeId;
++
++
++ axis2_bool_t is_valid_volumeId;
++
++
++ axis2_char_t* property_instanceId;
++
++
++ axis2_bool_t is_valid_instanceId;
++
++
++ axis2_char_t* property_remoteDev;
++
++
++ axis2_bool_t is_valid_remoteDev;
++
++
++ axis2_char_t* property_localDev;
++
++
++ axis2_bool_t is_valid_localDev;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_correlationId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_userId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_return_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_volumeId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_instanceId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_remoteDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_localDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_attachVolumeType_t* AXIS2_CALL
++ adb_attachVolumeType_create(
++ const axutil_env_t *env)
++ {
++ adb_attachVolumeType_t *_attachVolumeType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _attachVolumeType = (adb_attachVolumeType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_attachVolumeType_t));
++
++ if(NULL == _attachVolumeType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_attachVolumeType, 0, sizeof(adb_attachVolumeType_t));
++
++ _attachVolumeType->property_correlationId = NULL;
++ _attachVolumeType->is_valid_correlationId = AXIS2_FALSE;
++ _attachVolumeType->property_userId = NULL;
++ _attachVolumeType->is_valid_userId = AXIS2_FALSE;
++ _attachVolumeType->property_statusMessage = NULL;
++ _attachVolumeType->is_valid_statusMessage = AXIS2_FALSE;
++ _attachVolumeType->is_valid_return = AXIS2_FALSE;
++ _attachVolumeType->property_volumeId = NULL;
++ _attachVolumeType->is_valid_volumeId = AXIS2_FALSE;
++ _attachVolumeType->property_instanceId = NULL;
++ _attachVolumeType->is_valid_instanceId = AXIS2_FALSE;
++ _attachVolumeType->property_remoteDev = NULL;
++ _attachVolumeType->is_valid_remoteDev = AXIS2_FALSE;
++ _attachVolumeType->property_localDev = NULL;
++ _attachVolumeType->is_valid_localDev = AXIS2_FALSE;
++
++
++ return _attachVolumeType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_free (
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ adb_attachVolumeType_reset_correlationId(_attachVolumeType, env);
++ adb_attachVolumeType_reset_userId(_attachVolumeType, env);
++ adb_attachVolumeType_reset_statusMessage(_attachVolumeType, env);
++ adb_attachVolumeType_reset_return(_attachVolumeType, env);
++ adb_attachVolumeType_reset_volumeId(_attachVolumeType, env);
++ adb_attachVolumeType_reset_instanceId(_attachVolumeType, env);
++ adb_attachVolumeType_reset_remoteDev(_attachVolumeType, env);
++ adb_attachVolumeType_reset_localDev(_attachVolumeType, env);
++
++
++ if(_attachVolumeType)
++ {
++ AXIS2_FREE(env->allocator, _attachVolumeType);
++ _attachVolumeType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_deserialize(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for attachVolumeType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeType_set_correlationId(_attachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeType_set_correlationId(_attachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeType_set_userId(_attachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeType_set_userId(_attachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeType_set_statusMessage(_attachVolumeType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_attachVolumeType_set_return(_attachVolumeType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_attachVolumeType_set_return(_attachVolumeType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building volumeId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "volumeId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeType_set_volumeId(_attachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element volumeId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeType_set_volumeId(_attachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for volumeId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building instanceId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeType_set_instanceId(_attachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeType_set_instanceId(_attachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building remoteDev element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "remoteDev", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeType_set_remoteDev(_attachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element remoteDev");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeType_set_remoteDev(_attachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for remoteDev ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building localDev element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "localDev", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_attachVolumeType_set_localDev(_attachVolumeType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element localDev");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_attachVolumeType_set_localDev(_attachVolumeType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for localDev ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_attachVolumeType_declare_parent_namespaces(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_attachVolumeType_serialize(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *text_value_7;
++ axis2_char_t *text_value_7_temp;
++
++ axis2_char_t *text_value_8;
++ axis2_char_t *text_value_8_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _attachVolumeType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _attachVolumeType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _attachVolumeType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_attachVolumeType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_volumeId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("volumeId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("volumeId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing volumeId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svolumeId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svolumeId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_5 = _attachVolumeType->property_volumeId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_instanceId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing instanceId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sinstanceId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _attachVolumeType->property_instanceId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_remoteDev)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("remoteDev")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("remoteDev")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing remoteDev element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sremoteDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sremoteDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_7 = _attachVolumeType->property_remoteDev;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
++ if (text_value_7_temp)
++ {
++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
++ AXIS2_FREE(env->allocator, text_value_7_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_attachVolumeType->is_valid_localDev)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("localDev")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("localDev")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing localDev element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%slocalDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%slocalDev>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_8 = _attachVolumeType->property_localDev;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
++ if (text_value_8_temp)
++ {
++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
++ AXIS2_FREE(env->allocator, text_value_8_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_correlationId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ return _attachVolumeType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_correlationId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_correlationId &&
++ arg_correlationId == _attachVolumeType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_correlationId(_attachVolumeType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _attachVolumeType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_correlationId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_correlationId);
++ _attachVolumeType->property_correlationId = NULL;
++ }
++
++
++
++ _attachVolumeType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_correlationId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_correlationId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_correlationId(_attachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_userId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ return _attachVolumeType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_userId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_userId &&
++ arg_userId == _attachVolumeType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_userId(_attachVolumeType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _attachVolumeType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_userId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_userId);
++ _attachVolumeType->property_userId = NULL;
++ }
++
++
++
++ _attachVolumeType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_userId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_userId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_userId(_attachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_statusMessage(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ return _attachVolumeType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_statusMessage(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_statusMessage &&
++ arg_statusMessage == _attachVolumeType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_statusMessage(_attachVolumeType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _attachVolumeType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_statusMessage(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_statusMessage);
++ _attachVolumeType->property_statusMessage = NULL;
++ }
++
++
++
++ _attachVolumeType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_statusMessage_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_statusMessage_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_statusMessage(_attachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_get_return(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, (axis2_bool_t)0);
++
++
++ return _attachVolumeType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_return(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_return &&
++ arg_return == _attachVolumeType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_return(_attachVolumeType, env);
++
++ _attachVolumeType->property_return = arg_return;
++ _attachVolumeType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_return(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++ _attachVolumeType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_return_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_return_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_return(_attachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for volumeId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_volumeId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ return _attachVolumeType->property_volumeId;
++ }
++
++ /**
++ * setter for volumeId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_volumeId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_volumeId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_volumeId &&
++ arg_volumeId == _attachVolumeType->property_volumeId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_volumeId(_attachVolumeType, env);
++
++
++ if(NULL == arg_volumeId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeType->property_volumeId = (axis2_char_t *)axutil_strdup(env, arg_volumeId);
++ if(NULL == _attachVolumeType->property_volumeId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for volumeId");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeType->is_valid_volumeId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for volumeId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_volumeId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeType->property_volumeId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_volumeId);
++ _attachVolumeType->property_volumeId = NULL;
++ }
++
++
++
++ _attachVolumeType->is_valid_volumeId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether volumeId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_volumeId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_volumeId;
++ }
++
++ /**
++ * Set volumeId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_volumeId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_volumeId(_attachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for instanceId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_instanceId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ return _attachVolumeType->property_instanceId;
++ }
++
++ /**
++ * setter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_instanceId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_instanceId &&
++ arg_instanceId == _attachVolumeType->property_instanceId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_instanceId(_attachVolumeType, env);
++
++
++ if(NULL == arg_instanceId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
++ if(NULL == _attachVolumeType->property_instanceId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeType->is_valid_instanceId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for instanceId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_instanceId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeType->property_instanceId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_instanceId);
++ _attachVolumeType->property_instanceId = NULL;
++ }
++
++
++
++ _attachVolumeType->is_valid_instanceId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_instanceId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_instanceId;
++ }
++
++ /**
++ * Set instanceId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_instanceId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_instanceId(_attachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for remoteDev.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_remoteDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ return _attachVolumeType->property_remoteDev;
++ }
++
++ /**
++ * setter for remoteDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_remoteDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_remoteDev)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_remoteDev &&
++ arg_remoteDev == _attachVolumeType->property_remoteDev)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_remoteDev(_attachVolumeType, env);
++
++
++ if(NULL == arg_remoteDev)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeType->property_remoteDev = (axis2_char_t *)axutil_strdup(env, arg_remoteDev);
++ if(NULL == _attachVolumeType->property_remoteDev)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for remoteDev");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeType->is_valid_remoteDev = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for remoteDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_remoteDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeType->property_remoteDev != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_remoteDev);
++ _attachVolumeType->property_remoteDev = NULL;
++ }
++
++
++
++ _attachVolumeType->is_valid_remoteDev = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether remoteDev is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_remoteDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_remoteDev;
++ }
++
++ /**
++ * Set remoteDev to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_remoteDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_remoteDev(_attachVolumeType, env);
++ }
++
++
++
++ /**
++ * getter for localDev.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_localDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, NULL);
++
++
++ return _attachVolumeType->property_localDev;
++ }
++
++ /**
++ * setter for localDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_localDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_localDev)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++ if(_attachVolumeType->is_valid_localDev &&
++ arg_localDev == _attachVolumeType->property_localDev)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_attachVolumeType_reset_localDev(_attachVolumeType, env);
++
++
++ if(NULL == arg_localDev)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _attachVolumeType->property_localDev = (axis2_char_t *)axutil_strdup(env, arg_localDev);
++ if(NULL == _attachVolumeType->property_localDev)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for localDev");
++ return AXIS2_FAILURE;
++ }
++ _attachVolumeType->is_valid_localDev = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for localDev
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_localDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_attachVolumeType->property_localDev != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _attachVolumeType->property_localDev);
++ _attachVolumeType->property_localDev = NULL;
++ }
++
++
++
++ _attachVolumeType->is_valid_localDev = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether localDev is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_localDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _attachVolumeType, AXIS2_TRUE);
++
++ return !_attachVolumeType->is_valid_localDev;
++ }
++
++ /**
++ * Set localDev to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_localDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env)
++ {
++ return adb_attachVolumeType_reset_localDev(_attachVolumeType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_attachVolumeType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_attachVolumeType.h
+@@ -0,0 +1,570 @@
++
++
++ #ifndef ADB_ATTACHVOLUMETYPE_H
++ #define ADB_ATTACHVOLUMETYPE_H
++
++ /**
++ * adb_attachVolumeType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_attachVolumeType class
++ */
++ typedef struct adb_attachVolumeType adb_attachVolumeType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_attachVolumeType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_attachVolumeType_t object
++ */
++ adb_attachVolumeType_t* AXIS2_CALL
++ adb_attachVolumeType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_attachVolumeType_t object
++ * @param _attachVolumeType adb_attachVolumeType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_free (
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_correlationId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_correlationId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_correlationId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_userId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_userId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_userId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_statusMessage(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_statusMessage(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_statusMessage(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_get_return(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_return(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_return(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for volumeId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_volumeId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for volumeId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_volumeId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_volumeId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_volumeId);
++
++ /**
++ * Resetter for volumeId
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_volumeId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_instanceId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceId.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_instanceId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceId);
++
++ /**
++ * Resetter for instanceId
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_instanceId(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for remoteDev.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_remoteDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for remoteDev.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_remoteDev axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_remoteDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_remoteDev);
++
++ /**
++ * Resetter for remoteDev
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_remoteDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for localDev.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_attachVolumeType_get_localDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for localDev.
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param arg_localDev axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_localDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_localDev);
++
++ /**
++ * Resetter for localDev
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_reset_localDev(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_correlationId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_userId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_statusMessage_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_set_statusMessage_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_return_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether volumeId is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_volumeId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceId is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_instanceId_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether remoteDev is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_remoteDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether localDev is nill
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_localDev_nil(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_attachVolumeType_deserialize(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_attachVolumeType_declare_parent_namespaces(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _attachVolumeType adb_attachVolumeType_t object
++ * @param env pointer to environment struct
++ * @param attachVolumeType_om_node node to serialize from
++ * @param attachVolumeType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_attachVolumeType_serialize(
++ adb_attachVolumeType_t* _attachVolumeType,
++ const axutil_env_t *env,
++ axiom_node_t* attachVolumeType_om_node, axiom_element_t *attachVolumeType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_attachVolumeType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_attachVolumeType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_ATTACHVOLUMETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_configureNetworkResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_configureNetworkResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = configureNetworkResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_configureNetworkResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_correlationId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_userId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_return_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_configureNetworkResponseType_t* AXIS2_CALL
++ adb_configureNetworkResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_configureNetworkResponseType_t *_configureNetworkResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _configureNetworkResponseType = (adb_configureNetworkResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_configureNetworkResponseType_t));
++
++ if(NULL == _configureNetworkResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_configureNetworkResponseType, 0, sizeof(adb_configureNetworkResponseType_t));
++
++ _configureNetworkResponseType->property_correlationId = NULL;
++ _configureNetworkResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _configureNetworkResponseType->property_userId = NULL;
++ _configureNetworkResponseType->is_valid_userId = AXIS2_FALSE;
++ _configureNetworkResponseType->property_statusMessage = NULL;
++ _configureNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _configureNetworkResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _configureNetworkResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_free (
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++ adb_configureNetworkResponseType_reset_correlationId(_configureNetworkResponseType, env);
++ adb_configureNetworkResponseType_reset_userId(_configureNetworkResponseType, env);
++ adb_configureNetworkResponseType_reset_statusMessage(_configureNetworkResponseType, env);
++ adb_configureNetworkResponseType_reset_return(_configureNetworkResponseType, env);
++
++
++ if(_configureNetworkResponseType)
++ {
++ AXIS2_FREE(env->allocator, _configureNetworkResponseType);
++ _configureNetworkResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_deserialize(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for configureNetworkResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_configureNetworkResponseType_set_correlationId(_configureNetworkResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_configureNetworkResponseType_set_correlationId(_configureNetworkResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_configureNetworkResponseType_set_userId(_configureNetworkResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_configureNetworkResponseType_set_userId(_configureNetworkResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_configureNetworkResponseType_set_statusMessage(_configureNetworkResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_configureNetworkResponseType_set_return(_configureNetworkResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_configureNetworkResponseType_set_return(_configureNetworkResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_configureNetworkResponseType_declare_parent_namespaces(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_configureNetworkResponseType_serialize(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _configureNetworkResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _configureNetworkResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _configureNetworkResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_configureNetworkResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_configureNetworkResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkResponseType_get_correlationId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL);
++
++
++ return _configureNetworkResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_correlationId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++ if(_configureNetworkResponseType->is_valid_correlationId &&
++ arg_correlationId == _configureNetworkResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkResponseType_reset_correlationId(_configureNetworkResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _configureNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _configureNetworkResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _configureNetworkResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_correlationId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_configureNetworkResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _configureNetworkResponseType->property_correlationId);
++ _configureNetworkResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _configureNetworkResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_correlationId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE);
++
++ return !_configureNetworkResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_correlationId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkResponseType_reset_correlationId(_configureNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkResponseType_get_userId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL);
++
++
++ return _configureNetworkResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_userId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++ if(_configureNetworkResponseType->is_valid_userId &&
++ arg_userId == _configureNetworkResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkResponseType_reset_userId(_configureNetworkResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _configureNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _configureNetworkResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _configureNetworkResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_userId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_configureNetworkResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _configureNetworkResponseType->property_userId);
++ _configureNetworkResponseType->property_userId = NULL;
++ }
++
++
++
++ _configureNetworkResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_userId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE);
++
++ return !_configureNetworkResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_userId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkResponseType_reset_userId(_configureNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkResponseType_get_statusMessage(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, NULL);
++
++
++ return _configureNetworkResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_statusMessage(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++ if(_configureNetworkResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _configureNetworkResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkResponseType_reset_statusMessage(_configureNetworkResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _configureNetworkResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _configureNetworkResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _configureNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_statusMessage(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_configureNetworkResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _configureNetworkResponseType->property_statusMessage);
++ _configureNetworkResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _configureNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_statusMessage_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE);
++
++ return !_configureNetworkResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_statusMessage_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkResponseType_reset_statusMessage(_configureNetworkResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_get_return(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, (axis2_bool_t)0);
++
++
++ return _configureNetworkResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_return(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++ if(_configureNetworkResponseType->is_valid_return &&
++ arg_return == _configureNetworkResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_configureNetworkResponseType_reset_return(_configureNetworkResponseType, env);
++
++ _configureNetworkResponseType->property_return = arg_return;
++ _configureNetworkResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_return(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_FAILURE);
++
++
++ _configureNetworkResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_return_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _configureNetworkResponseType, AXIS2_TRUE);
++
++ return !_configureNetworkResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_return_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_configureNetworkResponseType_reset_return(_configureNetworkResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_configureNetworkResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_configureNetworkResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_CONFIGURENETWORKRESPONSETYPE_H
++ #define ADB_CONFIGURENETWORKRESPONSETYPE_H
++
++ /**
++ * adb_configureNetworkResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_configureNetworkResponseType class
++ */
++ typedef struct adb_configureNetworkResponseType adb_configureNetworkResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_configureNetworkResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_configureNetworkResponseType_t object
++ */
++ adb_configureNetworkResponseType_t* AXIS2_CALL
++ adb_configureNetworkResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_configureNetworkResponseType_t object
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_free (
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkResponseType_get_correlationId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_correlationId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_correlationId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkResponseType_get_userId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_userId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_userId(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_configureNetworkResponseType_get_statusMessage(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_statusMessage(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_statusMessage(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_get_return(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_return(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_reset_return(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_correlationId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_userId_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_statusMessage_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_set_statusMessage_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_return_nil(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_configureNetworkResponseType_deserialize(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_configureNetworkResponseType_declare_parent_namespaces(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _configureNetworkResponseType adb_configureNetworkResponseType_t object
++ * @param env pointer to environment struct
++ * @param configureNetworkResponseType_om_node node to serialize from
++ * @param configureNetworkResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_configureNetworkResponseType_serialize(
++ adb_configureNetworkResponseType_t* _configureNetworkResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* configureNetworkResponseType_om_node, axiom_element_t *configureNetworkResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_configureNetworkResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_configureNetworkResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_CONFIGURENETWORKRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesType.c
+@@ -0,0 +1,2131 @@
++
++
++ /**
++ * adb_rebootInstancesType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_rebootInstancesType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = rebootInstancesType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_rebootInstancesType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_instanceIds;
++
++
++ axis2_bool_t is_valid_instanceIds;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_correlationId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_userId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_return_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds_nil_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_rebootInstancesType_t* AXIS2_CALL
++ adb_rebootInstancesType_create(
++ const axutil_env_t *env)
++ {
++ adb_rebootInstancesType_t *_rebootInstancesType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _rebootInstancesType = (adb_rebootInstancesType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_rebootInstancesType_t));
++
++ if(NULL == _rebootInstancesType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_rebootInstancesType, 0, sizeof(adb_rebootInstancesType_t));
++
++ _rebootInstancesType->property_correlationId = NULL;
++ _rebootInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ _rebootInstancesType->property_userId = NULL;
++ _rebootInstancesType->is_valid_userId = AXIS2_FALSE;
++ _rebootInstancesType->property_statusMessage = NULL;
++ _rebootInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ _rebootInstancesType->is_valid_return = AXIS2_FALSE;
++ _rebootInstancesType->property_instanceIds = NULL;
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++
++
++ return _rebootInstancesType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_free (
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ adb_rebootInstancesType_reset_correlationId(_rebootInstancesType, env);
++ adb_rebootInstancesType_reset_userId(_rebootInstancesType, env);
++ adb_rebootInstancesType_reset_statusMessage(_rebootInstancesType, env);
++ adb_rebootInstancesType_reset_return(_rebootInstancesType, env);
++ adb_rebootInstancesType_reset_instanceIds(_rebootInstancesType, env);
++
++
++ if(_rebootInstancesType)
++ {
++ AXIS2_FREE(env->allocator, _rebootInstancesType);
++ _rebootInstancesType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_deserialize(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for rebootInstancesType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_rebootInstancesType_set_correlationId(_rebootInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_rebootInstancesType_set_correlationId(_rebootInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_rebootInstancesType_set_userId(_rebootInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_rebootInstancesType_set_userId(_rebootInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_rebootInstancesType_set_statusMessage(_rebootInstancesType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_rebootInstancesType_set_return(_rebootInstancesType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_rebootInstancesType_set_return(_rebootInstancesType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building instanceIds array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building instanceIds element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceIds");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_rebootInstancesType_set_instanceIds(_rebootInstancesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_rebootInstancesType_declare_parent_namespaces(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_rebootInstancesType_serialize(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _rebootInstancesType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _rebootInstancesType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _rebootInstancesType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_rebootInstancesType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_rebootInstancesType->is_valid_instanceIds)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceIds")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing instanceIds array
++ */
++ if (_rebootInstancesType->property_instanceIds != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing instanceIds element
++ */
++
++
++
++ text_value_5 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_correlationId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL);
++
++
++ return _rebootInstancesType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_correlationId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ if(_rebootInstancesType->is_valid_correlationId &&
++ arg_correlationId == _rebootInstancesType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesType_reset_correlationId(_rebootInstancesType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _rebootInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _rebootInstancesType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _rebootInstancesType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_correlationId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_rebootInstancesType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _rebootInstancesType->property_correlationId);
++ _rebootInstancesType->property_correlationId = NULL;
++ }
++
++
++
++ _rebootInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_correlationId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE);
++
++ return !_rebootInstancesType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_correlationId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesType_reset_correlationId(_rebootInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_userId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL);
++
++
++ return _rebootInstancesType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_userId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ if(_rebootInstancesType->is_valid_userId &&
++ arg_userId == _rebootInstancesType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesType_reset_userId(_rebootInstancesType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _rebootInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _rebootInstancesType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _rebootInstancesType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_userId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_rebootInstancesType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _rebootInstancesType->property_userId);
++ _rebootInstancesType->property_userId = NULL;
++ }
++
++
++
++ _rebootInstancesType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_userId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE);
++
++ return !_rebootInstancesType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_userId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesType_reset_userId(_rebootInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_statusMessage(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL);
++
++
++ return _rebootInstancesType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_statusMessage(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ if(_rebootInstancesType->is_valid_statusMessage &&
++ arg_statusMessage == _rebootInstancesType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesType_reset_statusMessage(_rebootInstancesType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _rebootInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _rebootInstancesType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _rebootInstancesType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_statusMessage(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_rebootInstancesType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _rebootInstancesType->property_statusMessage);
++ _rebootInstancesType->property_statusMessage = NULL;
++ }
++
++
++
++ _rebootInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_statusMessage_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE);
++
++ return !_rebootInstancesType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_statusMessage_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesType_reset_statusMessage(_rebootInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_get_return(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, (axis2_bool_t)0);
++
++
++ return _rebootInstancesType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_return(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ if(_rebootInstancesType->is_valid_return &&
++ arg_return == _rebootInstancesType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_rebootInstancesType_reset_return(_rebootInstancesType, env);
++
++ _rebootInstancesType->property_return = arg_return;
++ _rebootInstancesType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_return(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++
++ _rebootInstancesType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_return_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE);
++
++ return !_rebootInstancesType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_return_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesType_reset_return(_rebootInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for instanceIds.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_rebootInstancesType_get_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL);
++
++
++ return _rebootInstancesType->property_instanceIds;
++ }
++
++ /**
++ * setter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ if(_rebootInstancesType->is_valid_instanceIds &&
++ arg_instanceIds == _rebootInstancesType->property_instanceIds)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_instanceIds, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_rebootInstancesType_reset_instanceIds(_rebootInstancesType, env);
++
++
++ if(NULL == arg_instanceIds)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _rebootInstancesType->property_instanceIds = arg_instanceIds;
++ if(non_nil_exists)
++ {
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of instanceIds.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_instanceIds_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, NULL);
++
++
++ if(_rebootInstancesType->property_instanceIds == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ if( _rebootInstancesType->is_valid_instanceIds &&
++ _rebootInstancesType->property_instanceIds &&
++
++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_instanceIds)
++ {
++ if(_rebootInstancesType->property_instanceIds != NULL)
++ {
++ size = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_rebootInstancesType->property_instanceIds == NULL)
++ {
++ _rebootInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds));
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_add_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_instanceIds)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_rebootInstancesType->property_instanceIds == NULL)
++ {
++ _rebootInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++ if(_rebootInstancesType->property_instanceIds == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_rebootInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds));
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_rebootInstancesType_sizeof_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, -1);
++ if(_rebootInstancesType->property_instanceIds == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_rebootInstancesType->property_instanceIds, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_remove_instanceIds_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_rebootInstancesType_set_instanceIds_nil_at(_rebootInstancesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++
++
++ if (_rebootInstancesType->property_instanceIds != NULL)
++ {
++ count = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_rebootInstancesType->property_instanceIds, env);
++ }
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceIds is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_instanceIds_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE);
++
++ return !_rebootInstancesType->is_valid_instanceIds;
++ }
++
++ /**
++ * Set instanceIds to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_rebootInstancesType_reset_instanceIds(_rebootInstancesType, env);
++ }
++
++
++ /**
++ * Check whether instanceIds is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_instanceIds_nil_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_TRUE);
++
++ return (_rebootInstancesType->is_valid_instanceIds == AXIS2_FALSE ||
++ NULL == _rebootInstancesType->property_instanceIds ||
++ NULL == axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i));
++ }
++
++ /**
++ * Set instanceIds to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds_nil_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _rebootInstancesType, AXIS2_FAILURE);
++
++ if(_rebootInstancesType->property_instanceIds == NULL ||
++ _rebootInstancesType->is_valid_instanceIds == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_rebootInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_rebootInstancesType->property_instanceIds == NULL)
++ {
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_rebootInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _rebootInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_rebootInstancesType->property_instanceIds , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_rebootInstancesType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_rebootInstancesType.h
+@@ -0,0 +1,538 @@
++
++
++ #ifndef ADB_REBOOTINSTANCESTYPE_H
++ #define ADB_REBOOTINSTANCESTYPE_H
++
++ /**
++ * adb_rebootInstancesType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_rebootInstancesType class
++ */
++ typedef struct adb_rebootInstancesType adb_rebootInstancesType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_rebootInstancesType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_rebootInstancesType_t object
++ */
++ adb_rebootInstancesType_t* AXIS2_CALL
++ adb_rebootInstancesType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_rebootInstancesType_t object
++ * @param _rebootInstancesType adb_rebootInstancesType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_free (
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_correlationId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_correlationId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_correlationId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_userId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_userId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_userId(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_statusMessage(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_statusMessage(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_statusMessage(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_get_return(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_return(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_return(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceIds. Deprecated for array types, Use adb_rebootInstancesType_get_instanceIds_at instead
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_rebootInstancesType_get_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceIds.Deprecated for array types, Use adb_rebootInstancesType_set_instanceIds_at
++ * or adb_rebootInstancesType_add_instanceIds instead.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds);
++
++ /**
++ * Resetter for instanceIds
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_reset_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of instanceIds.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_rebootInstancesType_get_instanceIds_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced)
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_instanceIds element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds);
++
++
++ /**
++ * Add to instanceIds.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_add_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds);
++
++ /**
++ * Get the size of the instanceIds array.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_rebootInstancesType_sizeof_instanceIds(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of instanceIds.
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_remove_instanceIds_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_correlationId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_userId_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_statusMessage_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_statusMessage_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_return_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceIds is nill
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_instanceIds_nil(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether instanceIds is nill at i
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_instanceIds_nil_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set instanceIds to nill at i
++ * @param _rebootInstancesType _ adb_rebootInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_set_instanceIds_nil_at(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_rebootInstancesType_deserialize(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_rebootInstancesType_declare_parent_namespaces(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _rebootInstancesType adb_rebootInstancesType_t object
++ * @param env pointer to environment struct
++ * @param rebootInstancesType_om_node node to serialize from
++ * @param rebootInstancesType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_rebootInstancesType_serialize(
++ adb_rebootInstancesType_t* _rebootInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t* rebootInstancesType_om_node, axiom_element_t *rebootInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_rebootInstancesType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_rebootInstancesType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_REBOOTINSTANCESTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesType.c
+@@ -0,0 +1,2085 @@
++
++
++ /**
++ * adb_describeResourcesType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describeResourcesType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describeResourcesType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describeResourcesType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_instanceTypes;
++
++
++ axis2_bool_t is_valid_instanceTypes;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_correlationId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_userId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_return_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes_nil_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describeResourcesType_t* AXIS2_CALL
++ adb_describeResourcesType_create(
++ const axutil_env_t *env)
++ {
++ adb_describeResourcesType_t *_describeResourcesType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describeResourcesType = (adb_describeResourcesType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describeResourcesType_t));
++
++ if(NULL == _describeResourcesType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describeResourcesType, 0, sizeof(adb_describeResourcesType_t));
++
++ _describeResourcesType->property_correlationId = NULL;
++ _describeResourcesType->is_valid_correlationId = AXIS2_FALSE;
++ _describeResourcesType->property_userId = NULL;
++ _describeResourcesType->is_valid_userId = AXIS2_FALSE;
++ _describeResourcesType->property_statusMessage = NULL;
++ _describeResourcesType->is_valid_statusMessage = AXIS2_FALSE;
++ _describeResourcesType->is_valid_return = AXIS2_FALSE;
++ _describeResourcesType->property_instanceTypes = NULL;
++ _describeResourcesType->is_valid_instanceTypes = AXIS2_FALSE;
++
++
++ return _describeResourcesType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_free (
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ adb_describeResourcesType_reset_correlationId(_describeResourcesType, env);
++ adb_describeResourcesType_reset_userId(_describeResourcesType, env);
++ adb_describeResourcesType_reset_statusMessage(_describeResourcesType, env);
++ adb_describeResourcesType_reset_return(_describeResourcesType, env);
++ adb_describeResourcesType_reset_instanceTypes(_describeResourcesType, env);
++
++
++ if(_describeResourcesType)
++ {
++ AXIS2_FREE(env->allocator, _describeResourcesType);
++ _describeResourcesType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_deserialize(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describeResourcesType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeResourcesType_set_correlationId(_describeResourcesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeResourcesType_set_correlationId(_describeResourcesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeResourcesType_set_userId(_describeResourcesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeResourcesType_set_userId(_describeResourcesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeResourcesType_set_statusMessage(_describeResourcesType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describeResourcesType_set_return(_describeResourcesType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describeResourcesType_set_return(_describeResourcesType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building instanceTypes array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building instanceTypes element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "instanceTypes", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ element = (void*)adb_virtualMachineType_create(env);
++
++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element, env,
++ ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instanceTypes ");
++ }
++ else
++ {
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceTypes ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 1)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceTypes (@minOccurs = '1') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describeResourcesType_set_instanceTypes(_describeResourcesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describeResourcesType_declare_parent_namespaces(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describeResourcesType_serialize(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describeResourcesType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describeResourcesType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describeResourcesType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describeResourcesType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesType->is_valid_instanceTypes)
++ {
++
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceTypes");
++ return NULL;
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceTypes")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceTypes")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing instanceTypes array
++ */
++ if (_describeResourcesType->property_instanceTypes != NULL)
++ {
++
++
++ sprintf(start_input_str, "<%s%sinstanceTypes",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sinstanceTypes>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing instanceTypes element
++ */
++
++
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_virtualMachineType_serialize((adb_virtualMachineType_t*)element,
++ env, current_node, parent_element,
++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesType_get_correlationId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL);
++
++
++ return _describeResourcesType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_correlationId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ if(_describeResourcesType->is_valid_correlationId &&
++ arg_correlationId == _describeResourcesType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesType_reset_correlationId(_describeResourcesType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describeResourcesType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describeResourcesType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_correlationId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeResourcesType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeResourcesType->property_correlationId);
++ _describeResourcesType->property_correlationId = NULL;
++ }
++
++
++
++ _describeResourcesType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_correlationId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE);
++
++ return !_describeResourcesType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_correlationId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesType_reset_correlationId(_describeResourcesType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesType_get_userId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL);
++
++
++ return _describeResourcesType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_userId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ if(_describeResourcesType->is_valid_userId &&
++ arg_userId == _describeResourcesType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesType_reset_userId(_describeResourcesType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describeResourcesType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describeResourcesType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_userId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeResourcesType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeResourcesType->property_userId);
++ _describeResourcesType->property_userId = NULL;
++ }
++
++
++
++ _describeResourcesType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_userId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE);
++
++ return !_describeResourcesType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_userId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesType_reset_userId(_describeResourcesType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesType_get_statusMessage(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL);
++
++
++ return _describeResourcesType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_statusMessage(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ if(_describeResourcesType->is_valid_statusMessage &&
++ arg_statusMessage == _describeResourcesType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesType_reset_statusMessage(_describeResourcesType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describeResourcesType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describeResourcesType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_statusMessage(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeResourcesType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeResourcesType->property_statusMessage);
++ _describeResourcesType->property_statusMessage = NULL;
++ }
++
++
++
++ _describeResourcesType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_statusMessage_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE);
++
++ return !_describeResourcesType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_statusMessage_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesType_reset_statusMessage(_describeResourcesType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_get_return(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, (axis2_bool_t)0);
++
++
++ return _describeResourcesType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_return(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ if(_describeResourcesType->is_valid_return &&
++ arg_return == _describeResourcesType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesType_reset_return(_describeResourcesType, env);
++
++ _describeResourcesType->property_return = arg_return;
++ _describeResourcesType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_return(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++
++ _describeResourcesType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_return_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE);
++
++ return !_describeResourcesType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_return_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesType_reset_return(_describeResourcesType, env);
++ }
++
++
++
++ /**
++ * getter for instanceTypes.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeResourcesType_get_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL);
++
++
++ return _describeResourcesType->property_instanceTypes;
++ }
++
++ /**
++ * setter for instanceTypes
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceTypes)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ if(_describeResourcesType->is_valid_instanceTypes &&
++ arg_instanceTypes == _describeResourcesType->property_instanceTypes)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_instanceTypes, env);
++
++ if (size < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceTypes has less than minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_instanceTypes, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if(NULL == arg_instanceTypes)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceTypes is being set to NULL, but it is not a nullable element");
++ return AXIS2_FAILURE;
++ }
++ adb_describeResourcesType_reset_instanceTypes(_describeResourcesType, env);
++
++
++ if(NULL == arg_instanceTypes)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesType->property_instanceTypes = arg_instanceTypes;
++ if(non_nil_exists)
++ {
++ _describeResourcesType->is_valid_instanceTypes = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of instanceTypes.
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_describeResourcesType_get_instanceTypes_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i)
++ {
++ adb_virtualMachineType_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, NULL);
++
++
++ if(_describeResourcesType->property_instanceTypes == NULL)
++ {
++ return (adb_virtualMachineType_t*)0;
++ }
++ ret_val = (adb_virtualMachineType_t*)axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of instanceTypes.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i,
++ adb_virtualMachineType_t* arg_instanceTypes)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ if( _describeResourcesType->is_valid_instanceTypes &&
++ _describeResourcesType->property_instanceTypes &&
++
++ arg_instanceTypes == (adb_virtualMachineType_t*)axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_instanceTypes)
++ {
++ if(_describeResourcesType->property_instanceTypes != NULL)
++ {
++ size = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceTypes is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeResourcesType->property_instanceTypes == NULL)
++ {
++ _describeResourcesType->property_instanceTypes = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_virtualMachineType_free((adb_virtualMachineType_t*)element, env);
++
++ }
++
++
++ axutil_array_list_set(_describeResourcesType->property_instanceTypes , env, i, arg_instanceTypes);
++ _describeResourcesType->is_valid_instanceTypes = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to instanceTypes.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_add_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceTypes)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_instanceTypes)
++ {
++
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++
++ }
++
++
++ if(_describeResourcesType->property_instanceTypes == NULL)
++ {
++ _describeResourcesType->property_instanceTypes = axutil_array_list_create(env, 10);
++ }
++ if(_describeResourcesType->property_instanceTypes == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceTypes");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describeResourcesType->property_instanceTypes , env, arg_instanceTypes);
++ _describeResourcesType->is_valid_instanceTypes = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the instanceTypes array.
++ */
++ int AXIS2_CALL
++ adb_describeResourcesType_sizeof_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, -1);
++ if(_describeResourcesType->property_instanceTypes == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describeResourcesType->property_instanceTypes, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_remove_instanceTypes_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describeResourcesType_set_instanceTypes_nil_at(_describeResourcesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for instanceTypes
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++
++
++ if (_describeResourcesType->property_instanceTypes != NULL)
++ {
++ count = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ adb_virtualMachineType_free((adb_virtualMachineType_t*)element, env);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describeResourcesType->property_instanceTypes, env);
++ }
++ _describeResourcesType->is_valid_instanceTypes = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceTypes is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_instanceTypes_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE);
++
++ return !_describeResourcesType->is_valid_instanceTypes;
++ }
++
++ /**
++ * Set instanceTypes to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesType_reset_instanceTypes(_describeResourcesType, env);
++ }
++
++
++ /**
++ * Check whether instanceTypes is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_instanceTypes_nil_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_TRUE);
++
++ return (_describeResourcesType->is_valid_instanceTypes == AXIS2_FALSE ||
++ NULL == _describeResourcesType->property_instanceTypes ||
++ NULL == axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i));
++ }
++
++ /**
++ * Set instanceTypes to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes_nil_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesType, AXIS2_FAILURE);
++
++ if(_describeResourcesType->property_instanceTypes == NULL ||
++ _describeResourcesType->is_valid_instanceTypes == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describeResourcesType->property_instanceTypes, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 1)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++ if(!non_nil_exists)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "All the elements in the array of instanceTypes is being set to NULL, but it is not a nullable or minOccurs=0 element");
++ return AXIS2_FAILURE;
++ }
++
++
++ if( k < 1)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceTypes is beinng set to be smaller than the specificed number of minOccurs(1)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeResourcesType->property_instanceTypes == NULL)
++ {
++ _describeResourcesType->is_valid_instanceTypes = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeResourcesType->property_instanceTypes, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_virtualMachineType_free((adb_virtualMachineType_t*)element, env);
++
++ }
++
++
++
++
++ axutil_array_list_set(_describeResourcesType->property_instanceTypes , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesType.h
+@@ -0,0 +1,540 @@
++
++
++ #ifndef ADB_DESCRIBERESOURCESTYPE_H
++ #define ADB_DESCRIBERESOURCESTYPE_H
++
++ /**
++ * adb_describeResourcesType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describeResourcesType class
++ */
++ typedef struct adb_describeResourcesType adb_describeResourcesType_t;
++
++
++ #include "adb_virtualMachineType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describeResourcesType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describeResourcesType_t object
++ */
++ adb_describeResourcesType_t* AXIS2_CALL
++ adb_describeResourcesType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describeResourcesType_t object
++ * @param _describeResourcesType adb_describeResourcesType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_free (
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesType_get_correlationId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_correlationId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_correlationId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesType_get_userId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_userId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_userId(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesType_get_statusMessage(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_statusMessage(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_statusMessage(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_get_return(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_return(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_return(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceTypes. Deprecated for array types, Use adb_describeResourcesType_get_instanceTypes_at instead
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return Array of adb_virtualMachineType_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeResourcesType_get_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceTypes.Deprecated for array types, Use adb_describeResourcesType_set_instanceTypes_at
++ * or adb_describeResourcesType_add_instanceTypes instead.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceTypes Array of adb_virtualMachineType_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceTypes);
++
++ /**
++ * Resetter for instanceTypes
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_reset_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of instanceTypes.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith adb_virtualMachineType_t* of the array
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_describeResourcesType_get_instanceTypes_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of instanceTypes. (If the ith already exist, it will be replaced)
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_instanceTypes element to set adb_virtualMachineType_t* to the array
++ * @return ith adb_virtualMachineType_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i,
++ adb_virtualMachineType_t* arg_instanceTypes);
++
++
++ /**
++ * Add to instanceTypes.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceTypes element to add adb_virtualMachineType_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_add_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceTypes);
++
++ /**
++ * Get the size of the instanceTypes array.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the instanceTypes array.
++ */
++ int AXIS2_CALL
++ adb_describeResourcesType_sizeof_instanceTypes(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of instanceTypes.
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_remove_instanceTypes_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_correlationId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_userId_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_statusMessage_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_statusMessage_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_return_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceTypes is nill
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_instanceTypes_nil(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether instanceTypes is nill at i
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_instanceTypes_nil_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set instanceTypes to nill at i
++ * @param _describeResourcesType _ adb_describeResourcesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_set_instanceTypes_nil_at(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesType_deserialize(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describeResourcesType_declare_parent_namespaces(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describeResourcesType adb_describeResourcesType_t object
++ * @param env pointer to environment struct
++ * @param describeResourcesType_om_node node to serialize from
++ * @param describeResourcesType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describeResourcesType_serialize(
++ adb_describeResourcesType_t* _describeResourcesType,
++ const axutil_env_t *env,
++ axiom_node_t* describeResourcesType_om_node, axiom_element_t *describeResourcesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describeResourcesType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBERESOURCESTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesResponseType.c
+@@ -0,0 +1,2076 @@
++
++
++ /**
++ * adb_terminateInstancesResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_terminateInstancesResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = terminateInstancesResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_terminateInstancesResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_isTerminated;
++
++
++ axis2_bool_t is_valid_isTerminated;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_correlationId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_userId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_return_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated_nil_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_terminateInstancesResponseType_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_terminateInstancesResponseType_t *_terminateInstancesResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _terminateInstancesResponseType = (adb_terminateInstancesResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_terminateInstancesResponseType_t));
++
++ if(NULL == _terminateInstancesResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_terminateInstancesResponseType, 0, sizeof(adb_terminateInstancesResponseType_t));
++
++ _terminateInstancesResponseType->property_correlationId = NULL;
++ _terminateInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _terminateInstancesResponseType->property_userId = NULL;
++ _terminateInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ _terminateInstancesResponseType->property_statusMessage = NULL;
++ _terminateInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _terminateInstancesResponseType->is_valid_return = AXIS2_FALSE;
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE;
++
++
++ return _terminateInstancesResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_free (
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ adb_terminateInstancesResponseType_reset_correlationId(_terminateInstancesResponseType, env);
++ adb_terminateInstancesResponseType_reset_userId(_terminateInstancesResponseType, env);
++ adb_terminateInstancesResponseType_reset_statusMessage(_terminateInstancesResponseType, env);
++ adb_terminateInstancesResponseType_reset_return(_terminateInstancesResponseType, env);
++ adb_terminateInstancesResponseType_reset_isTerminated(_terminateInstancesResponseType, env);
++
++
++ if(_terminateInstancesResponseType)
++ {
++ AXIS2_FREE(env->allocator, _terminateInstancesResponseType);
++ _terminateInstancesResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_deserialize(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for terminateInstancesResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_terminateInstancesResponseType_set_correlationId(_terminateInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_terminateInstancesResponseType_set_correlationId(_terminateInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_terminateInstancesResponseType_set_userId(_terminateInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_terminateInstancesResponseType_set_userId(_terminateInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_terminateInstancesResponseType_set_statusMessage(_terminateInstancesResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_terminateInstancesResponseType_set_return(_terminateInstancesResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_terminateInstancesResponseType_set_return(_terminateInstancesResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building isTerminated array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building isTerminated element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "isTerminated", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp (text_value , "true"))
++ {
++ element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t));
++ (*(axis2_bool_t*)element) = AXIS2_TRUE;
++ axutil_array_list_add_at(arr_list, env, i, (void*)element);
++ }
++ else
++ {
++ element = AXIS2_MALLOC(env->allocator,sizeof(axis2_bool_t));
++ (*(axis2_bool_t*)element) = AXIS2_FALSE;
++ axutil_array_list_add_at(arr_list, env, i, (void*)element);
++
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element isTerminated");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for isTerminated ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "isTerminated (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_terminateInstancesResponseType_set_isTerminated(_terminateInstancesResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_terminateInstancesResponseType_declare_parent_namespaces(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_serialize(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _terminateInstancesResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _terminateInstancesResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _terminateInstancesResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_terminateInstancesResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_terminateInstancesResponseType->is_valid_isTerminated)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("isTerminated")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("isTerminated")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing isTerminated array
++ */
++ if (_terminateInstancesResponseType->property_isTerminated != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sisTerminated>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sisTerminated>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing isTerminated element
++ */
++
++
++
++ strcpy(text_value_5, ((axis2_bool_t)element)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_correlationId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL);
++
++
++ return _terminateInstancesResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_correlationId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ if(_terminateInstancesResponseType->is_valid_correlationId &&
++ arg_correlationId == _terminateInstancesResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesResponseType_reset_correlationId(_terminateInstancesResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _terminateInstancesResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _terminateInstancesResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_correlationId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_terminateInstancesResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _terminateInstancesResponseType->property_correlationId);
++ _terminateInstancesResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _terminateInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_correlationId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE);
++
++ return !_terminateInstancesResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_correlationId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesResponseType_reset_correlationId(_terminateInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_userId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL);
++
++
++ return _terminateInstancesResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_userId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ if(_terminateInstancesResponseType->is_valid_userId &&
++ arg_userId == _terminateInstancesResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesResponseType_reset_userId(_terminateInstancesResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _terminateInstancesResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _terminateInstancesResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_userId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_terminateInstancesResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _terminateInstancesResponseType->property_userId);
++ _terminateInstancesResponseType->property_userId = NULL;
++ }
++
++
++
++ _terminateInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_userId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE);
++
++ return !_terminateInstancesResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_userId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesResponseType_reset_userId(_terminateInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_statusMessage(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL);
++
++
++ return _terminateInstancesResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_statusMessage(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ if(_terminateInstancesResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _terminateInstancesResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesResponseType_reset_statusMessage(_terminateInstancesResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _terminateInstancesResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _terminateInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_statusMessage(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_terminateInstancesResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _terminateInstancesResponseType->property_statusMessage);
++ _terminateInstancesResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _terminateInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_statusMessage_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE);
++
++ return !_terminateInstancesResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_statusMessage_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesResponseType_reset_statusMessage(_terminateInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_get_return(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, (axis2_bool_t)0);
++
++
++ return _terminateInstancesResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_return(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ if(_terminateInstancesResponseType->is_valid_return &&
++ arg_return == _terminateInstancesResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_terminateInstancesResponseType_reset_return(_terminateInstancesResponseType, env);
++
++ _terminateInstancesResponseType->property_return = arg_return;
++ _terminateInstancesResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_return(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++
++ _terminateInstancesResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_return_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE);
++
++ return !_terminateInstancesResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_return_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesResponseType_reset_return(_terminateInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for isTerminated.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, NULL);
++
++
++ return _terminateInstancesResponseType->property_isTerminated;
++ }
++
++ /**
++ * setter for isTerminated
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_isTerminated)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ if(_terminateInstancesResponseType->is_valid_isTerminated &&
++ arg_isTerminated == _terminateInstancesResponseType->property_isTerminated)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_isTerminated, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "isTerminated has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_isTerminated, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_terminateInstancesResponseType_reset_isTerminated(_terminateInstancesResponseType, env);
++
++
++ if(NULL == arg_isTerminated)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _terminateInstancesResponseType->property_isTerminated = arg_isTerminated;
++ if(non_nil_exists)
++ {
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of isTerminated.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_get_isTerminated_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_bool_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, (axis2_bool_t)0);
++
++
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ return (axis2_bool_t)0;
++ }
++ ret_val = (axis2_bool_t*)axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i);
++
++ if(ret_val)
++ {
++ return *ret_val;
++ }
++ return (axis2_bool_t)0;
++
++ }
++
++ /**
++ * Set the ith element of isTerminated.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i,
++ axis2_bool_t arg_isTerminated)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ axis2_bool_t* ptr_param_isTerminated;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ if( _terminateInstancesResponseType->is_valid_isTerminated &&
++ _terminateInstancesResponseType->property_isTerminated &&
++
++ arg_isTerminated == *((axis2_bool_t*)axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i)))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ non_nil_exists = AXIS2_TRUE; /* no way to check for nill for each elements for primitive types */
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of isTerminated is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ _terminateInstancesResponseType->property_isTerminated = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i);
++ if(NULL != element)
++ {
++
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE;
++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++ ptr_param_isTerminated = (axis2_bool_t*)
++ AXIS2_MALLOC(env->allocator, sizeof(axis2_bool_t));
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of isTerminated");
++ return AXIS2_FAILURE;
++
++ }
++ *ptr_param_isTerminated = arg_isTerminated;
++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, ptr_param_isTerminated);
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to isTerminated.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_add_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_isTerminated)
++ {
++ axis2_bool_t* ptr_param_isTerminated;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ _terminateInstancesResponseType->property_isTerminated = axutil_array_list_create(env, 10);
++ }
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for isTerminated");
++ return AXIS2_FAILURE;
++
++ }
++ ptr_param_isTerminated = (axis2_bool_t*)
++ AXIS2_MALLOC(env->allocator, sizeof(axis2_bool_t));
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for new value of isTerminated");
++ return AXIS2_FAILURE;
++
++ }
++ *ptr_param_isTerminated = arg_isTerminated;
++ axutil_array_list_add(_terminateInstancesResponseType->property_isTerminated , env, ptr_param_isTerminated);
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the isTerminated array.
++ */
++ int AXIS2_CALL
++ adb_terminateInstancesResponseType_sizeof_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, -1);
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_remove_isTerminated_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_terminateInstancesResponseType_set_isTerminated_nil_at(_terminateInstancesResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for isTerminated
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ if (_terminateInstancesResponseType->property_isTerminated != NULL)
++ {
++ count = axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_terminateInstancesResponseType->property_isTerminated, env);
++ }
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether isTerminated is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_isTerminated_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE);
++
++ return !_terminateInstancesResponseType->is_valid_isTerminated;
++ }
++
++ /**
++ * Set isTerminated to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_terminateInstancesResponseType_reset_isTerminated(_terminateInstancesResponseType, env);
++ }
++
++
++ /**
++ * Check whether isTerminated is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_isTerminated_nil_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_TRUE);
++
++ return (_terminateInstancesResponseType->is_valid_isTerminated == AXIS2_FALSE ||
++ NULL == _terminateInstancesResponseType->property_isTerminated ||
++ NULL == axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i));
++ }
++
++ /**
++ * Set isTerminated to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated_nil_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _terminateInstancesResponseType, AXIS2_FAILURE);
++
++ if(_terminateInstancesResponseType->property_isTerminated == NULL ||
++ _terminateInstancesResponseType->is_valid_isTerminated == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_terminateInstancesResponseType->property_isTerminated, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of isTerminated is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_terminateInstancesResponseType->property_isTerminated == NULL)
++ {
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_terminateInstancesResponseType->property_isTerminated, env, i);
++ if(NULL != element)
++ {
++
++
++
++
++ /* we keep primtives as pointers in arrasy, so need to free them */
++ AXIS2_FREE(env-> allocator, element);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _terminateInstancesResponseType->is_valid_isTerminated = AXIS2_FALSE;
++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_terminateInstancesResponseType->property_isTerminated , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_terminateInstancesResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_terminateInstancesResponseType.h
+@@ -0,0 +1,538 @@
++
++
++ #ifndef ADB_TERMINATEINSTANCESRESPONSETYPE_H
++ #define ADB_TERMINATEINSTANCESRESPONSETYPE_H
++
++ /**
++ * adb_terminateInstancesResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_terminateInstancesResponseType class
++ */
++ typedef struct adb_terminateInstancesResponseType adb_terminateInstancesResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_terminateInstancesResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_terminateInstancesResponseType_t object
++ */
++ adb_terminateInstancesResponseType_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_terminateInstancesResponseType_t object
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_free (
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_correlationId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_correlationId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_correlationId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_userId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_userId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_userId(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_statusMessage(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_statusMessage(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_statusMessage(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_get_return(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_return(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_return(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for isTerminated. Deprecated for array types, Use adb_terminateInstancesResponseType_get_isTerminated_at instead
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_bool_ts.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_get_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for isTerminated.Deprecated for array types, Use adb_terminateInstancesResponseType_set_isTerminated_at
++ * or adb_terminateInstancesResponseType_add_isTerminated instead.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_isTerminated Array of axis2_bool_ts.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_isTerminated);
++
++ /**
++ * Resetter for isTerminated
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_reset_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of isTerminated.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_bool_t of the array
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_get_isTerminated_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of isTerminated. (If the ith already exist, it will be replaced)
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_isTerminated element to set axis2_bool_t to the array
++ * @return ith axis2_bool_t of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i,
++ axis2_bool_t arg_isTerminated);
++
++
++ /**
++ * Add to isTerminated.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_isTerminated element to add axis2_bool_t to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_add_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_isTerminated);
++
++ /**
++ * Get the size of the isTerminated array.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the isTerminated array.
++ */
++ int AXIS2_CALL
++ adb_terminateInstancesResponseType_sizeof_isTerminated(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of isTerminated.
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_remove_isTerminated_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_correlationId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_userId_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_statusMessage_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_statusMessage_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_return_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether isTerminated is nill
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_isTerminated_nil(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether isTerminated is nill at i
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_isTerminated_nil_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set isTerminated to nill at i
++ * @param _terminateInstancesResponseType _ adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_set_isTerminated_nil_at(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_terminateInstancesResponseType_deserialize(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_terminateInstancesResponseType_declare_parent_namespaces(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _terminateInstancesResponseType adb_terminateInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param terminateInstancesResponseType_om_node node to serialize from
++ * @param terminateInstancesResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_terminateInstancesResponseType_serialize(
++ adb_terminateInstancesResponseType_t* _terminateInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* terminateInstancesResponseType_om_node, axiom_element_t *terminateInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_terminateInstancesResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_terminateInstancesResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_TERMINATEINSTANCESRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkType.c
+@@ -0,0 +1,3053 @@
++
++
++ /**
++ * adb_startNetworkType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_startNetworkType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = startNetworkType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_startNetworkType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ int property_vlan;
++
++
++ axis2_bool_t is_valid_vlan;
++
++
++ axis2_char_t* property_netName;
++
++
++ axis2_bool_t is_valid_netName;
++
++
++ axis2_char_t* property_nameserver;
++
++
++ axis2_bool_t is_valid_nameserver;
++
++
++ axutil_array_list_t* property_clusterControllers;
++
++
++ axis2_bool_t is_valid_clusterControllers;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_correlationId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_userId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_return_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_vlan_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_netName_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_nameserver_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers_nil_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_startNetworkType_t* AXIS2_CALL
++ adb_startNetworkType_create(
++ const axutil_env_t *env)
++ {
++ adb_startNetworkType_t *_startNetworkType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _startNetworkType = (adb_startNetworkType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_startNetworkType_t));
++
++ if(NULL == _startNetworkType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_startNetworkType, 0, sizeof(adb_startNetworkType_t));
++
++ _startNetworkType->property_correlationId = NULL;
++ _startNetworkType->is_valid_correlationId = AXIS2_FALSE;
++ _startNetworkType->property_userId = NULL;
++ _startNetworkType->is_valid_userId = AXIS2_FALSE;
++ _startNetworkType->property_statusMessage = NULL;
++ _startNetworkType->is_valid_statusMessage = AXIS2_FALSE;
++ _startNetworkType->is_valid_return = AXIS2_FALSE;
++ _startNetworkType->is_valid_vlan = AXIS2_FALSE;
++ _startNetworkType->property_netName = NULL;
++ _startNetworkType->is_valid_netName = AXIS2_FALSE;
++ _startNetworkType->property_nameserver = NULL;
++ _startNetworkType->is_valid_nameserver = AXIS2_FALSE;
++ _startNetworkType->property_clusterControllers = NULL;
++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE;
++
++
++ return _startNetworkType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_free (
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ adb_startNetworkType_reset_correlationId(_startNetworkType, env);
++ adb_startNetworkType_reset_userId(_startNetworkType, env);
++ adb_startNetworkType_reset_statusMessage(_startNetworkType, env);
++ adb_startNetworkType_reset_return(_startNetworkType, env);
++ adb_startNetworkType_reset_vlan(_startNetworkType, env);
++ adb_startNetworkType_reset_netName(_startNetworkType, env);
++ adb_startNetworkType_reset_nameserver(_startNetworkType, env);
++ adb_startNetworkType_reset_clusterControllers(_startNetworkType, env);
++
++
++ if(_startNetworkType)
++ {
++ AXIS2_FREE(env->allocator, _startNetworkType);
++ _startNetworkType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_deserialize(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for startNetworkType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkType_set_correlationId(_startNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_startNetworkType_set_correlationId(_startNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkType_set_userId(_startNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_startNetworkType_set_userId(_startNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkType_set_statusMessage(_startNetworkType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_startNetworkType_set_return(_startNetworkType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_startNetworkType_set_return(_startNetworkType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building vlan element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkType_set_vlan(_startNetworkType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building netName element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "netName", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkType_set_netName(_startNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element netName");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_startNetworkType_set_netName(_startNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netName ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building nameserver element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "nameserver", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_startNetworkType_set_nameserver(_startNetworkType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element nameserver");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_startNetworkType_set_nameserver(_startNetworkType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nameserver ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building clusterControllers array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building clusterControllers element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "clusterControllers", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element clusterControllers");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for clusterControllers ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_startNetworkType_set_clusterControllers(_startNetworkType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_startNetworkType_declare_parent_namespaces(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_startNetworkType_serialize(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *text_value_7;
++ axis2_char_t *text_value_7_temp;
++
++ axis2_char_t *text_value_8;
++ axis2_char_t *text_value_8_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _startNetworkType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _startNetworkType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _startNetworkType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_startNetworkType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_vlan)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("vlan")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("vlan")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing vlan element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%svlan>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _startNetworkType->property_vlan);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_netName)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("netName")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("netName")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing netName element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%snetName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%snetName>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_6 = _startNetworkType->property_netName;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_nameserver)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("nameserver")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("nameserver")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing nameserver element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%snameserver>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%snameserver>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_7 = _startNetworkType->property_nameserver;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
++ if (text_value_7_temp)
++ {
++ axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
++ AXIS2_FREE(env->allocator, text_value_7_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_startNetworkType->is_valid_clusterControllers)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("clusterControllers")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("clusterControllers")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing clusterControllers array
++ */
++ if (_startNetworkType->property_clusterControllers != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sclusterControllers>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sclusterControllers>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_startNetworkType->property_clusterControllers, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing clusterControllers element
++ */
++
++
++
++ text_value_8 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
++ if (text_value_8_temp)
++ {
++ axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
++ AXIS2_FREE(env->allocator, text_value_8_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_correlationId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ return _startNetworkType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_correlationId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_correlationId &&
++ arg_correlationId == _startNetworkType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkType_reset_correlationId(_startNetworkType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _startNetworkType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_correlationId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkType->property_correlationId);
++ _startNetworkType->property_correlationId = NULL;
++ }
++
++
++
++ _startNetworkType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_correlationId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_correlationId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_correlationId(_startNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_userId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ return _startNetworkType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_userId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_userId &&
++ arg_userId == _startNetworkType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkType_reset_userId(_startNetworkType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _startNetworkType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_userId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkType->property_userId);
++ _startNetworkType->property_userId = NULL;
++ }
++
++
++
++ _startNetworkType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_userId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_userId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_userId(_startNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_statusMessage(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ return _startNetworkType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_statusMessage(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_statusMessage &&
++ arg_statusMessage == _startNetworkType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkType_reset_statusMessage(_startNetworkType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _startNetworkType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_statusMessage(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkType->property_statusMessage);
++ _startNetworkType->property_statusMessage = NULL;
++ }
++
++
++
++ _startNetworkType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_statusMessage_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_statusMessage_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_statusMessage(_startNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_get_return(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, (axis2_bool_t)0);
++
++
++ return _startNetworkType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_return(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_return &&
++ arg_return == _startNetworkType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkType_reset_return(_startNetworkType, env);
++
++ _startNetworkType->property_return = arg_return;
++ _startNetworkType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_return(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++ _startNetworkType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_return_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_return_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_return(_startNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for vlan.
++ */
++ int AXIS2_CALL
++ adb_startNetworkType_get_vlan(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, (int)0);
++
++
++ return _startNetworkType->property_vlan;
++ }
++
++ /**
++ * setter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_vlan(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const int arg_vlan)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_vlan &&
++ arg_vlan == _startNetworkType->property_vlan)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkType_reset_vlan(_startNetworkType, env);
++
++ _startNetworkType->property_vlan = arg_vlan;
++ _startNetworkType->is_valid_vlan = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for vlan
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_vlan(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++ _startNetworkType->is_valid_vlan = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether vlan is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_vlan_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_vlan;
++ }
++
++ /**
++ * Set vlan to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_vlan_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_vlan(_startNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for netName.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_netName(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ return _startNetworkType->property_netName;
++ }
++
++ /**
++ * setter for netName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_netName(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netName)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_netName &&
++ arg_netName == _startNetworkType->property_netName)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkType_reset_netName(_startNetworkType, env);
++
++
++ if(NULL == arg_netName)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkType->property_netName = (axis2_char_t *)axutil_strdup(env, arg_netName);
++ if(NULL == _startNetworkType->property_netName)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for netName");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkType->is_valid_netName = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for netName
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_netName(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkType->property_netName != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkType->property_netName);
++ _startNetworkType->property_netName = NULL;
++ }
++
++
++
++ _startNetworkType->is_valid_netName = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether netName is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_netName_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_netName;
++ }
++
++ /**
++ * Set netName to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_netName_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_netName(_startNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for nameserver.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_nameserver(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ return _startNetworkType->property_nameserver;
++ }
++
++ /**
++ * setter for nameserver
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_nameserver(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_nameserver)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_nameserver &&
++ arg_nameserver == _startNetworkType->property_nameserver)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_startNetworkType_reset_nameserver(_startNetworkType, env);
++
++
++ if(NULL == arg_nameserver)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkType->property_nameserver = (axis2_char_t *)axutil_strdup(env, arg_nameserver);
++ if(NULL == _startNetworkType->property_nameserver)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nameserver");
++ return AXIS2_FAILURE;
++ }
++ _startNetworkType->is_valid_nameserver = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for nameserver
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_nameserver(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_startNetworkType->property_nameserver != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _startNetworkType->property_nameserver);
++ _startNetworkType->property_nameserver = NULL;
++ }
++
++
++
++ _startNetworkType->is_valid_nameserver = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether nameserver is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_nameserver_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_nameserver;
++ }
++
++ /**
++ * Set nameserver to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_nameserver_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_nameserver(_startNetworkType, env);
++ }
++
++
++
++ /**
++ * getter for clusterControllers.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_startNetworkType_get_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ return _startNetworkType->property_clusterControllers;
++ }
++
++ /**
++ * setter for clusterControllers
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_clusterControllers)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->is_valid_clusterControllers &&
++ arg_clusterControllers == _startNetworkType->property_clusterControllers)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_clusterControllers, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "clusterControllers has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_clusterControllers, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_startNetworkType_reset_clusterControllers(_startNetworkType, env);
++
++
++ if(NULL == arg_clusterControllers)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _startNetworkType->property_clusterControllers = arg_clusterControllers;
++ if(non_nil_exists)
++ {
++ _startNetworkType->is_valid_clusterControllers = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of clusterControllers.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_clusterControllers_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, NULL);
++
++
++ if(_startNetworkType->property_clusterControllers == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of clusterControllers.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_clusterControllers)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if( _startNetworkType->is_valid_clusterControllers &&
++ _startNetworkType->property_clusterControllers &&
++
++ arg_clusterControllers == (axis2_char_t*)axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_clusterControllers)
++ {
++ if(_startNetworkType->property_clusterControllers != NULL)
++ {
++ size = axutil_array_list_size(_startNetworkType->property_clusterControllers, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_startNetworkType->property_clusterControllers == NULL)
++ {
++ _startNetworkType->property_clusterControllers = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE;
++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, axutil_strdup(env, arg_clusterControllers));
++ _startNetworkType->is_valid_clusterControllers = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to clusterControllers.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_add_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_clusterControllers)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_clusterControllers)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_startNetworkType->property_clusterControllers == NULL)
++ {
++ _startNetworkType->property_clusterControllers = axutil_array_list_create(env, 10);
++ }
++ if(_startNetworkType->property_clusterControllers == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for clusterControllers");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_startNetworkType->property_clusterControllers , env, axutil_strdup(env, arg_clusterControllers));
++ _startNetworkType->is_valid_clusterControllers = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the clusterControllers array.
++ */
++ int AXIS2_CALL
++ adb_startNetworkType_sizeof_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, -1);
++ if(_startNetworkType->property_clusterControllers == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_startNetworkType->property_clusterControllers, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_remove_clusterControllers_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_startNetworkType_set_clusterControllers_nil_at(_startNetworkType, env, i);
++ }
++
++
++
++ /**
++ * resetter for clusterControllers
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++
++
++ if (_startNetworkType->property_clusterControllers != NULL)
++ {
++ count = axutil_array_list_size(_startNetworkType->property_clusterControllers, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_startNetworkType->property_clusterControllers, env);
++ }
++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether clusterControllers is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_clusterControllers_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return !_startNetworkType->is_valid_clusterControllers;
++ }
++
++ /**
++ * Set clusterControllers to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env)
++ {
++ return adb_startNetworkType_reset_clusterControllers(_startNetworkType, env);
++ }
++
++
++ /**
++ * Check whether clusterControllers is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_clusterControllers_nil_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_TRUE);
++
++ return (_startNetworkType->is_valid_clusterControllers == AXIS2_FALSE ||
++ NULL == _startNetworkType->property_clusterControllers ||
++ NULL == axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i));
++ }
++
++ /**
++ * Set clusterControllers to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers_nil_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _startNetworkType, AXIS2_FAILURE);
++
++ if(_startNetworkType->property_clusterControllers == NULL ||
++ _startNetworkType->is_valid_clusterControllers == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_startNetworkType->property_clusterControllers, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of clusterControllers is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_startNetworkType->property_clusterControllers == NULL)
++ {
++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_startNetworkType->property_clusterControllers, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _startNetworkType->is_valid_clusterControllers = AXIS2_FALSE;
++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_startNetworkType->property_clusterControllers , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_startNetworkType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_startNetworkType.h
+@@ -0,0 +1,694 @@
++
++
++ #ifndef ADB_STARTNETWORKTYPE_H
++ #define ADB_STARTNETWORKTYPE_H
++
++ /**
++ * adb_startNetworkType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_startNetworkType class
++ */
++ typedef struct adb_startNetworkType adb_startNetworkType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_startNetworkType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_startNetworkType_t object
++ */
++ adb_startNetworkType_t* AXIS2_CALL
++ adb_startNetworkType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_startNetworkType_t object
++ * @param _startNetworkType adb_startNetworkType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_free (
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_correlationId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_correlationId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_correlationId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_userId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_userId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_userId(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_statusMessage(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_statusMessage(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_statusMessage(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_get_return(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_return(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_return(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for vlan.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_startNetworkType_get_vlan(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for vlan.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_vlan int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_vlan(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const int arg_vlan);
++
++ /**
++ * Resetter for vlan
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_vlan(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for netName.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_netName(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for netName.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_netName axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_netName(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_netName);
++
++ /**
++ * Resetter for netName
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_netName(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for nameserver.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_nameserver(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for nameserver.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_nameserver axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_nameserver(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_nameserver);
++
++ /**
++ * Resetter for nameserver
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_nameserver(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for clusterControllers. Deprecated for array types, Use adb_startNetworkType_get_clusterControllers_at instead
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_startNetworkType_get_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for clusterControllers.Deprecated for array types, Use adb_startNetworkType_set_clusterControllers_at
++ * or adb_startNetworkType_add_clusterControllers instead.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_clusterControllers Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_clusterControllers);
++
++ /**
++ * Resetter for clusterControllers
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_reset_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of clusterControllers.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_startNetworkType_get_clusterControllers_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of clusterControllers. (If the ith already exist, it will be replaced)
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_clusterControllers element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_clusterControllers);
++
++
++ /**
++ * Add to clusterControllers.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param arg_clusterControllers element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_add_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_clusterControllers);
++
++ /**
++ * Get the size of the clusterControllers array.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the clusterControllers array.
++ */
++ int AXIS2_CALL
++ adb_startNetworkType_sizeof_clusterControllers(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of clusterControllers.
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_remove_clusterControllers_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_correlationId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_userId_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_statusMessage_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_statusMessage_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_return_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether vlan is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_vlan_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether netName is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_netName_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether nameserver is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_nameserver_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether clusterControllers is nill
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_clusterControllers_nil(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether clusterControllers is nill at i
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_clusterControllers_nil_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set clusterControllers to nill at i
++ * @param _startNetworkType _ adb_startNetworkType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_set_clusterControllers_nil_at(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_startNetworkType_deserialize(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_startNetworkType_declare_parent_namespaces(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _startNetworkType adb_startNetworkType_t object
++ * @param env pointer to environment struct
++ * @param startNetworkType_om_node node to serialize from
++ * @param startNetworkType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_startNetworkType_serialize(
++ adb_startNetworkType_t* _startNetworkType,
++ const axutil_env_t *env,
++ axiom_node_t* startNetworkType_om_node, axiom_element_t *startNetworkType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_startNetworkType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_startNetworkType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_STARTNETWORKTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesResponseType.c
+@@ -0,0 +1,2845 @@
++
++
++ /**
++ * adb_describePublicAddressesResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describePublicAddressesResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describePublicAddressesResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describePublicAddressesResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_sourceAddresses;
++
++
++ axis2_bool_t is_valid_sourceAddresses;
++
++
++ axutil_array_list_t* property_destAddresses;
++
++
++ axis2_bool_t is_valid_destAddresses;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_correlationId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_userId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_return_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describePublicAddressesResponseType_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_describePublicAddressesResponseType_t *_describePublicAddressesResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describePublicAddressesResponseType = (adb_describePublicAddressesResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describePublicAddressesResponseType_t));
++
++ if(NULL == _describePublicAddressesResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describePublicAddressesResponseType, 0, sizeof(adb_describePublicAddressesResponseType_t));
++
++ _describePublicAddressesResponseType->property_correlationId = NULL;
++ _describePublicAddressesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _describePublicAddressesResponseType->property_userId = NULL;
++ _describePublicAddressesResponseType->is_valid_userId = AXIS2_FALSE;
++ _describePublicAddressesResponseType->property_statusMessage = NULL;
++ _describePublicAddressesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _describePublicAddressesResponseType->is_valid_return = AXIS2_FALSE;
++ _describePublicAddressesResponseType->property_sourceAddresses = NULL;
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE;
++ _describePublicAddressesResponseType->property_destAddresses = NULL;
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE;
++
++
++ return _describePublicAddressesResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_free (
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ adb_describePublicAddressesResponseType_reset_correlationId(_describePublicAddressesResponseType, env);
++ adb_describePublicAddressesResponseType_reset_userId(_describePublicAddressesResponseType, env);
++ adb_describePublicAddressesResponseType_reset_statusMessage(_describePublicAddressesResponseType, env);
++ adb_describePublicAddressesResponseType_reset_return(_describePublicAddressesResponseType, env);
++ adb_describePublicAddressesResponseType_reset_sourceAddresses(_describePublicAddressesResponseType, env);
++ adb_describePublicAddressesResponseType_reset_destAddresses(_describePublicAddressesResponseType, env);
++
++
++ if(_describePublicAddressesResponseType)
++ {
++ AXIS2_FREE(env->allocator, _describePublicAddressesResponseType);
++ _describePublicAddressesResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_deserialize(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describePublicAddressesResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describePublicAddressesResponseType_set_correlationId(_describePublicAddressesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describePublicAddressesResponseType_set_correlationId(_describePublicAddressesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describePublicAddressesResponseType_set_userId(_describePublicAddressesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describePublicAddressesResponseType_set_userId(_describePublicAddressesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describePublicAddressesResponseType_set_statusMessage(_describePublicAddressesResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describePublicAddressesResponseType_set_return(_describePublicAddressesResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describePublicAddressesResponseType_set_return(_describePublicAddressesResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building sourceAddresses array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building sourceAddresses element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "sourceAddresses", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element sourceAddresses");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for sourceAddresses ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceAddresses (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describePublicAddressesResponseType_set_sourceAddresses(_describePublicAddressesResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building destAddresses array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building destAddresses element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "destAddresses", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element destAddresses");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for destAddresses ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "destAddresses (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describePublicAddressesResponseType_set_destAddresses(_describePublicAddressesResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describePublicAddressesResponseType_declare_parent_namespaces(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_serialize(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describePublicAddressesResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describePublicAddressesResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describePublicAddressesResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describePublicAddressesResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesResponseType->is_valid_sourceAddresses)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("sourceAddresses")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("sourceAddresses")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing sourceAddresses array
++ */
++ if (_describePublicAddressesResponseType->property_sourceAddresses != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%ssourceAddresses>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%ssourceAddresses>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing sourceAddresses element
++ */
++
++
++
++ text_value_5 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describePublicAddressesResponseType->is_valid_destAddresses)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("destAddresses")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("destAddresses")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing destAddresses array
++ */
++ if (_describePublicAddressesResponseType->property_destAddresses != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sdestAddresses>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sdestAddresses>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing destAddresses element
++ */
++
++
++
++ text_value_6 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_correlationId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ return _describePublicAddressesResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_correlationId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->is_valid_correlationId &&
++ arg_correlationId == _describePublicAddressesResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesResponseType_reset_correlationId(_describePublicAddressesResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describePublicAddressesResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describePublicAddressesResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_correlationId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describePublicAddressesResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describePublicAddressesResponseType->property_correlationId);
++ _describePublicAddressesResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _describePublicAddressesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_correlationId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return !_describePublicAddressesResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_correlationId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesResponseType_reset_correlationId(_describePublicAddressesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_userId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ return _describePublicAddressesResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_userId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->is_valid_userId &&
++ arg_userId == _describePublicAddressesResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesResponseType_reset_userId(_describePublicAddressesResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describePublicAddressesResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describePublicAddressesResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_userId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describePublicAddressesResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describePublicAddressesResponseType->property_userId);
++ _describePublicAddressesResponseType->property_userId = NULL;
++ }
++
++
++
++ _describePublicAddressesResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_userId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return !_describePublicAddressesResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_userId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesResponseType_reset_userId(_describePublicAddressesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_statusMessage(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ return _describePublicAddressesResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_statusMessage(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _describePublicAddressesResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesResponseType_reset_statusMessage(_describePublicAddressesResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describePublicAddressesResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describePublicAddressesResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_statusMessage(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describePublicAddressesResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describePublicAddressesResponseType->property_statusMessage);
++ _describePublicAddressesResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _describePublicAddressesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_statusMessage_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return !_describePublicAddressesResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_statusMessage_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesResponseType_reset_statusMessage(_describePublicAddressesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_return(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, (axis2_bool_t)0);
++
++
++ return _describePublicAddressesResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_return(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->is_valid_return &&
++ arg_return == _describePublicAddressesResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describePublicAddressesResponseType_reset_return(_describePublicAddressesResponseType, env);
++
++ _describePublicAddressesResponseType->property_return = arg_return;
++ _describePublicAddressesResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_return(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++ _describePublicAddressesResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_return_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return !_describePublicAddressesResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_return_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesResponseType_reset_return(_describePublicAddressesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for sourceAddresses.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ return _describePublicAddressesResponseType->property_sourceAddresses;
++ }
++
++ /**
++ * setter for sourceAddresses
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_sourceAddresses)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->is_valid_sourceAddresses &&
++ arg_sourceAddresses == _describePublicAddressesResponseType->property_sourceAddresses)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_sourceAddresses, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "sourceAddresses has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_sourceAddresses, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describePublicAddressesResponseType_reset_sourceAddresses(_describePublicAddressesResponseType, env);
++
++
++ if(NULL == arg_sourceAddresses)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesResponseType->property_sourceAddresses = arg_sourceAddresses;
++ if(non_nil_exists)
++ {
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of sourceAddresses.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_sourceAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of sourceAddresses.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_sourceAddresses)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if( _describePublicAddressesResponseType->is_valid_sourceAddresses &&
++ _describePublicAddressesResponseType->property_sourceAddresses &&
++
++ arg_sourceAddresses == (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_sourceAddresses)
++ {
++ if(_describePublicAddressesResponseType->property_sourceAddresses != NULL)
++ {
++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceAddresses is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL)
++ {
++ _describePublicAddressesResponseType->property_sourceAddresses = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE;
++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, axutil_strdup(env, arg_sourceAddresses));
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to sourceAddresses.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_add_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_sourceAddresses)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_sourceAddresses)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL)
++ {
++ _describePublicAddressesResponseType->property_sourceAddresses = axutil_array_list_create(env, 10);
++ }
++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for sourceAddresses");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describePublicAddressesResponseType->property_sourceAddresses , env, axutil_strdup(env, arg_sourceAddresses));
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the sourceAddresses array.
++ */
++ int AXIS2_CALL
++ adb_describePublicAddressesResponseType_sizeof_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, -1);
++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_remove_sourceAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at(_describePublicAddressesResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for sourceAddresses
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++
++ if (_describePublicAddressesResponseType->property_sourceAddresses != NULL)
++ {
++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describePublicAddressesResponseType->property_sourceAddresses, env);
++ }
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether sourceAddresses is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return !_describePublicAddressesResponseType->is_valid_sourceAddresses;
++ }
++
++ /**
++ * Set sourceAddresses to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesResponseType_reset_sourceAddresses(_describePublicAddressesResponseType, env);
++ }
++
++
++ /**
++ * Check whether sourceAddresses is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return (_describePublicAddressesResponseType->is_valid_sourceAddresses == AXIS2_FALSE ||
++ NULL == _describePublicAddressesResponseType->property_sourceAddresses ||
++ NULL == axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i));
++ }
++
++ /**
++ * Set sourceAddresses to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL ||
++ _describePublicAddressesResponseType->is_valid_sourceAddresses == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_sourceAddresses, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of sourceAddresses is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describePublicAddressesResponseType->property_sourceAddresses == NULL)
++ {
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_sourceAddresses, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describePublicAddressesResponseType->is_valid_sourceAddresses = AXIS2_FALSE;
++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describePublicAddressesResponseType->property_sourceAddresses , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for destAddresses.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ return _describePublicAddressesResponseType->property_destAddresses;
++ }
++
++ /**
++ * setter for destAddresses
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_destAddresses)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->is_valid_destAddresses &&
++ arg_destAddresses == _describePublicAddressesResponseType->property_destAddresses)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_destAddresses, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "destAddresses has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_destAddresses, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describePublicAddressesResponseType_reset_destAddresses(_describePublicAddressesResponseType, env);
++
++
++ if(NULL == arg_destAddresses)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describePublicAddressesResponseType->property_destAddresses = arg_destAddresses;
++ if(non_nil_exists)
++ {
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of destAddresses.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_destAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, NULL);
++
++
++ if(_describePublicAddressesResponseType->property_destAddresses == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of destAddresses.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_destAddresses)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if( _describePublicAddressesResponseType->is_valid_destAddresses &&
++ _describePublicAddressesResponseType->property_destAddresses &&
++
++ arg_destAddresses == (axis2_char_t*)axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_destAddresses)
++ {
++ if(_describePublicAddressesResponseType->property_destAddresses != NULL)
++ {
++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of destAddresses is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describePublicAddressesResponseType->property_destAddresses == NULL)
++ {
++ _describePublicAddressesResponseType->property_destAddresses = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE;
++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, axutil_strdup(env, arg_destAddresses));
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to destAddresses.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_add_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_destAddresses)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_destAddresses)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describePublicAddressesResponseType->property_destAddresses == NULL)
++ {
++ _describePublicAddressesResponseType->property_destAddresses = axutil_array_list_create(env, 10);
++ }
++ if(_describePublicAddressesResponseType->property_destAddresses == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for destAddresses");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describePublicAddressesResponseType->property_destAddresses , env, axutil_strdup(env, arg_destAddresses));
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the destAddresses array.
++ */
++ int AXIS2_CALL
++ adb_describePublicAddressesResponseType_sizeof_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, -1);
++ if(_describePublicAddressesResponseType->property_destAddresses == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_remove_destAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describePublicAddressesResponseType_set_destAddresses_nil_at(_describePublicAddressesResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for destAddresses
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++
++
++ if (_describePublicAddressesResponseType->property_destAddresses != NULL)
++ {
++ count = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describePublicAddressesResponseType->property_destAddresses, env);
++ }
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether destAddresses is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_destAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return !_describePublicAddressesResponseType->is_valid_destAddresses;
++ }
++
++ /**
++ * Set destAddresses to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describePublicAddressesResponseType_reset_destAddresses(_describePublicAddressesResponseType, env);
++ }
++
++
++ /**
++ * Check whether destAddresses is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_destAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_TRUE);
++
++ return (_describePublicAddressesResponseType->is_valid_destAddresses == AXIS2_FALSE ||
++ NULL == _describePublicAddressesResponseType->property_destAddresses ||
++ NULL == axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i));
++ }
++
++ /**
++ * Set destAddresses to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describePublicAddressesResponseType, AXIS2_FAILURE);
++
++ if(_describePublicAddressesResponseType->property_destAddresses == NULL ||
++ _describePublicAddressesResponseType->is_valid_destAddresses == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describePublicAddressesResponseType->property_destAddresses, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of destAddresses is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describePublicAddressesResponseType->property_destAddresses == NULL)
++ {
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describePublicAddressesResponseType->property_destAddresses, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describePublicAddressesResponseType->is_valid_destAddresses = AXIS2_FALSE;
++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describePublicAddressesResponseType->property_destAddresses , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describePublicAddressesResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describePublicAddressesResponseType.h
+@@ -0,0 +1,682 @@
++
++
++ #ifndef ADB_DESCRIBEPUBLICADDRESSESRESPONSETYPE_H
++ #define ADB_DESCRIBEPUBLICADDRESSESRESPONSETYPE_H
++
++ /**
++ * adb_describePublicAddressesResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describePublicAddressesResponseType class
++ */
++ typedef struct adb_describePublicAddressesResponseType adb_describePublicAddressesResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describePublicAddressesResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describePublicAddressesResponseType_t object
++ */
++ adb_describePublicAddressesResponseType_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describePublicAddressesResponseType_t object
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_free (
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_correlationId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_correlationId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_correlationId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_userId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_userId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_userId(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_statusMessage(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_statusMessage(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_statusMessage(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_return(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_return(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_return(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for sourceAddresses. Deprecated for array types, Use adb_describePublicAddressesResponseType_get_sourceAddresses_at instead
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for sourceAddresses.Deprecated for array types, Use adb_describePublicAddressesResponseType_set_sourceAddresses_at
++ * or adb_describePublicAddressesResponseType_add_sourceAddresses instead.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_sourceAddresses Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_sourceAddresses);
++
++ /**
++ * Resetter for sourceAddresses
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for destAddresses. Deprecated for array types, Use adb_describePublicAddressesResponseType_get_destAddresses_at instead
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for destAddresses.Deprecated for array types, Use adb_describePublicAddressesResponseType_set_destAddresses_at
++ * or adb_describePublicAddressesResponseType_add_destAddresses instead.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_destAddresses Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_destAddresses);
++
++ /**
++ * Resetter for destAddresses
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_reset_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of sourceAddresses.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_sourceAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of sourceAddresses. (If the ith already exist, it will be replaced)
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_sourceAddresses element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_sourceAddresses);
++
++
++ /**
++ * Add to sourceAddresses.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_sourceAddresses element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_add_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_sourceAddresses);
++
++ /**
++ * Get the size of the sourceAddresses array.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the sourceAddresses array.
++ */
++ int AXIS2_CALL
++ adb_describePublicAddressesResponseType_sizeof_sourceAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of sourceAddresses.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_remove_sourceAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of destAddresses.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_get_destAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of destAddresses. (If the ith already exist, it will be replaced)
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_destAddresses element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_destAddresses);
++
++
++ /**
++ * Add to destAddresses.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_destAddresses element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_add_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_destAddresses);
++
++ /**
++ * Get the size of the destAddresses array.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the destAddresses array.
++ */
++ int AXIS2_CALL
++ adb_describePublicAddressesResponseType_sizeof_destAddresses(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of destAddresses.
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_remove_destAddresses_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_correlationId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_userId_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_statusMessage_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_statusMessage_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_return_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether sourceAddresses is nill
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether destAddresses is nill
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_destAddresses_nil(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether sourceAddresses is nill at i
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_sourceAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set sourceAddresses to nill at i
++ * @param _describePublicAddressesResponseType _ adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_sourceAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether destAddresses is nill at i
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_destAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set destAddresses to nill at i
++ * @param _describePublicAddressesResponseType _ adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_set_destAddresses_nil_at(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_deserialize(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describePublicAddressesResponseType_declare_parent_namespaces(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describePublicAddressesResponseType adb_describePublicAddressesResponseType_t object
++ * @param env pointer to environment struct
++ * @param describePublicAddressesResponseType_om_node node to serialize from
++ * @param describePublicAddressesResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describePublicAddressesResponseType_serialize(
++ adb_describePublicAddressesResponseType_t* _describePublicAddressesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* describePublicAddressesResponseType_om_node, axiom_element_t *describePublicAddressesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describePublicAddressesResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describePublicAddressesResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBEPUBLICADDRESSESRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesResponseType.c
+@@ -0,0 +1,2065 @@
++
++
++ /**
++ * adb_describeInstancesResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describeInstancesResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describeInstancesResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describeInstancesResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_instances;
++
++
++ axis2_bool_t is_valid_instances;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_correlationId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_userId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_return_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describeInstancesResponseType_t* AXIS2_CALL
++ adb_describeInstancesResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_describeInstancesResponseType_t *_describeInstancesResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describeInstancesResponseType = (adb_describeInstancesResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describeInstancesResponseType_t));
++
++ if(NULL == _describeInstancesResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describeInstancesResponseType, 0, sizeof(adb_describeInstancesResponseType_t));
++
++ _describeInstancesResponseType->property_correlationId = NULL;
++ _describeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _describeInstancesResponseType->property_userId = NULL;
++ _describeInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ _describeInstancesResponseType->property_statusMessage = NULL;
++ _describeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _describeInstancesResponseType->is_valid_return = AXIS2_FALSE;
++ _describeInstancesResponseType->property_instances = NULL;
++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++
++
++ return _describeInstancesResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_free (
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ adb_describeInstancesResponseType_reset_correlationId(_describeInstancesResponseType, env);
++ adb_describeInstancesResponseType_reset_userId(_describeInstancesResponseType, env);
++ adb_describeInstancesResponseType_reset_statusMessage(_describeInstancesResponseType, env);
++ adb_describeInstancesResponseType_reset_return(_describeInstancesResponseType, env);
++ adb_describeInstancesResponseType_reset_instances(_describeInstancesResponseType, env);
++
++
++ if(_describeInstancesResponseType)
++ {
++ AXIS2_FREE(env->allocator, _describeInstancesResponseType);
++ _describeInstancesResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_deserialize(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describeInstancesResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeInstancesResponseType_set_correlationId(_describeInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeInstancesResponseType_set_correlationId(_describeInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeInstancesResponseType_set_userId(_describeInstancesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeInstancesResponseType_set_userId(_describeInstancesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeInstancesResponseType_set_statusMessage(_describeInstancesResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describeInstancesResponseType_set_return(_describeInstancesResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describeInstancesResponseType_set_return(_describeInstancesResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building instances array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building instances element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "instances", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ element = (void*)adb_ccInstanceType_create(env);
++
++ status = adb_ccInstanceType_deserialize((adb_ccInstanceType_t*)element, env,
++ ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element instances ");
++ }
++ else
++ {
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instances ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describeInstancesResponseType_set_instances(_describeInstancesResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describeInstancesResponseType_declare_parent_namespaces(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describeInstancesResponseType_serialize(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describeInstancesResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describeInstancesResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describeInstancesResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describeInstancesResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesResponseType->is_valid_instances)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instances")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instances")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing instances array
++ */
++ if (_describeInstancesResponseType->property_instances != NULL)
++ {
++
++
++ sprintf(start_input_str, "<%s%sinstances",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sinstances>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describeInstancesResponseType->property_instances, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing instances element
++ */
++
++
++
++ if(!adb_ccInstanceType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_ccInstanceType_serialize((adb_ccInstanceType_t*)element,
++ env, current_node, parent_element,
++ adb_ccInstanceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_ccInstanceType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_correlationId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL);
++
++
++ return _describeInstancesResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_correlationId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ if(_describeInstancesResponseType->is_valid_correlationId &&
++ arg_correlationId == _describeInstancesResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesResponseType_reset_correlationId(_describeInstancesResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describeInstancesResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describeInstancesResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_correlationId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeInstancesResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeInstancesResponseType->property_correlationId);
++ _describeInstancesResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _describeInstancesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_correlationId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE);
++
++ return !_describeInstancesResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_correlationId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesResponseType_reset_correlationId(_describeInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_userId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL);
++
++
++ return _describeInstancesResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_userId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ if(_describeInstancesResponseType->is_valid_userId &&
++ arg_userId == _describeInstancesResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesResponseType_reset_userId(_describeInstancesResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describeInstancesResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describeInstancesResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_userId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeInstancesResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeInstancesResponseType->property_userId);
++ _describeInstancesResponseType->property_userId = NULL;
++ }
++
++
++
++ _describeInstancesResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_userId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE);
++
++ return !_describeInstancesResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_userId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesResponseType_reset_userId(_describeInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_statusMessage(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL);
++
++
++ return _describeInstancesResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_statusMessage(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ if(_describeInstancesResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _describeInstancesResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesResponseType_reset_statusMessage(_describeInstancesResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describeInstancesResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describeInstancesResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_statusMessage(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeInstancesResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeInstancesResponseType->property_statusMessage);
++ _describeInstancesResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _describeInstancesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_statusMessage_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE);
++
++ return !_describeInstancesResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_statusMessage_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesResponseType_reset_statusMessage(_describeInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_get_return(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, (axis2_bool_t)0);
++
++
++ return _describeInstancesResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_return(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ if(_describeInstancesResponseType->is_valid_return &&
++ arg_return == _describeInstancesResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesResponseType_reset_return(_describeInstancesResponseType, env);
++
++ _describeInstancesResponseType->property_return = arg_return;
++ _describeInstancesResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_return(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++
++ _describeInstancesResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_return_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE);
++
++ return !_describeInstancesResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_return_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesResponseType_reset_return(_describeInstancesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for instances.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL);
++
++
++ return _describeInstancesResponseType->property_instances;
++ }
++
++ /**
++ * setter for instances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instances)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ if(_describeInstancesResponseType->is_valid_instances &&
++ arg_instances == _describeInstancesResponseType->property_instances)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_instances, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instances has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_instances, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describeInstancesResponseType_reset_instances(_describeInstancesResponseType, env);
++
++
++ if(NULL == arg_instances)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesResponseType->property_instances = arg_instances;
++ if(non_nil_exists)
++ {
++ _describeInstancesResponseType->is_valid_instances = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of instances.
++ */
++ adb_ccInstanceType_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_instances_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ adb_ccInstanceType_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, NULL);
++
++
++ if(_describeInstancesResponseType->property_instances == NULL)
++ {
++ return (adb_ccInstanceType_t*)0;
++ }
++ ret_val = (adb_ccInstanceType_t*)axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of instances.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i,
++ adb_ccInstanceType_t* arg_instances)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ if( _describeInstancesResponseType->is_valid_instances &&
++ _describeInstancesResponseType->property_instances &&
++
++ arg_instances == (adb_ccInstanceType_t*)axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_instances)
++ {
++ if(_describeInstancesResponseType->property_instances != NULL)
++ {
++ size = axutil_array_list_size(_describeInstancesResponseType->property_instances, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeInstancesResponseType->property_instances == NULL)
++ {
++ _describeInstancesResponseType->property_instances = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, arg_instances);
++ _describeInstancesResponseType->is_valid_instances = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to instances.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_add_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ adb_ccInstanceType_t* arg_instances)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_instances)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describeInstancesResponseType->property_instances == NULL)
++ {
++ _describeInstancesResponseType->property_instances = axutil_array_list_create(env, 10);
++ }
++ if(_describeInstancesResponseType->property_instances == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instances");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describeInstancesResponseType->property_instances , env, arg_instances);
++ _describeInstancesResponseType->is_valid_instances = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the instances array.
++ */
++ int AXIS2_CALL
++ adb_describeInstancesResponseType_sizeof_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, -1);
++ if(_describeInstancesResponseType->property_instances == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describeInstancesResponseType->property_instances, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_remove_instances_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describeInstancesResponseType_set_instances_nil_at(_describeInstancesResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for instances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++
++
++ if (_describeInstancesResponseType->property_instances != NULL)
++ {
++ count = axutil_array_list_size(_describeInstancesResponseType->property_instances, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describeInstancesResponseType->property_instances, env);
++ }
++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instances is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_instances_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE);
++
++ return !_describeInstancesResponseType->is_valid_instances;
++ }
++
++ /**
++ * Set instances to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesResponseType_reset_instances(_describeInstancesResponseType, env);
++ }
++
++
++ /**
++ * Check whether instances is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_instances_nil_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_TRUE);
++
++ return (_describeInstancesResponseType->is_valid_instances == AXIS2_FALSE ||
++ NULL == _describeInstancesResponseType->property_instances ||
++ NULL == axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i));
++ }
++
++ /**
++ * Set instances to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances_nil_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesResponseType, AXIS2_FAILURE);
++
++ if(_describeInstancesResponseType->property_instances == NULL ||
++ _describeInstancesResponseType->is_valid_instances == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describeInstancesResponseType->property_instances, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instances is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeInstancesResponseType->property_instances == NULL)
++ {
++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeInstancesResponseType->property_instances, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_ccInstanceType_free((adb_ccInstanceType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeInstancesResponseType->is_valid_instances = AXIS2_FALSE;
++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describeInstancesResponseType->property_instances , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesResponseType.h
+@@ -0,0 +1,551 @@
++
++
++ #ifndef ADB_DESCRIBEINSTANCESRESPONSETYPE_H
++ #define ADB_DESCRIBEINSTANCESRESPONSETYPE_H
++
++ /**
++ * adb_describeInstancesResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describeInstancesResponseType class
++ */
++ typedef struct adb_describeInstancesResponseType adb_describeInstancesResponseType_t;
++
++
++ #include "adb_ccInstanceType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describeInstancesResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describeInstancesResponseType_t object
++ */
++ adb_describeInstancesResponseType_t* AXIS2_CALL
++ adb_describeInstancesResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describeInstancesResponseType_t object
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_free (
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_correlationId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_correlationId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_correlationId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_userId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_userId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_userId(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_statusMessage(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_statusMessage(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_statusMessage(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_get_return(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_return(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_return(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instances. Deprecated for array types, Use adb_describeInstancesResponseType_get_instances_at instead
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of adb_ccInstanceType_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instances.Deprecated for array types, Use adb_describeInstancesResponseType_set_instances_at
++ * or adb_describeInstancesResponseType_add_instances instead.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_instances Array of adb_ccInstanceType_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instances);
++
++ /**
++ * Resetter for instances
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_reset_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of instances.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith adb_ccInstanceType_t* of the array
++ */
++ adb_ccInstanceType_t* AXIS2_CALL
++ adb_describeInstancesResponseType_get_instances_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of instances. (If the ith already exist, it will be replaced)
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_instances element to set adb_ccInstanceType_t* to the array
++ * @return ith adb_ccInstanceType_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i,
++ adb_ccInstanceType_t* arg_instances);
++
++
++ /**
++ * Add to instances.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_instances element to add adb_ccInstanceType_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_add_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ adb_ccInstanceType_t* arg_instances);
++
++ /**
++ * Get the size of the instances array.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the instances array.
++ */
++ int AXIS2_CALL
++ adb_describeInstancesResponseType_sizeof_instances(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of instances.
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_remove_instances_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_correlationId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_userId_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_statusMessage_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_statusMessage_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_return_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instances is nill
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_instances_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set instances to nill (currently the same as reset)
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances_nil(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env);
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether instances is nill at i
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_instances_nil_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set instances to nill at i
++ * @param _describeInstancesResponseType _ adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_set_instances_nil_at(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesResponseType_deserialize(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describeInstancesResponseType_declare_parent_namespaces(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describeInstancesResponseType adb_describeInstancesResponseType_t object
++ * @param env pointer to environment struct
++ * @param describeInstancesResponseType_om_node node to serialize from
++ * @param describeInstancesResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describeInstancesResponseType_serialize(
++ adb_describeInstancesResponseType_t* _describeInstancesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* describeInstancesResponseType_om_node, axiom_element_t *describeInstancesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describeInstancesResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBEINSTANCESRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeResponseType.c
+@@ -0,0 +1,1401 @@
++
++
++ /**
++ * adb_detachVolumeResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_detachVolumeResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = detachVolumeResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_detachVolumeResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_correlationId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_userId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_return_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_detachVolumeResponseType_t* AXIS2_CALL
++ adb_detachVolumeResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_detachVolumeResponseType_t *_detachVolumeResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _detachVolumeResponseType = (adb_detachVolumeResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_detachVolumeResponseType_t));
++
++ if(NULL == _detachVolumeResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_detachVolumeResponseType, 0, sizeof(adb_detachVolumeResponseType_t));
++
++ _detachVolumeResponseType->property_correlationId = NULL;
++ _detachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _detachVolumeResponseType->property_userId = NULL;
++ _detachVolumeResponseType->is_valid_userId = AXIS2_FALSE;
++ _detachVolumeResponseType->property_statusMessage = NULL;
++ _detachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _detachVolumeResponseType->is_valid_return = AXIS2_FALSE;
++
++
++ return _detachVolumeResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_free (
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++ adb_detachVolumeResponseType_reset_correlationId(_detachVolumeResponseType, env);
++ adb_detachVolumeResponseType_reset_userId(_detachVolumeResponseType, env);
++ adb_detachVolumeResponseType_reset_statusMessage(_detachVolumeResponseType, env);
++ adb_detachVolumeResponseType_reset_return(_detachVolumeResponseType, env);
++
++
++ if(_detachVolumeResponseType)
++ {
++ AXIS2_FREE(env->allocator, _detachVolumeResponseType);
++ _detachVolumeResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_deserialize(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for detachVolumeResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeResponseType_set_correlationId(_detachVolumeResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeResponseType_set_correlationId(_detachVolumeResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeResponseType_set_userId(_detachVolumeResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_detachVolumeResponseType_set_userId(_detachVolumeResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_detachVolumeResponseType_set_statusMessage(_detachVolumeResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_detachVolumeResponseType_set_return(_detachVolumeResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_detachVolumeResponseType_set_return(_detachVolumeResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_detachVolumeResponseType_declare_parent_namespaces(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_detachVolumeResponseType_serialize(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _detachVolumeResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _detachVolumeResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _detachVolumeResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_detachVolumeResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_detachVolumeResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeResponseType_get_correlationId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL);
++
++
++ return _detachVolumeResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_correlationId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_detachVolumeResponseType->is_valid_correlationId &&
++ arg_correlationId == _detachVolumeResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeResponseType_reset_correlationId(_detachVolumeResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _detachVolumeResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_correlationId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeResponseType->property_correlationId);
++ _detachVolumeResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _detachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_correlationId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE);
++
++ return !_detachVolumeResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_correlationId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeResponseType_reset_correlationId(_detachVolumeResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeResponseType_get_userId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL);
++
++
++ return _detachVolumeResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_userId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_detachVolumeResponseType->is_valid_userId &&
++ arg_userId == _detachVolumeResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeResponseType_reset_userId(_detachVolumeResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _detachVolumeResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_userId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeResponseType->property_userId);
++ _detachVolumeResponseType->property_userId = NULL;
++ }
++
++
++
++ _detachVolumeResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_userId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE);
++
++ return !_detachVolumeResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_userId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeResponseType_reset_userId(_detachVolumeResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeResponseType_get_statusMessage(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, NULL);
++
++
++ return _detachVolumeResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_statusMessage(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_detachVolumeResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _detachVolumeResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeResponseType_reset_statusMessage(_detachVolumeResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _detachVolumeResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _detachVolumeResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _detachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_statusMessage(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_detachVolumeResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _detachVolumeResponseType->property_statusMessage);
++ _detachVolumeResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _detachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_statusMessage_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE);
++
++ return !_detachVolumeResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_statusMessage_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeResponseType_reset_statusMessage(_detachVolumeResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_get_return(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, (axis2_bool_t)0);
++
++
++ return _detachVolumeResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_return(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++ if(_detachVolumeResponseType->is_valid_return &&
++ arg_return == _detachVolumeResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_detachVolumeResponseType_reset_return(_detachVolumeResponseType, env);
++
++ _detachVolumeResponseType->property_return = arg_return;
++ _detachVolumeResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_return(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_FAILURE);
++
++
++ _detachVolumeResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_return_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _detachVolumeResponseType, AXIS2_TRUE);
++
++ return !_detachVolumeResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_return_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_detachVolumeResponseType_reset_return(_detachVolumeResponseType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_detachVolumeResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_detachVolumeResponseType.h
+@@ -0,0 +1,362 @@
++
++
++ #ifndef ADB_DETACHVOLUMERESPONSETYPE_H
++ #define ADB_DETACHVOLUMERESPONSETYPE_H
++
++ /**
++ * adb_detachVolumeResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_detachVolumeResponseType class
++ */
++ typedef struct adb_detachVolumeResponseType adb_detachVolumeResponseType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_detachVolumeResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_detachVolumeResponseType_t object
++ */
++ adb_detachVolumeResponseType_t* AXIS2_CALL
++ adb_detachVolumeResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_detachVolumeResponseType_t object
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_free (
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for correlationId.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeResponseType_get_correlationId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_correlationId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_correlationId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeResponseType_get_userId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_userId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_userId(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_detachVolumeResponseType_get_statusMessage(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_statusMessage(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_statusMessage(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_get_return(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_return(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_reset_return(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_correlationId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_userId_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_statusMessage_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_set_statusMessage_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_return_nil(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_detachVolumeResponseType_deserialize(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_detachVolumeResponseType_declare_parent_namespaces(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _detachVolumeResponseType adb_detachVolumeResponseType_t object
++ * @param env pointer to environment struct
++ * @param detachVolumeResponseType_om_node node to serialize from
++ * @param detachVolumeResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_detachVolumeResponseType_serialize(
++ adb_detachVolumeResponseType_t* _detachVolumeResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* detachVolumeResponseType_om_node, axiom_element_t *detachVolumeResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_detachVolumeResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_detachVolumeResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DETACHVOLUMERESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccResourceType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccResourceType.c
+@@ -0,0 +1,972 @@
++
++
++ /**
++ * adb_ccResourceType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_ccResourceType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = ccResourceType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_ccResourceType
++ {
++ adb_virtualMachineType_t* property_instanceType;
++
++
++ axis2_bool_t is_valid_instanceType;
++
++
++ int property_maxInstances;
++
++
++ axis2_bool_t is_valid_maxInstances;
++
++
++ int property_availableInstances;
++
++
++ axis2_bool_t is_valid_availableInstances;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_instanceType_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_maxInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_availableInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_ccResourceType_t* AXIS2_CALL
++ adb_ccResourceType_create(
++ const axutil_env_t *env)
++ {
++ adb_ccResourceType_t *_ccResourceType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _ccResourceType = (adb_ccResourceType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_ccResourceType_t));
++
++ if(NULL == _ccResourceType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_ccResourceType, 0, sizeof(adb_ccResourceType_t));
++
++ _ccResourceType->property_instanceType = NULL;
++ _ccResourceType->is_valid_instanceType = AXIS2_FALSE;
++ _ccResourceType->is_valid_maxInstances = AXIS2_FALSE;
++ _ccResourceType->is_valid_availableInstances = AXIS2_FALSE;
++
++
++ return _ccResourceType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_free (
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++ adb_ccResourceType_reset_instanceType(_ccResourceType, env);
++ adb_ccResourceType_reset_maxInstances(_ccResourceType, env);
++ adb_ccResourceType_reset_availableInstances(_ccResourceType, env);
++
++
++ if(_ccResourceType)
++ {
++ AXIS2_FREE(env->allocator, _ccResourceType);
++ _ccResourceType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_deserialize(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for ccResourceType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building instanceType element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "instanceType", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (adb_virtualMachineType_is_particle() ||
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ element = (void*)adb_virtualMachineType_create(env);
++
++ status = adb_virtualMachineType_deserialize((adb_virtualMachineType_t*)element,
++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element instanceType");
++ }
++ else
++ {
++ status = adb_ccResourceType_set_instanceType(_ccResourceType, env,
++ (adb_virtualMachineType_t*)element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceType ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building maxInstances element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "maxInstances", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccResourceType_set_maxInstances(_ccResourceType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element maxInstances");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for maxInstances ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building availableInstances element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "availableInstances", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_ccResourceType_set_availableInstances(_ccResourceType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element availableInstances");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for availableInstances ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_ccResourceType_declare_parent_namespaces(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_ccResourceType_serialize(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t text_value_1[64];
++
++ axis2_char_t text_value_2[64];
++
++ axis2_char_t text_value_3[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccResourceType->is_valid_instanceType)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceType")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing instanceType element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sinstanceType",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sinstanceType>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_virtualMachineType_serialize(_ccResourceType->property_instanceType,
++ env, current_node, parent_element,
++ adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_virtualMachineType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccResourceType->is_valid_maxInstances)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("maxInstances")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("maxInstances")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing maxInstances element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%smaxInstances>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%smaxInstances>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_2, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ccResourceType->property_maxInstances);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_ccResourceType->is_valid_availableInstances)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("availableInstances")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("availableInstances")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing availableInstances element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%savailableInstances>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%savailableInstances>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_3, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ccResourceType->property_availableInstances);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for instanceType.
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_ccResourceType_get_instanceType(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, NULL);
++
++
++ return _ccResourceType->property_instanceType;
++ }
++
++ /**
++ * setter for instanceType
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_instanceType(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceType)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++ if(_ccResourceType->is_valid_instanceType &&
++ arg_instanceType == _ccResourceType->property_instanceType)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccResourceType_reset_instanceType(_ccResourceType, env);
++
++
++ if(NULL == arg_instanceType)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _ccResourceType->property_instanceType = arg_instanceType;
++ _ccResourceType->is_valid_instanceType = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for instanceType
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_reset_instanceType(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_ccResourceType->property_instanceType != NULL)
++ {
++
++
++ adb_virtualMachineType_free(_ccResourceType->property_instanceType, env);
++ _ccResourceType->property_instanceType = NULL;
++ }
++
++
++
++ _ccResourceType->is_valid_instanceType = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceType is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_instanceType_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_TRUE);
++
++ return !_ccResourceType->is_valid_instanceType;
++ }
++
++ /**
++ * Set instanceType to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_instanceType_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccResourceType_reset_instanceType(_ccResourceType, env);
++ }
++
++
++
++ /**
++ * getter for maxInstances.
++ */
++ int AXIS2_CALL
++ adb_ccResourceType_get_maxInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, (int)0);
++
++
++ return _ccResourceType->property_maxInstances;
++ }
++
++ /**
++ * setter for maxInstances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_maxInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ const int arg_maxInstances)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++ if(_ccResourceType->is_valid_maxInstances &&
++ arg_maxInstances == _ccResourceType->property_maxInstances)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccResourceType_reset_maxInstances(_ccResourceType, env);
++
++ _ccResourceType->property_maxInstances = arg_maxInstances;
++ _ccResourceType->is_valid_maxInstances = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for maxInstances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_reset_maxInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++
++ _ccResourceType->is_valid_maxInstances = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether maxInstances is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_maxInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_TRUE);
++
++ return !_ccResourceType->is_valid_maxInstances;
++ }
++
++ /**
++ * Set maxInstances to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_maxInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccResourceType_reset_maxInstances(_ccResourceType, env);
++ }
++
++
++
++ /**
++ * getter for availableInstances.
++ */
++ int AXIS2_CALL
++ adb_ccResourceType_get_availableInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, (int)0);
++
++
++ return _ccResourceType->property_availableInstances;
++ }
++
++ /**
++ * setter for availableInstances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_availableInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ const int arg_availableInstances)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++ if(_ccResourceType->is_valid_availableInstances &&
++ arg_availableInstances == _ccResourceType->property_availableInstances)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccResourceType_reset_availableInstances(_ccResourceType, env);
++
++ _ccResourceType->property_availableInstances = arg_availableInstances;
++ _ccResourceType->is_valid_availableInstances = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for availableInstances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_reset_availableInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_FAILURE);
++
++
++ _ccResourceType->is_valid_availableInstances = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether availableInstances is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_availableInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _ccResourceType, AXIS2_TRUE);
++
++ return !_ccResourceType->is_valid_availableInstances;
++ }
++
++ /**
++ * Set availableInstances to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_availableInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccResourceType_reset_availableInstances(_ccResourceType, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_ccResourceType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_ccResourceType.h
+@@ -0,0 +1,301 @@
++
++
++ #ifndef ADB_CCRESOURCETYPE_H
++ #define ADB_CCRESOURCETYPE_H
++
++ /**
++ * adb_ccResourceType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_ccResourceType class
++ */
++ typedef struct adb_ccResourceType adb_ccResourceType_t;
++
++
++ #include "adb_virtualMachineType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_ccResourceType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_ccResourceType_t object
++ */
++ adb_ccResourceType_t* AXIS2_CALL
++ adb_ccResourceType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_ccResourceType_t object
++ * @param _ccResourceType adb_ccResourceType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_free (
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for instanceType.
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return adb_virtualMachineType_t*
++ */
++ adb_virtualMachineType_t* AXIS2_CALL
++ adb_ccResourceType_get_instanceType(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceType.
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceType adb_virtualMachineType_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_instanceType(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ adb_virtualMachineType_t* arg_instanceType);
++
++ /**
++ * Resetter for instanceType
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_reset_instanceType(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for maxInstances.
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_ccResourceType_get_maxInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for maxInstances.
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @param arg_maxInstances int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_maxInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ const int arg_maxInstances);
++
++ /**
++ * Resetter for maxInstances
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_reset_maxInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for availableInstances.
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_ccResourceType_get_availableInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for availableInstances.
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @param arg_availableInstances int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_set_availableInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ const int arg_availableInstances);
++
++ /**
++ * Resetter for availableInstances
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_reset_availableInstances(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether instanceType is nill
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_instanceType_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether maxInstances is nill
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_maxInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether availableInstances is nill
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_availableInstances_nil(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env);
++
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccResourceType_deserialize(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_ccResourceType_declare_parent_namespaces(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _ccResourceType adb_ccResourceType_t object
++ * @param env pointer to environment struct
++ * @param ccResourceType_om_node node to serialize from
++ * @param ccResourceType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_ccResourceType_serialize(
++ adb_ccResourceType_t* _ccResourceType,
++ const axutil_env_t *env,
++ axiom_node_t* ccResourceType_om_node, axiom_element_t *ccResourceType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_ccResourceType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccResourceType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_CCRESOURCETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesResponseType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesResponseType.c
+@@ -0,0 +1,2779 @@
++
++
++ /**
++ * adb_describeResourcesResponseType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describeResourcesResponseType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describeResourcesResponseType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describeResourcesResponseType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_resources;
++
++
++ axis2_bool_t is_valid_resources;
++
++
++ axutil_array_list_t* property_serviceTags;
++
++
++ axis2_bool_t is_valid_serviceTags;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_correlationId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_userId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_return_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describeResourcesResponseType_t* AXIS2_CALL
++ adb_describeResourcesResponseType_create(
++ const axutil_env_t *env)
++ {
++ adb_describeResourcesResponseType_t *_describeResourcesResponseType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describeResourcesResponseType = (adb_describeResourcesResponseType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describeResourcesResponseType_t));
++
++ if(NULL == _describeResourcesResponseType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describeResourcesResponseType, 0, sizeof(adb_describeResourcesResponseType_t));
++
++ _describeResourcesResponseType->property_correlationId = NULL;
++ _describeResourcesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ _describeResourcesResponseType->property_userId = NULL;
++ _describeResourcesResponseType->is_valid_userId = AXIS2_FALSE;
++ _describeResourcesResponseType->property_statusMessage = NULL;
++ _describeResourcesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ _describeResourcesResponseType->is_valid_return = AXIS2_FALSE;
++ _describeResourcesResponseType->property_resources = NULL;
++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE;
++ _describeResourcesResponseType->property_serviceTags = NULL;
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE;
++
++
++ return _describeResourcesResponseType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_free (
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ adb_describeResourcesResponseType_reset_correlationId(_describeResourcesResponseType, env);
++ adb_describeResourcesResponseType_reset_userId(_describeResourcesResponseType, env);
++ adb_describeResourcesResponseType_reset_statusMessage(_describeResourcesResponseType, env);
++ adb_describeResourcesResponseType_reset_return(_describeResourcesResponseType, env);
++ adb_describeResourcesResponseType_reset_resources(_describeResourcesResponseType, env);
++ adb_describeResourcesResponseType_reset_serviceTags(_describeResourcesResponseType, env);
++
++
++ if(_describeResourcesResponseType)
++ {
++ AXIS2_FREE(env->allocator, _describeResourcesResponseType);
++ _describeResourcesResponseType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_deserialize(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describeResourcesResponseType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeResourcesResponseType_set_correlationId(_describeResourcesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeResourcesResponseType_set_correlationId(_describeResourcesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeResourcesResponseType_set_userId(_describeResourcesResponseType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeResourcesResponseType_set_userId(_describeResourcesResponseType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeResourcesResponseType_set_statusMessage(_describeResourcesResponseType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describeResourcesResponseType_set_return(_describeResourcesResponseType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describeResourcesResponseType_set_return(_describeResourcesResponseType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building resources array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building resources element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "resources", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ element = (void*)adb_ccResourceType_create(env);
++
++ status = adb_ccResourceType_deserialize((adb_ccResourceType_t*)element, env,
++ ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building element resources ");
++ }
++ else
++ {
++ axutil_array_list_add_at(arr_list, env, i, element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for resources ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "resources (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describeResourcesResponseType_set_resources(_describeResourcesResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building serviceTags array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building serviceTags element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "serviceTags", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTags");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, ""));
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTags ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "serviceTags (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describeResourcesResponseType_set_serviceTags(_describeResourcesResponseType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describeResourcesResponseType_declare_parent_namespaces(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describeResourcesResponseType_serialize(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t text_value_5[64];
++
++ axis2_char_t *text_value_6;
++ axis2_char_t *text_value_6_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesResponseType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describeResourcesResponseType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesResponseType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describeResourcesResponseType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesResponseType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describeResourcesResponseType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesResponseType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describeResourcesResponseType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesResponseType->is_valid_resources)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("resources")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("resources")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing resources array
++ */
++ if (_describeResourcesResponseType->property_resources != NULL)
++ {
++
++
++ sprintf(start_input_str, "<%s%sresources",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sresources>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describeResourcesResponseType->property_resources, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing resources element
++ */
++
++
++
++ if(!adb_ccResourceType_is_particle())
++ {
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++ }
++
++ adb_ccResourceType_serialize((adb_ccResourceType_t*)element,
++ env, current_node, parent_element,
++ adb_ccResourceType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
++
++ if(!adb_ccResourceType_is_particle())
++ {
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++ }
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeResourcesResponseType->is_valid_serviceTags)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("serviceTags")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTags")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing serviceTags array
++ */
++ if (_describeResourcesResponseType->property_serviceTags != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sserviceTags>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sserviceTags>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing serviceTags element
++ */
++
++
++
++ text_value_6 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
++ if (text_value_6_temp)
++ {
++ axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
++ AXIS2_FREE(env->allocator, text_value_6_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_correlationId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ return _describeResourcesResponseType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_correlationId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->is_valid_correlationId &&
++ arg_correlationId == _describeResourcesResponseType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesResponseType_reset_correlationId(_describeResourcesResponseType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describeResourcesResponseType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describeResourcesResponseType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_correlationId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeResourcesResponseType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeResourcesResponseType->property_correlationId);
++ _describeResourcesResponseType->property_correlationId = NULL;
++ }
++
++
++
++ _describeResourcesResponseType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_correlationId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return !_describeResourcesResponseType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_correlationId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesResponseType_reset_correlationId(_describeResourcesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_userId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ return _describeResourcesResponseType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_userId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->is_valid_userId &&
++ arg_userId == _describeResourcesResponseType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesResponseType_reset_userId(_describeResourcesResponseType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describeResourcesResponseType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describeResourcesResponseType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_userId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeResourcesResponseType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeResourcesResponseType->property_userId);
++ _describeResourcesResponseType->property_userId = NULL;
++ }
++
++
++
++ _describeResourcesResponseType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_userId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return !_describeResourcesResponseType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_userId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesResponseType_reset_userId(_describeResourcesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_statusMessage(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ return _describeResourcesResponseType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_statusMessage(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->is_valid_statusMessage &&
++ arg_statusMessage == _describeResourcesResponseType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesResponseType_reset_statusMessage(_describeResourcesResponseType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describeResourcesResponseType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describeResourcesResponseType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_statusMessage(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeResourcesResponseType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeResourcesResponseType->property_statusMessage);
++ _describeResourcesResponseType->property_statusMessage = NULL;
++ }
++
++
++
++ _describeResourcesResponseType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_statusMessage_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return !_describeResourcesResponseType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_statusMessage_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesResponseType_reset_statusMessage(_describeResourcesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_get_return(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, (axis2_bool_t)0);
++
++
++ return _describeResourcesResponseType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_return(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->is_valid_return &&
++ arg_return == _describeResourcesResponseType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeResourcesResponseType_reset_return(_describeResourcesResponseType, env);
++
++ _describeResourcesResponseType->property_return = arg_return;
++ _describeResourcesResponseType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_return(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++ _describeResourcesResponseType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_return_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return !_describeResourcesResponseType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_return_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesResponseType_reset_return(_describeResourcesResponseType, env);
++ }
++
++
++
++ /**
++ * getter for resources.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ return _describeResourcesResponseType->property_resources;
++ }
++
++ /**
++ * setter for resources
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_resources)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->is_valid_resources &&
++ arg_resources == _describeResourcesResponseType->property_resources)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_resources, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "resources has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_resources, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describeResourcesResponseType_reset_resources(_describeResourcesResponseType, env);
++
++
++ if(NULL == arg_resources)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesResponseType->property_resources = arg_resources;
++ if(non_nil_exists)
++ {
++ _describeResourcesResponseType->is_valid_resources = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of resources.
++ */
++ adb_ccResourceType_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_resources_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ adb_ccResourceType_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ if(_describeResourcesResponseType->property_resources == NULL)
++ {
++ return (adb_ccResourceType_t*)0;
++ }
++ ret_val = (adb_ccResourceType_t*)axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of resources.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i,
++ adb_ccResourceType_t* arg_resources)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if( _describeResourcesResponseType->is_valid_resources &&
++ _describeResourcesResponseType->property_resources &&
++
++ arg_resources == (adb_ccResourceType_t*)axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_resources)
++ {
++ if(_describeResourcesResponseType->property_resources != NULL)
++ {
++ size = axutil_array_list_size(_describeResourcesResponseType->property_resources, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of resources is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeResourcesResponseType->property_resources == NULL)
++ {
++ _describeResourcesResponseType->property_resources = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_ccResourceType_free((adb_ccResourceType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE;
++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, arg_resources);
++ _describeResourcesResponseType->is_valid_resources = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to resources.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_add_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ adb_ccResourceType_t* arg_resources)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_resources)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describeResourcesResponseType->property_resources == NULL)
++ {
++ _describeResourcesResponseType->property_resources = axutil_array_list_create(env, 10);
++ }
++ if(_describeResourcesResponseType->property_resources == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for resources");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describeResourcesResponseType->property_resources , env, arg_resources);
++ _describeResourcesResponseType->is_valid_resources = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the resources array.
++ */
++ int AXIS2_CALL
++ adb_describeResourcesResponseType_sizeof_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, -1);
++ if(_describeResourcesResponseType->property_resources == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describeResourcesResponseType->property_resources, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_remove_resources_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describeResourcesResponseType_set_resources_nil_at(_describeResourcesResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for resources
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++
++ if (_describeResourcesResponseType->property_resources != NULL)
++ {
++ count = axutil_array_list_size(_describeResourcesResponseType->property_resources, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ adb_ccResourceType_free((adb_ccResourceType_t*)element, env);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describeResourcesResponseType->property_resources, env);
++ }
++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether resources is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_resources_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return !_describeResourcesResponseType->is_valid_resources;
++ }
++
++ /**
++ * Set resources to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesResponseType_reset_resources(_describeResourcesResponseType, env);
++ }
++
++
++ /**
++ * Check whether resources is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_resources_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return (_describeResourcesResponseType->is_valid_resources == AXIS2_FALSE ||
++ NULL == _describeResourcesResponseType->property_resources ||
++ NULL == axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i));
++ }
++
++ /**
++ * Set resources to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->property_resources == NULL ||
++ _describeResourcesResponseType->is_valid_resources == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describeResourcesResponseType->property_resources, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of resources is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeResourcesResponseType->property_resources == NULL)
++ {
++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeResourcesResponseType->property_resources, env, i);
++ if(NULL != element)
++ {
++
++
++
++ adb_ccResourceType_free((adb_ccResourceType_t*)element, env);
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeResourcesResponseType->is_valid_resources = AXIS2_FALSE;
++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describeResourcesResponseType->property_resources , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
++ /**
++ * getter for serviceTags.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ return _describeResourcesResponseType->property_serviceTags;
++ }
++
++ /**
++ * setter for serviceTags
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_serviceTags)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->is_valid_serviceTags &&
++ arg_serviceTags == _describeResourcesResponseType->property_serviceTags)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_serviceTags, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "serviceTags has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_serviceTags, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describeResourcesResponseType_reset_serviceTags(_describeResourcesResponseType, env);
++
++
++ if(NULL == arg_serviceTags)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeResourcesResponseType->property_serviceTags = arg_serviceTags;
++ if(non_nil_exists)
++ {
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of serviceTags.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_serviceTags_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, NULL);
++
++
++ if(_describeResourcesResponseType->property_serviceTags == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of serviceTags.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_serviceTags)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if( _describeResourcesResponseType->is_valid_serviceTags &&
++ _describeResourcesResponseType->property_serviceTags &&
++
++ arg_serviceTags == (axis2_char_t*)axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_serviceTags)
++ {
++ if(_describeResourcesResponseType->property_serviceTags != NULL)
++ {
++ size = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of serviceTags is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeResourcesResponseType->property_serviceTags == NULL)
++ {
++ _describeResourcesResponseType->property_serviceTags = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE;
++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, axutil_strdup(env, arg_serviceTags));
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to serviceTags.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_add_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_serviceTags)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_serviceTags)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describeResourcesResponseType->property_serviceTags == NULL)
++ {
++ _describeResourcesResponseType->property_serviceTags = axutil_array_list_create(env, 10);
++ }
++ if(_describeResourcesResponseType->property_serviceTags == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for serviceTags");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describeResourcesResponseType->property_serviceTags , env, axutil_strdup(env, arg_serviceTags));
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the serviceTags array.
++ */
++ int AXIS2_CALL
++ adb_describeResourcesResponseType_sizeof_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, -1);
++ if(_describeResourcesResponseType->property_serviceTags == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_remove_serviceTags_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describeResourcesResponseType_set_serviceTags_nil_at(_describeResourcesResponseType, env, i);
++ }
++
++
++
++ /**
++ * resetter for serviceTags
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++
++
++ if (_describeResourcesResponseType->property_serviceTags != NULL)
++ {
++ count = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describeResourcesResponseType->property_serviceTags, env);
++ }
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether serviceTags is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_serviceTags_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return !_describeResourcesResponseType->is_valid_serviceTags;
++ }
++
++ /**
++ * Set serviceTags to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env)
++ {
++ return adb_describeResourcesResponseType_reset_serviceTags(_describeResourcesResponseType, env);
++ }
++
++
++ /**
++ * Check whether serviceTags is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_serviceTags_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_TRUE);
++
++ return (_describeResourcesResponseType->is_valid_serviceTags == AXIS2_FALSE ||
++ NULL == _describeResourcesResponseType->property_serviceTags ||
++ NULL == axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i));
++ }
++
++ /**
++ * Set serviceTags to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeResourcesResponseType, AXIS2_FAILURE);
++
++ if(_describeResourcesResponseType->property_serviceTags == NULL ||
++ _describeResourcesResponseType->is_valid_serviceTags == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describeResourcesResponseType->property_serviceTags, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of serviceTags is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeResourcesResponseType->property_serviceTags == NULL)
++ {
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeResourcesResponseType->property_serviceTags, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeResourcesResponseType->is_valid_serviceTags = AXIS2_FALSE;
++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describeResourcesResponseType->property_serviceTags , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeResourcesResponseType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeResourcesResponseType.h
+@@ -0,0 +1,695 @@
++
++
++ #ifndef ADB_DESCRIBERESOURCESRESPONSETYPE_H
++ #define ADB_DESCRIBERESOURCESRESPONSETYPE_H
++
++ /**
++ * adb_describeResourcesResponseType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describeResourcesResponseType class
++ */
++ typedef struct adb_describeResourcesResponseType adb_describeResourcesResponseType_t;
++
++
++ #include "adb_ccResourceType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describeResourcesResponseType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describeResourcesResponseType_t object
++ */
++ adb_describeResourcesResponseType_t* AXIS2_CALL
++ adb_describeResourcesResponseType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describeResourcesResponseType_t object
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_free (
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_correlationId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_correlationId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_correlationId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_userId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_userId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_userId(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_statusMessage(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_statusMessage(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_statusMessage(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_get_return(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_return(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_return(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for resources. Deprecated for array types, Use adb_describeResourcesResponseType_get_resources_at instead
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of adb_ccResourceType_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for resources.Deprecated for array types, Use adb_describeResourcesResponseType_set_resources_at
++ * or adb_describeResourcesResponseType_add_resources instead.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_resources Array of adb_ccResourceType_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_resources);
++
++ /**
++ * Resetter for resources
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for serviceTags. Deprecated for array types, Use adb_describeResourcesResponseType_get_serviceTags_at instead
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for serviceTags.Deprecated for array types, Use adb_describeResourcesResponseType_set_serviceTags_at
++ * or adb_describeResourcesResponseType_add_serviceTags instead.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_serviceTags Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_serviceTags);
++
++ /**
++ * Resetter for serviceTags
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_reset_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of resources.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith adb_ccResourceType_t* of the array
++ */
++ adb_ccResourceType_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_resources_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of resources. (If the ith already exist, it will be replaced)
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_resources element to set adb_ccResourceType_t* to the array
++ * @return ith adb_ccResourceType_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i,
++ adb_ccResourceType_t* arg_resources);
++
++
++ /**
++ * Add to resources.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_resources element to add adb_ccResourceType_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_add_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ adb_ccResourceType_t* arg_resources);
++
++ /**
++ * Get the size of the resources array.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the resources array.
++ */
++ int AXIS2_CALL
++ adb_describeResourcesResponseType_sizeof_resources(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of resources.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_remove_resources_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**
++ * Get the ith element of serviceTags.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeResourcesResponseType_get_serviceTags_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of serviceTags. (If the ith already exist, it will be replaced)
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_serviceTags element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_serviceTags);
++
++
++ /**
++ * Add to serviceTags.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param arg_serviceTags element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_add_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_serviceTags);
++
++ /**
++ * Get the size of the serviceTags array.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the serviceTags array.
++ */
++ int AXIS2_CALL
++ adb_describeResourcesResponseType_sizeof_serviceTags(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of serviceTags.
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_remove_serviceTags_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_correlationId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_userId_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_statusMessage_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_statusMessage_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_return_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether resources is nill
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_resources_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set resources to nill (currently the same as reset)
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether serviceTags is nill
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_serviceTags_nil(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env);
++
++
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether resources is nill at i
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_resources_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set resources to nill at i
++ * @param _describeResourcesResponseType _ adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_resources_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Check whether serviceTags is nill at i
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_serviceTags_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set serviceTags to nill at i
++ * @param _describeResourcesResponseType _ adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_set_serviceTags_nil_at(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeResourcesResponseType_deserialize(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describeResourcesResponseType_declare_parent_namespaces(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describeResourcesResponseType adb_describeResourcesResponseType_t object
++ * @param env pointer to environment struct
++ * @param describeResourcesResponseType_om_node node to serialize from
++ * @param describeResourcesResponseType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describeResourcesResponseType_serialize(
++ adb_describeResourcesResponseType_t* _describeResourcesResponseType,
++ const axutil_env_t *env,
++ axiom_node_t* describeResourcesResponseType_om_node, axiom_element_t *describeResourcesResponseType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describeResourcesResponseType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeResourcesResponseType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBERESOURCESRESPONSETYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesType.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesType.c
+@@ -0,0 +1,2061 @@
++
++
++ /**
++ * adb_describeInstancesType.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_describeInstancesType.h"
++
++ /*
++ * This type was generated from the piece of schema that had
++ * name = describeInstancesType
++ * Namespace URI = http://eucalyptus.ucsb.edu/
++ * Namespace Prefix = ns1
++ */
++
++
++
++ struct adb_describeInstancesType
++ {
++ axis2_char_t* property_correlationId;
++
++
++ axis2_bool_t is_valid_correlationId;
++
++
++ axis2_char_t* property_userId;
++
++
++ axis2_bool_t is_valid_userId;
++
++
++ axis2_char_t* property_statusMessage;
++
++
++ axis2_bool_t is_valid_statusMessage;
++
++
++ axis2_bool_t property_return;
++
++
++ axis2_bool_t is_valid_return;
++
++
++ axutil_array_list_t* property_instanceIds;
++
++
++ axis2_bool_t is_valid_instanceIds;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_correlationId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_userId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_return_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_describeInstancesType_t* AXIS2_CALL
++ adb_describeInstancesType_create(
++ const axutil_env_t *env)
++ {
++ adb_describeInstancesType_t *_describeInstancesType = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _describeInstancesType = (adb_describeInstancesType_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_describeInstancesType_t));
++
++ if(NULL == _describeInstancesType)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_describeInstancesType, 0, sizeof(adb_describeInstancesType_t));
++
++ _describeInstancesType->property_correlationId = NULL;
++ _describeInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ _describeInstancesType->property_userId = NULL;
++ _describeInstancesType->is_valid_userId = AXIS2_FALSE;
++ _describeInstancesType->property_statusMessage = NULL;
++ _describeInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ _describeInstancesType->is_valid_return = AXIS2_FALSE;
++ _describeInstancesType->property_instanceIds = NULL;
++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++
++
++ return _describeInstancesType;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_free (
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ adb_describeInstancesType_reset_correlationId(_describeInstancesType, env);
++ adb_describeInstancesType_reset_userId(_describeInstancesType, env);
++ adb_describeInstancesType_reset_statusMessage(_describeInstancesType, env);
++ adb_describeInstancesType_reset_return(_describeInstancesType, env);
++ adb_describeInstancesType_reset_instanceIds(_describeInstancesType, env);
++
++
++ if(_describeInstancesType)
++ {
++ AXIS2_FREE(env->allocator, _describeInstancesType);
++ _describeInstancesType = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_deserialize(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ int i = 0;
++ axutil_array_list_t *arr_list = NULL;
++
++ int sequence_broken = 0;
++ axiom_node_t *tmp_node = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for describeInstancesType : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ first_node = axiom_node_get_first_child(parent, env);
++
++
++
++
++ /*
++ * building correlationId element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeInstancesType_set_correlationId(_describeInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeInstancesType_set_correlationId(_describeInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building userId element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeInstancesType_set_userId(_describeInstancesType, env,
++ text_value);
++ }
++
++ else
++ {
++ /*
++ * axis2_qname_t *qname = NULL;
++ * axiom_attribute_t *the_attri = NULL;
++ *
++ * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
++ * the_attri = axiom_element_get_attribute(current_element, env, qname);
++ */
++ /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
++
++ axiom_attribute_t *the_attri = NULL;
++ axis2_char_t *attrib_text = NULL;
++ axutil_hash_t *attribute_hash = NULL;
++
++ attribute_hash = axiom_element_get_all_attributes(current_element, env);
++
++ attrib_text = NULL;
++ if(attribute_hash)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ const void *key;
++
++ for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, &key, NULL, &val);
++
++ if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
++ {
++ the_attri = (axiom_attribute_t*)val;
++ break;
++ }
++ }
++ }
++
++ if(the_attri)
++ {
++ attrib_text = axiom_attribute_get_value(the_attri, env);
++ }
++ else
++ {
++ /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
++ attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
++ }
++
++ if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
++ status = AXIS2_FAILURE;
++ }
++ else
++ {
++ /* after all, we found this is a empty string */
++ status = adb_describeInstancesType_set_userId(_describeInstancesType, env,
++ "");
++ }
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building statusMessage element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ status = adb_describeInstancesType_set_statusMessage(_describeInstancesType, env,
++ text_value);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++
++
++ /*
++ * building return element
++ */
++
++
++
++ /*
++ * because elements are ordered this works fine
++ */
++
++
++ if(current_node != NULL && is_early_node_valid)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ }
++ is_early_node_valid = AXIS2_FALSE;
++
++ element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ if (!axutil_strcasecmp(text_value , "true"))
++ {
++ status = adb_describeInstancesType_set_return(_describeInstancesType, env,
++ AXIS2_TRUE);
++ }
++ else
++ {
++ status = adb_describeInstancesType_set_return(_describeInstancesType, env,
++ AXIS2_FALSE);
++ }
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ /*
++ * building instanceIds array
++ */
++ arr_list = axutil_array_list_create(env, 10);
++
++
++
++ /*
++ * building instanceIds element
++ */
++
++
++
++ element_qname = axutil_qname_create(env, "instanceIds", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ for (i = 0, sequence_broken = 0, current_node = (is_early_node_valid?axiom_node_get_next_sibling(current_node, env):current_node); !sequence_broken && current_node != NULL;)
++
++ {
++ if(axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node =axiom_node_get_next_sibling(current_node, env);
++ is_early_node_valid = AXIS2_FALSE;
++ continue;
++ }
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++
++ if (axutil_qname_equals(element_qname, env, qname))
++ {
++
++ is_early_node_valid = AXIS2_TRUE;
++
++
++ text_value = axiom_element_get_text(current_element, env, current_node);
++ if(text_value != NULL)
++ {
++ axutil_array_list_add_at(arr_list, env, i, axutil_strdup(env, text_value));
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceIds ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++ i ++;
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ else
++ {
++ is_early_node_valid = AXIS2_FALSE;
++ sequence_broken = 1;
++ }
++
++ }
++
++
++ if (i < 0)
++ {
++ /* found element out of order */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds (@minOccurs = '0') only have %d elements", i);
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ if(arr_list)
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ return AXIS2_FAILURE;
++ }
++
++
++ if(0 == axutil_array_list_size(arr_list,env))
++ {
++ axutil_array_list_free(arr_list, env);
++ }
++ else
++ {
++ status = adb_describeInstancesType_set_instanceIds(_describeInstancesType, env,
++ arr_list);
++ }
++
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_describeInstancesType_declare_parent_namespaces(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_describeInstancesType_serialize(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++ axis2_char_t *string_to_stream;
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ axis2_char_t *text_value_1;
++ axis2_char_t *text_value_1_temp;
++
++ axis2_char_t *text_value_2;
++ axis2_char_t *text_value_2_temp;
++
++ axis2_char_t *text_value_3;
++ axis2_char_t *text_value_3_temp;
++
++ axis2_char_t text_value_4[64];
++
++ axis2_char_t *text_value_5;
++ axis2_char_t *text_value_5_temp;
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL);
++
++
++ current_node = parent;
++ data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
++ if (!data_source)
++ return NULL;
++ stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
++ if (!stream)
++ return NULL;
++
++ if(!parent_tag_closed)
++ {
++
++ string_to_stream = ">";
++ axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
++ tag_closed = 1;
++
++ }
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesType->is_valid_correlationId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("correlationId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing correlationId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%scorrelationId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_1 = _describeInstancesType->property_correlationId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
++ if (text_value_1_temp)
++ {
++ axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
++ AXIS2_FREE(env->allocator, text_value_1_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesType->is_valid_userId)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("userId")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing userId element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%suserId>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_2 = _describeInstancesType->property_userId;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
++ if (text_value_2_temp)
++ {
++ axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
++ AXIS2_FREE(env->allocator, text_value_2_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesType->is_valid_statusMessage)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("statusMessage")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing statusMessage element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sstatusMessage>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ text_value_3 = _describeInstancesType->property_statusMessage;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
++ if (text_value_3_temp)
++ {
++ axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
++ AXIS2_FREE(env->allocator, text_value_3_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesType->is_valid_return)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("return")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing return element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sreturn>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ strcpy(text_value_4, (_describeInstancesType->property_return)?"true":"false");
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_describeInstancesType->is_valid_instanceIds)
++ {
++
++ /* no need to complain for minoccurs=0 element */
++
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("instanceIds")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceIds")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++ /*
++ * Parsing instanceIds array
++ */
++ if (_describeInstancesType->property_instanceIds != NULL)
++ {
++
++ sprintf(start_input_str, "<%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++
++ sprintf(end_input_str, "%s%sinstanceIds>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ count = axutil_array_list_size(_describeInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i);
++
++ if(NULL == element)
++ {
++ continue;
++ }
++
++
++ /*
++ * parsing instanceIds element
++ */
++
++
++
++ text_value_5 = (axis2_char_t*)element;
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++
++ text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
++ if (text_value_5_temp)
++ {
++ axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
++ AXIS2_FREE(env->allocator, text_value_5_temp);
++ }
++ else
++ {
++ axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
++ }
++
++ axutil_stream_write(stream, env, end_input_str, end_input_str_len);
++
++ }
++ }
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for correlationId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_correlationId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL);
++
++
++ return _describeInstancesType->property_correlationId;
++ }
++
++ /**
++ * setter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_correlationId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ if(_describeInstancesType->is_valid_correlationId &&
++ arg_correlationId == _describeInstancesType->property_correlationId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesType_reset_correlationId(_describeInstancesType, env);
++
++
++ if(NULL == arg_correlationId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
++ if(NULL == _describeInstancesType->property_correlationId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
++ return AXIS2_FAILURE;
++ }
++ _describeInstancesType->is_valid_correlationId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for correlationId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_correlationId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeInstancesType->property_correlationId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeInstancesType->property_correlationId);
++ _describeInstancesType->property_correlationId = NULL;
++ }
++
++
++
++ _describeInstancesType->is_valid_correlationId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether correlationId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_correlationId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE);
++
++ return !_describeInstancesType->is_valid_correlationId;
++ }
++
++ /**
++ * Set correlationId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_correlationId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesType_reset_correlationId(_describeInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for userId.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_userId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL);
++
++
++ return _describeInstancesType->property_userId;
++ }
++
++ /**
++ * setter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_userId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ if(_describeInstancesType->is_valid_userId &&
++ arg_userId == _describeInstancesType->property_userId)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesType_reset_userId(_describeInstancesType, env);
++
++
++ if(NULL == arg_userId)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
++ if(NULL == _describeInstancesType->property_userId)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
++ return AXIS2_FAILURE;
++ }
++ _describeInstancesType->is_valid_userId = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for userId
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_userId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeInstancesType->property_userId != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeInstancesType->property_userId);
++ _describeInstancesType->property_userId = NULL;
++ }
++
++
++
++ _describeInstancesType->is_valid_userId = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether userId is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_userId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE);
++
++ return !_describeInstancesType->is_valid_userId;
++ }
++
++ /**
++ * Set userId to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_userId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesType_reset_userId(_describeInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for statusMessage.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_statusMessage(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL);
++
++
++ return _describeInstancesType->property_statusMessage;
++ }
++
++ /**
++ * setter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_statusMessage(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ if(_describeInstancesType->is_valid_statusMessage &&
++ arg_statusMessage == _describeInstancesType->property_statusMessage)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesType_reset_statusMessage(_describeInstancesType, env);
++
++
++ if(NULL == arg_statusMessage)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
++ if(NULL == _describeInstancesType->property_statusMessage)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
++ return AXIS2_FAILURE;
++ }
++ _describeInstancesType->is_valid_statusMessage = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for statusMessage
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_statusMessage(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++
++
++
++
++ if(_describeInstancesType->property_statusMessage != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, _describeInstancesType->property_statusMessage);
++ _describeInstancesType->property_statusMessage = NULL;
++ }
++
++
++
++ _describeInstancesType->is_valid_statusMessage = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether statusMessage is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_statusMessage_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE);
++
++ return !_describeInstancesType->is_valid_statusMessage;
++ }
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_statusMessage_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesType_reset_statusMessage(_describeInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for return.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_get_return(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, (axis2_bool_t)0);
++
++
++ return _describeInstancesType->property_return;
++ }
++
++ /**
++ * setter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_return(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ if(_describeInstancesType->is_valid_return &&
++ arg_return == _describeInstancesType->property_return)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_describeInstancesType_reset_return(_describeInstancesType, env);
++
++ _describeInstancesType->property_return = arg_return;
++ _describeInstancesType->is_valid_return = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for return
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_return(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++
++ _describeInstancesType->is_valid_return = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether return is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_return_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE);
++
++ return !_describeInstancesType->is_valid_return;
++ }
++
++ /**
++ * Set return to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_return_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesType_reset_return(_describeInstancesType, env);
++ }
++
++
++
++ /**
++ * getter for instanceIds.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeInstancesType_get_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL);
++
++
++ return _describeInstancesType->property_instanceIds;
++ }
++
++ /**
++ * setter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds)
++ {
++
++ int size = 0;
++ int i = 0;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ if(_describeInstancesType->is_valid_instanceIds &&
++ arg_instanceIds == _describeInstancesType->property_instanceIds)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ size = axutil_array_list_size(arg_instanceIds, env);
++
++ if (size < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceIds has less than minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++ for(i = 0; i < size; i ++ )
++ {
++ if(NULL != axutil_array_list_get(arg_instanceIds, env, i))
++ {
++ non_nil_exists = AXIS2_TRUE;
++ break;
++ }
++ }
++
++ adb_describeInstancesType_reset_instanceIds(_describeInstancesType, env);
++
++
++ if(NULL == arg_instanceIds)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _describeInstancesType->property_instanceIds = arg_instanceIds;
++ if(non_nil_exists)
++ {
++ _describeInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ }
++
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ /**
++ * Get ith element of instanceIds.
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_instanceIds_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ axis2_char_t* ret_val;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, NULL);
++
++
++ if(_describeInstancesType->property_instanceIds == NULL)
++ {
++ return (axis2_char_t*)0;
++ }
++ ret_val = (axis2_char_t*)axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i);
++
++ return ret_val;
++
++ }
++
++ /**
++ * Set the ith element of instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ int k;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ if( _describeInstancesType->is_valid_instanceIds &&
++ _describeInstancesType->property_instanceIds &&
++
++ arg_instanceIds == (axis2_char_t*)axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i))
++
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++
++ if(NULL == arg_instanceIds)
++ {
++ if(_describeInstancesType->property_instanceIds != NULL)
++ {
++ size = axutil_array_list_size(_describeInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if(k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++ }
++ else
++ {
++ non_nil_exists = AXIS2_TRUE;
++ }
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeInstancesType->property_instanceIds == NULL)
++ {
++ _describeInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++ }
++
++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, axutil_strdup(env, arg_instanceIds));
++ _describeInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Add to instanceIds.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_add_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++
++ if(NULL == arg_instanceIds)
++ {
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++ if(_describeInstancesType->property_instanceIds == NULL)
++ {
++ _describeInstancesType->property_instanceIds = axutil_array_list_create(env, 10);
++ }
++ if(_describeInstancesType->property_instanceIds == NULL)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Failed in allocatting memory for instanceIds");
++ return AXIS2_FAILURE;
++
++ }
++
++ axutil_array_list_add(_describeInstancesType->property_instanceIds , env, axutil_strdup(env, arg_instanceIds));
++ _describeInstancesType->is_valid_instanceIds = AXIS2_TRUE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Get the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_describeInstancesType_sizeof_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, -1);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, -1);
++ if(_describeInstancesType->property_instanceIds == NULL)
++ {
++ return 0;
++ }
++ return axutil_array_list_size(_describeInstancesType->property_instanceIds, env);
++ }
++
++ /**
++ * remove the ith element, same as set_nil_at.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_remove_instanceIds_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ return adb_describeInstancesType_set_instanceIds_nil_at(_describeInstancesType, env, i);
++ }
++
++
++
++ /**
++ * resetter for instanceIds
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++
++
++ if (_describeInstancesType->property_instanceIds != NULL)
++ {
++ count = axutil_array_list_size(_describeInstancesType->property_instanceIds, env);
++ for(i = 0; i < count; i ++)
++ {
++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i);
++
++
++
++ if(element != NULL)
++ {
++
++
++ AXIS2_FREE(env-> allocator, (axis2_char_t*)element);
++ element = NULL;
++ }
++
++
++
++
++ }
++ axutil_array_list_free(_describeInstancesType->property_instanceIds, env);
++ }
++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether instanceIds is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_instanceIds_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE);
++
++ return !_describeInstancesType->is_valid_instanceIds;
++ }
++
++ /**
++ * Set instanceIds to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env)
++ {
++ return adb_describeInstancesType_reset_instanceIds(_describeInstancesType, env);
++ }
++
++
++ /**
++ * Check whether instanceIds is nill at i
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_instanceIds_nil_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_TRUE);
++
++ return (_describeInstancesType->is_valid_instanceIds == AXIS2_FALSE ||
++ NULL == _describeInstancesType->property_instanceIds ||
++ NULL == axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i));
++ }
++
++ /**
++ * Set instanceIds to nill at i
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds_nil_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i)
++ {
++ void *element = NULL;
++ int size = 0;
++ int j;
++ axis2_bool_t non_nil_exists = AXIS2_FALSE;
++
++ int k = 0;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _describeInstancesType, AXIS2_FAILURE);
++
++ if(_describeInstancesType->property_instanceIds == NULL ||
++ _describeInstancesType->is_valid_instanceIds == AXIS2_FALSE)
++ {
++
++ non_nil_exists = AXIS2_FALSE;
++ }
++ else
++ {
++ size = axutil_array_list_size(_describeInstancesType->property_instanceIds, env);
++ for(j = 0, k = 0; j < size; j ++ )
++ {
++ if(i == j) continue;
++ if(NULL != axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i))
++ {
++ k ++;
++ non_nil_exists = AXIS2_TRUE;
++ if( k >= 0)
++ {
++ break;
++ }
++ }
++ }
++ }
++
++
++ if( k < 0)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Size of the array of instanceIds is beinng set to be smaller than the specificed number of minOccurs(0)");
++ return AXIS2_FAILURE;
++ }
++
++ if(_describeInstancesType->property_instanceIds == NULL)
++ {
++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++
++ return AXIS2_SUCCESS;
++ }
++
++ /* check whether there already exist an element */
++ element = axutil_array_list_get(_describeInstancesType->property_instanceIds, env, i);
++ if(NULL != element)
++ {
++
++
++
++ /* This is an unknown type or a primitive. Please free this manually*/
++
++ }
++
++
++ if(!non_nil_exists)
++ {
++
++ _describeInstancesType->is_valid_instanceIds = AXIS2_FALSE;
++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, NULL);
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ axutil_array_list_set(_describeInstancesType->property_instanceIds , env, i, NULL);
++
++ return AXIS2_SUCCESS;
++
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_describeInstancesType.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_describeInstancesType.h
+@@ -0,0 +1,549 @@
++
++
++ #ifndef ADB_DESCRIBEINSTANCESTYPE_H
++ #define ADB_DESCRIBEINSTANCESTYPE_H
++
++ /**
++ * adb_describeInstancesType.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_describeInstancesType class
++ */
++ typedef struct adb_describeInstancesType adb_describeInstancesType_t;
++
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_describeInstancesType_t
++ * @param env pointer to environment struct
++ * @return newly created adb_describeInstancesType_t object
++ */
++ adb_describeInstancesType_t* AXIS2_CALL
++ adb_describeInstancesType_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_describeInstancesType_t object
++ * @param _describeInstancesType adb_describeInstancesType_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_free (
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++ /******** Deprecated for array types, Use 'Getters and Setters for Arrays' instead ***********/
++
++
++ /**
++ * Getter for correlationId.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_correlationId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for correlationId.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_correlationId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_correlationId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_correlationId);
++
++ /**
++ * Resetter for correlationId
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_correlationId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for userId.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_userId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for userId.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_userId axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_userId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_userId);
++
++ /**
++ * Resetter for userId
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_userId(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for statusMessage.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_char_t*
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_statusMessage(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for statusMessage.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_statusMessage axis2_char_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_statusMessage(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_statusMessage);
++
++ /**
++ * Resetter for statusMessage
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_statusMessage(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for return.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return axis2_bool_t
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_get_return(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for return.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_return axis2_bool_t
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_return(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ axis2_bool_t arg_return);
++
++ /**
++ * Resetter for return
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_return(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Getter for instanceIds. Deprecated for array types, Use adb_describeInstancesType_get_instanceIds_at instead
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return Array of axis2_char_t*s.
++ */
++ axutil_array_list_t* AXIS2_CALL
++ adb_describeInstancesType_get_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for instanceIds.Deprecated for array types, Use adb_describeInstancesType_set_instanceIds_at
++ * or adb_describeInstancesType_add_instanceIds instead.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds Array of axis2_char_t*s.
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ axutil_array_list_t* arg_instanceIds);
++
++ /**
++ * Resetter for instanceIds
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_reset_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++ /****************************** Getters and Setters For Arrays **********************************/
++ /************ Array Specific Operations: get_at, set_at, add, remove_at, sizeof *****************/
++
++ /**
++ * E.g. use of get_at, set_at, add and sizeof
++ *
++ * for(i = 0; i < adb_element_sizeof_property(adb_object, env); i ++ )
++ * {
++ * // Getting ith value to property_object variable
++ * property_object = adb_element_get_property_at(adb_object, env, i);
++ *
++ * // Setting ith value from property_object variable
++ * adb_element_set_property_at(adb_object, env, i, property_object);
++ *
++ * // Appending the value to the end of the array from property_object variable
++ * adb_element_add_property(adb_object, env, property_object);
++ *
++ * // Removing the ith value from an array
++ * adb_element_remove_property_at(adb_object, env, i);
++ *
++ * }
++ *
++ */
++
++
++
++ /**
++ * Get the ith element of instanceIds.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_char_t* AXIS2_CALL
++ adb_describeInstancesType_get_instanceIds_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i);
++
++ /**
++ * Set the ith element of instanceIds. (If the ith already exist, it will be replaced)
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to return
++ * @param arg_instanceIds element to set axis2_char_t* to the array
++ * @return ith axis2_char_t* of the array
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i,
++ const axis2_char_t* arg_instanceIds);
++
++
++ /**
++ * Add to instanceIds.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param arg_instanceIds element to add axis2_char_t* to the array
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_add_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ const axis2_char_t* arg_instanceIds);
++
++ /**
++ * Get the size of the instanceIds array.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct.
++ * @return the size of the instanceIds array.
++ */
++ int AXIS2_CALL
++ adb_describeInstancesType_sizeof_instanceIds(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++ /**
++ * Remove the ith element of instanceIds.
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param i index of the item to remove
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_remove_instanceIds_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++ /* Use 'Checking and Setting NIL values for Arrays' to check and set nil for individual elements */
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether correlationId is nill
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_correlationId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether userId is nill
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_userId_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether statusMessage is nill
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_statusMessage_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set statusMessage to nill (currently the same as reset)
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_statusMessage_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++ /**
++ * Check whether return is nill
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_return_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++
++ /**
++ * Check whether instanceIds is nill
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_instanceIds_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set instanceIds to nill (currently the same as reset)
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds_nil(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env);
++
++ /*************************** Checking and Setting 'NIL' values in Arrays *****************************/
++
++ /**
++ * NOTE: You may set this to remove specific elements in the array
++ * But you can not remove elements, if the specific property is declared to be non-nillable or sizeof(array) < minOccurs
++ */
++
++ /**
++ * Check whether instanceIds is nill at i
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to return.
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_instanceIds_nil_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i);
++
++
++ /**
++ * Set instanceIds to nill at i
++ * @param _describeInstancesType _ adb_describeInstancesType_t object
++ * @param env pointer to environment struct.
++ * @param i index of the item to set.
++ * @return AXIS2_SUCCESS on success, or AXIS2_FAILURE otherwise.
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_set_instanceIds_nil_at(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, int i);
++
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_describeInstancesType_deserialize(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_describeInstancesType_declare_parent_namespaces(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _describeInstancesType adb_describeInstancesType_t object
++ * @param env pointer to environment struct
++ * @param describeInstancesType_om_node node to serialize from
++ * @param describeInstancesType_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_describeInstancesType_serialize(
++ adb_describeInstancesType_t* _describeInstancesType,
++ const axutil_env_t *env,
++ axiom_node_t* describeInstancesType_om_node, axiom_element_t *describeInstancesType_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_describeInstancesType is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_describeInstancesType_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_DESCRIBEINSTANCESTYPE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstancesResponse.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstancesResponse.c
+@@ -0,0 +1,525 @@
++
++
++ /**
++ * adb_RunInstancesResponse.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_RunInstancesResponse.h"
++
++ /*
++ * implmentation of the RunInstancesResponse|http://eucalyptus.ucsb.edu/ element
++ */
++
++
++
++ struct adb_RunInstancesResponse
++ {
++
++ axutil_qname_t* qname;
++ adb_runInstancesResponseType_t* property_RunInstancesResponse;
++
++
++ axis2_bool_t is_valid_RunInstancesResponse;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_RunInstancesResponse_t* AXIS2_CALL
++ adb_RunInstancesResponse_create(
++ const axutil_env_t *env)
++ {
++ adb_RunInstancesResponse_t *_RunInstancesResponse = NULL;
++
++ axutil_qname_t* qname = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _RunInstancesResponse = (adb_RunInstancesResponse_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_RunInstancesResponse_t));
++
++ if(NULL == _RunInstancesResponse)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_RunInstancesResponse, 0, sizeof(adb_RunInstancesResponse_t));
++
++ _RunInstancesResponse->property_RunInstancesResponse = NULL;
++ _RunInstancesResponse->is_valid_RunInstancesResponse = AXIS2_FALSE;
++
++ qname = axutil_qname_create (env,
++ "RunInstancesResponse",
++ "http://eucalyptus.ucsb.edu/",
++ NULL);
++ _RunInstancesResponse->qname = qname;
++
++
++ return _RunInstancesResponse;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_free (
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE);
++
++ adb_RunInstancesResponse_reset_RunInstancesResponse(_RunInstancesResponse, env);
++
++ if(_RunInstancesResponse->qname)
++ {
++ axutil_qname_free (_RunInstancesResponse->qname, env);
++ _RunInstancesResponse->qname = NULL;
++ }
++
++
++ if(_RunInstancesResponse)
++ {
++ AXIS2_FREE(env->allocator, _RunInstancesResponse);
++ _RunInstancesResponse = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_deserialize(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for RunInstancesResponse : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env);
++ qname = axiom_element_get_qname(current_element, env, parent);
++ if (axutil_qname_equals(qname, env, _RunInstancesResponse-> qname))
++ {
++
++ first_node = parent;
++
++ }
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for RunInstancesResponse : "
++ "Expected %s but returned %s",
++ axutil_qname_to_string(_RunInstancesResponse-> qname, env),
++ axutil_qname_to_string(qname, env));
++
++ return AXIS2_FAILURE;
++ }
++
++
++
++ /*
++ * building RunInstancesResponse element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "RunInstancesResponse", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (adb_runInstancesResponseType_is_particle() ||
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ element = (void*)adb_runInstancesResponseType_create(env);
++
++ status = adb_runInstancesResponseType_deserialize((adb_runInstancesResponseType_t*)element,
++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element RunInstancesResponse");
++ }
++ else
++ {
++ status = adb_RunInstancesResponse_set_RunInstancesResponse(_RunInstancesResponse, env,
++ (adb_runInstancesResponseType_t*)element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for RunInstancesResponse ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element RunInstancesResponse missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstancesResponse_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_RunInstancesResponse_declare_parent_namespaces(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_RunInstancesResponse_serialize(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t text_value_1[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++ int next_ns_index_value = 0;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, NULL);
++
++
++ namespaces = axutil_hash_make(env);
++ next_ns_index = &next_ns_index_value;
++
++ ns1 = axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ "n");
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));
++
++
++ parent_element = axiom_element_create (env, NULL, "RunInstancesResponse", ns1 , &parent);
++
++
++ axiom_element_set_namespace(parent_element, env, ns1, parent);
++
++
++
++ data_source = axiom_data_source_create(env, parent, ¤t_node);
++ stream = axiom_data_source_get_stream(data_source, env);
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_RunInstancesResponse->is_valid_RunInstancesResponse)
++ {
++
++
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) +
++ axutil_strlen("RunInstancesResponse") +
++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"")));
++
++
++ sprintf(start_input_str, "<%s%sRunInstancesResponse xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str));
++ AXIS2_FREE(env->allocator,start_input_str);
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("RunInstancesResponse")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("RunInstancesResponse")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing RunInstancesResponse element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sRunInstancesResponse",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sRunInstancesResponse>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ adb_runInstancesResponseType_serialize(_RunInstancesResponse->property_RunInstancesResponse,
++ env, current_node, parent_element,
++ adb_runInstancesResponseType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(namespaces)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, NULL, NULL, &val);
++ AXIS2_FREE(env->allocator, val);
++ }
++ axutil_hash_free(namespaces, env);
++ }
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for RunInstancesResponse.
++ */
++ adb_runInstancesResponseType_t* AXIS2_CALL
++ adb_RunInstancesResponse_get_RunInstancesResponse(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, NULL);
++
++
++ return _RunInstancesResponse->property_RunInstancesResponse;
++ }
++
++ /**
++ * setter for RunInstancesResponse
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_set_RunInstancesResponse(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env,
++ adb_runInstancesResponseType_t* arg_RunInstancesResponse)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE);
++
++ if(_RunInstancesResponse->is_valid_RunInstancesResponse &&
++ arg_RunInstancesResponse == _RunInstancesResponse->property_RunInstancesResponse)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_RunInstancesResponse_reset_RunInstancesResponse(_RunInstancesResponse, env);
++
++
++ if(NULL == arg_RunInstancesResponse)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _RunInstancesResponse->property_RunInstancesResponse = arg_RunInstancesResponse;
++ _RunInstancesResponse->is_valid_RunInstancesResponse = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for RunInstancesResponse
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_reset_RunInstancesResponse(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_FAILURE);
++
++
++
++
++
++ if(_RunInstancesResponse->property_RunInstancesResponse != NULL)
++ {
++
++
++ adb_runInstancesResponseType_free(_RunInstancesResponse->property_RunInstancesResponse, env);
++ _RunInstancesResponse->property_RunInstancesResponse = NULL;
++ }
++
++
++
++ _RunInstancesResponse->is_valid_RunInstancesResponse = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether RunInstancesResponse is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstancesResponse_is_RunInstancesResponse_nil(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstancesResponse, AXIS2_TRUE);
++
++ return !_RunInstancesResponse->is_valid_RunInstancesResponse;
++ }
++
++ /**
++ * Set RunInstancesResponse to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_set_RunInstancesResponse_nil(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env)
++ {
++ return adb_RunInstancesResponse_reset_RunInstancesResponse(_RunInstancesResponse, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstancesResponse.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstancesResponse.h
+@@ -0,0 +1,208 @@
++
++
++ #ifndef ADB_RUNINSTANCESRESPONSE_H
++ #define ADB_RUNINSTANCESRESPONSE_H
++
++ /**
++ * adb_RunInstancesResponse.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_RunInstancesResponse class
++ */
++ typedef struct adb_RunInstancesResponse adb_RunInstancesResponse_t;
++
++
++ #include "adb_runInstancesResponseType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_RunInstancesResponse_t
++ * @param env pointer to environment struct
++ * @return newly created adb_RunInstancesResponse_t object
++ */
++ adb_RunInstancesResponse_t* AXIS2_CALL
++ adb_RunInstancesResponse_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_RunInstancesResponse_t object
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_free (
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for RunInstancesResponse.
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @return adb_runInstancesResponseType_t*
++ */
++ adb_runInstancesResponseType_t* AXIS2_CALL
++ adb_RunInstancesResponse_get_RunInstancesResponse(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for RunInstancesResponse.
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @param arg_RunInstancesResponse adb_runInstancesResponseType_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_set_RunInstancesResponse(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env,
++ adb_runInstancesResponseType_t* arg_RunInstancesResponse);
++
++ /**
++ * Resetter for RunInstancesResponse
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_reset_RunInstancesResponse(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether RunInstancesResponse is nill
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstancesResponse_is_RunInstancesResponse_nil(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set RunInstancesResponse to nill (currently the same as reset)
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_set_RunInstancesResponse_nil(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env);
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstancesResponse_deserialize(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_RunInstancesResponse_declare_parent_namespaces(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _RunInstancesResponse adb_RunInstancesResponse_t object
++ * @param env pointer to environment struct
++ * @param RunInstancesResponse_om_node node to serialize from
++ * @param RunInstancesResponse_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_RunInstancesResponse_serialize(
++ adb_RunInstancesResponse_t* _RunInstancesResponse,
++ const axutil_env_t *env,
++ axiom_node_t* RunInstancesResponse_om_node, axiom_element_t *RunInstancesResponse_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_RunInstancesResponse is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstancesResponse_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_RUNINSTANCESRESPONSE_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstances.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstances.c
+@@ -0,0 +1,525 @@
++
++
++ /**
++ * adb_RunInstances.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_RunInstances.h"
++
++ /*
++ * implmentation of the RunInstances|http://eucalyptus.ucsb.edu/ element
++ */
++
++
++
++ struct adb_RunInstances
++ {
++
++ axutil_qname_t* qname;
++ adb_runInstancesType_t* property_RunInstances;
++
++
++ axis2_bool_t is_valid_RunInstances;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_RunInstances_t* AXIS2_CALL
++ adb_RunInstances_create(
++ const axutil_env_t *env)
++ {
++ adb_RunInstances_t *_RunInstances = NULL;
++
++ axutil_qname_t* qname = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _RunInstances = (adb_RunInstances_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_RunInstances_t));
++
++ if(NULL == _RunInstances)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_RunInstances, 0, sizeof(adb_RunInstances_t));
++
++ _RunInstances->property_RunInstances = NULL;
++ _RunInstances->is_valid_RunInstances = AXIS2_FALSE;
++
++ qname = axutil_qname_create (env,
++ "RunInstances",
++ "http://eucalyptus.ucsb.edu/",
++ NULL);
++ _RunInstances->qname = qname;
++
++
++ return _RunInstances;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_free (
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE);
++
++ adb_RunInstances_reset_RunInstances(_RunInstances, env);
++
++ if(_RunInstances->qname)
++ {
++ axutil_qname_free (_RunInstances->qname, env);
++ _RunInstances->qname = NULL;
++ }
++
++
++ if(_RunInstances)
++ {
++ AXIS2_FREE(env->allocator, _RunInstances);
++ _RunInstances = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_deserialize(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for RunInstances : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env);
++ qname = axiom_element_get_qname(current_element, env, parent);
++ if (axutil_qname_equals(qname, env, _RunInstances-> qname))
++ {
++
++ first_node = parent;
++
++ }
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for RunInstances : "
++ "Expected %s but returned %s",
++ axutil_qname_to_string(_RunInstances-> qname, env),
++ axutil_qname_to_string(qname, env));
++
++ return AXIS2_FAILURE;
++ }
++
++
++
++ /*
++ * building RunInstances element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "RunInstances", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (adb_runInstancesType_is_particle() ||
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ element = (void*)adb_runInstancesType_create(env);
++
++ status = adb_runInstancesType_deserialize((adb_runInstancesType_t*)element,
++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element RunInstances");
++ }
++ else
++ {
++ status = adb_RunInstances_set_RunInstances(_RunInstances, env,
++ (adb_runInstancesType_t*)element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for RunInstances ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element RunInstances missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstances_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_RunInstances_declare_parent_namespaces(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_RunInstances_serialize(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t text_value_1[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++ int next_ns_index_value = 0;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _RunInstances, NULL);
++
++
++ namespaces = axutil_hash_make(env);
++ next_ns_index = &next_ns_index_value;
++
++ ns1 = axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ "n");
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));
++
++
++ parent_element = axiom_element_create (env, NULL, "RunInstances", ns1 , &parent);
++
++
++ axiom_element_set_namespace(parent_element, env, ns1, parent);
++
++
++
++ data_source = axiom_data_source_create(env, parent, ¤t_node);
++ stream = axiom_data_source_get_stream(data_source, env);
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_RunInstances->is_valid_RunInstances)
++ {
++
++
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) +
++ axutil_strlen("RunInstances") +
++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"")));
++
++
++ sprintf(start_input_str, "<%s%sRunInstances xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str));
++ AXIS2_FREE(env->allocator,start_input_str);
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("RunInstances")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("RunInstances")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing RunInstances element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sRunInstances",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sRunInstances>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ adb_runInstancesType_serialize(_RunInstances->property_RunInstances,
++ env, current_node, parent_element,
++ adb_runInstancesType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(namespaces)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, NULL, NULL, &val);
++ AXIS2_FREE(env->allocator, val);
++ }
++ axutil_hash_free(namespaces, env);
++ }
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for RunInstances.
++ */
++ adb_runInstancesType_t* AXIS2_CALL
++ adb_RunInstances_get_RunInstances(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _RunInstances, NULL);
++
++
++ return _RunInstances->property_RunInstances;
++ }
++
++ /**
++ * setter for RunInstances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_set_RunInstances(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env,
++ adb_runInstancesType_t* arg_RunInstances)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE);
++
++ if(_RunInstances->is_valid_RunInstances &&
++ arg_RunInstances == _RunInstances->property_RunInstances)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_RunInstances_reset_RunInstances(_RunInstances, env);
++
++
++ if(NULL == arg_RunInstances)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _RunInstances->property_RunInstances = arg_RunInstances;
++ _RunInstances->is_valid_RunInstances = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for RunInstances
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_reset_RunInstances(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_FAILURE);
++
++
++
++
++
++ if(_RunInstances->property_RunInstances != NULL)
++ {
++
++
++ adb_runInstancesType_free(_RunInstances->property_RunInstances, env);
++ _RunInstances->property_RunInstances = NULL;
++ }
++
++
++
++ _RunInstances->is_valid_RunInstances = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether RunInstances is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstances_is_RunInstances_nil(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _RunInstances, AXIS2_TRUE);
++
++ return !_RunInstances->is_valid_RunInstances;
++ }
++
++ /**
++ * Set RunInstances to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_set_RunInstances_nil(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env)
++ {
++ return adb_RunInstances_reset_RunInstances(_RunInstances, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_RunInstances.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_RunInstances.h
+@@ -0,0 +1,208 @@
++
++
++ #ifndef ADB_RUNINSTANCES_H
++ #define ADB_RUNINSTANCES_H
++
++ /**
++ * adb_RunInstances.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_RunInstances class
++ */
++ typedef struct adb_RunInstances adb_RunInstances_t;
++
++
++ #include "adb_runInstancesType.h"
++
++
++ #include
++ #include
++ #include
++ #include
++ #include
++
++ #ifdef __cplusplus
++ extern "C"
++ {
++ #endif
++
++ #define ADB_DEFAULT_DIGIT_LIMIT 64
++ #define ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT 64
++
++
++ /******************************* Create and Free functions *********************************/
++
++ /**
++ * Constructor for creating adb_RunInstances_t
++ * @param env pointer to environment struct
++ * @return newly created adb_RunInstances_t object
++ */
++ adb_RunInstances_t* AXIS2_CALL
++ adb_RunInstances_create(
++ const axutil_env_t *env );
++
++ /**
++ * Free adb_RunInstances_t object
++ * @param _RunInstances adb_RunInstances_t object to free
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_free (
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env);
++
++
++
++ /********************************** Getters and Setters **************************************/
++
++
++
++ /**
++ * Getter for RunInstances.
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @return adb_runInstancesType_t*
++ */
++ adb_runInstancesType_t* AXIS2_CALL
++ adb_RunInstances_get_RunInstances(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for RunInstances.
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @param arg_RunInstances adb_runInstancesType_t*
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_set_RunInstances(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env,
++ adb_runInstancesType_t* arg_RunInstances);
++
++ /**
++ * Resetter for RunInstances
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_reset_RunInstances(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env);
++
++
++
++
++ /******************************* Checking and Setting NIL values *********************************/
++
++
++ /**
++ * NOTE: set_nil is only available for nillable properties
++ */
++
++
++
++ /**
++ * Check whether RunInstances is nill
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_TRUE if the element is nil or AXIS2_FALSE otherwise
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstances_is_RunInstances_nil(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env);
++
++
++
++ /**
++ * Set RunInstances to nill (currently the same as reset)
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_set_RunInstances_nil(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env);
++
++
++ /**************************** Serialize and Deserialize functions ***************************/
++ /*********** These functions are for use only inside the generated code *********************/
++
++
++ /**
++ * Deserialize an XML to adb objects
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @param dp_parent double pointer to the parent node to deserialize
++ * @param dp_is_early_node_valid double pointer to a flag (is_early_node_valid?)
++ * @param dont_care_minoccurs Dont set errors on validating minoccurs,
++ * (Parent will order this in a case of choice)
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_RunInstances_deserialize(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env,
++ axiom_node_t** dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs);
++
++
++
++ /**
++ * Declare namespace in the most parent node
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @param parent_element parent element
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index pointer to an int which contain the next namespace index
++ */
++ void AXIS2_CALL
++ adb_RunInstances_declare_parent_namespaces(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index);
++
++
++
++ /**
++ * Serialize to an XML from the adb objects
++ * @param _RunInstances adb_RunInstances_t object
++ * @param env pointer to environment struct
++ * @param RunInstances_om_node node to serialize from
++ * @param RunInstances_om_element parent element to serialize from
++ * @param tag_closed whether the parent tag is closed or not
++ * @param namespaces hash of namespace uri to prefix
++ * @param next_ns_index an int which contain the next namespace index
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axiom_node_t* AXIS2_CALL
++ adb_RunInstances_serialize(
++ adb_RunInstances_t* _RunInstances,
++ const axutil_env_t *env,
++ axiom_node_t* RunInstances_om_node, axiom_element_t *RunInstances_om_element, int tag_closed, axutil_hash_t *namespaces, int *next_ns_index);
++
++ /**
++ * Check whether the adb_RunInstances is a particle class (E.g. group, inner sequence)
++ * @return whether this is a particle class.
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_RunInstances_is_particle();
++
++
++ #ifdef __cplusplus
++ }
++ #endif
++
++ #endif /* ADB_RUNINSTANCES_H */
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DetachVolume.c
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DetachVolume.c
+@@ -0,0 +1,525 @@
++
++
++ /**
++ * adb_DetachVolume.c
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
++ */
++
++ #include "adb_DetachVolume.h"
++
++ /*
++ * implmentation of the DetachVolume|http://eucalyptus.ucsb.edu/ element
++ */
++
++
++
++ struct adb_DetachVolume
++ {
++
++ axutil_qname_t* qname;
++ adb_detachVolumeType_t* property_DetachVolume;
++
++
++ axis2_bool_t is_valid_DetachVolume;
++
++
++
++ };
++
++
++ /************************* Private Function prototypes ********************************/
++
++
++
++ /************************* Function Implmentations ********************************/
++ adb_DetachVolume_t* AXIS2_CALL
++ adb_DetachVolume_create(
++ const axutil_env_t *env)
++ {
++ adb_DetachVolume_t *_DetachVolume = NULL;
++
++ axutil_qname_t* qname = NULL;
++
++ AXIS2_ENV_CHECK(env, NULL);
++
++ _DetachVolume = (adb_DetachVolume_t *) AXIS2_MALLOC(env->
++ allocator, sizeof(adb_DetachVolume_t));
++
++ if(NULL == _DetachVolume)
++ {
++ AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
++ return NULL;
++ }
++
++ memset(_DetachVolume, 0, sizeof(adb_DetachVolume_t));
++
++ _DetachVolume->property_DetachVolume = NULL;
++ _DetachVolume->is_valid_DetachVolume = AXIS2_FALSE;
++
++ qname = axutil_qname_create (env,
++ "DetachVolume",
++ "http://eucalyptus.ucsb.edu/",
++ NULL);
++ _DetachVolume->qname = qname;
++
++
++ return _DetachVolume;
++ }
++
++ axis2_status_t AXIS2_CALL
++ adb_DetachVolume_free (
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE);
++
++ adb_DetachVolume_reset_DetachVolume(_DetachVolume, env);
++
++ if(_DetachVolume->qname)
++ {
++ axutil_qname_free (_DetachVolume->qname, env);
++ _DetachVolume->qname = NULL;
++ }
++
++
++ if(_DetachVolume)
++ {
++ AXIS2_FREE(env->allocator, _DetachVolume);
++ _DetachVolume = NULL;
++ }
++ return AXIS2_SUCCESS;
++ }
++
++
++
++
++ axis2_status_t AXIS2_CALL
++ adb_DetachVolume_deserialize(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env,
++ axiom_node_t **dp_parent,
++ axis2_bool_t *dp_is_early_node_valid,
++ axis2_bool_t dont_care_minoccurs)
++ {
++ axiom_node_t *parent = *dp_parent;
++
++ axis2_status_t status = AXIS2_SUCCESS;
++
++ void *element = NULL;
++
++ axis2_char_t* text_value = NULL;
++ axutil_qname_t *qname = NULL;
++
++ axutil_qname_t *element_qname = NULL;
++
++ axiom_node_t *first_node = NULL;
++ axis2_bool_t is_early_node_valid = AXIS2_TRUE;
++ axiom_node_t *current_node = NULL;
++ axiom_element_t *current_element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE);
++
++
++
++ while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
++ {
++ parent = axiom_node_get_next_sibling(parent, env);
++ }
++ if (NULL == parent)
++ {
++ /* This should be checked before everything */
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for DetachVolume : "
++ "NULL elemenet can not be passed to deserialize");
++ return AXIS2_FAILURE;
++ }
++
++
++ current_element = (axiom_element_t *)axiom_node_get_data_element(parent, env);
++ qname = axiom_element_get_qname(current_element, env, parent);
++ if (axutil_qname_equals(qname, env, _DetachVolume-> qname))
++ {
++
++ first_node = parent;
++
++ }
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
++ "Failed in building adb object for DetachVolume : "
++ "Expected %s but returned %s",
++ axutil_qname_to_string(_DetachVolume-> qname, env),
++ axutil_qname_to_string(qname, env));
++
++ return AXIS2_FAILURE;
++ }
++
++
++
++ /*
++ * building DetachVolume element
++ */
++
++
++
++ current_node = first_node;
++ is_early_node_valid = AXIS2_FALSE;
++
++
++ while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
++ {
++ current_node = axiom_node_get_next_sibling(current_node, env);
++ }
++ if(current_node != NULL)
++ {
++ current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
++ qname = axiom_element_get_qname(current_element, env, current_node);
++ }
++
++ element_qname = axutil_qname_create(env, "DetachVolume", "http://eucalyptus.ucsb.edu/", NULL);
++
++
++ if (adb_detachVolumeType_is_particle() ||
++ (current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
++ {
++ if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
++ {
++ is_early_node_valid = AXIS2_TRUE;
++ }
++
++
++ element = (void*)adb_detachVolumeType_create(env);
++
++ status = adb_detachVolumeType_deserialize((adb_detachVolumeType_t*)element,
++ env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element DetachVolume");
++ }
++ else
++ {
++ status = adb_DetachVolume_set_DetachVolume(_DetachVolume, env,
++ (adb_detachVolumeType_t*)element);
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for DetachVolume ");
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ return AXIS2_FAILURE;
++ }
++ }
++
++ else if(!dont_care_minoccurs)
++ {
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ }
++ /* this is not a nillable element*/
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element DetachVolume missing");
++ return AXIS2_FAILURE;
++ }
++
++ if(element_qname)
++ {
++ axutil_qname_free(element_qname, env);
++ element_qname = NULL;
++ }
++
++ return status;
++ }
++
++ axis2_bool_t AXIS2_CALL
++ adb_DetachVolume_is_particle()
++ {
++
++ return AXIS2_FALSE;
++
++ }
++
++
++ void AXIS2_CALL
++ adb_DetachVolume_declare_parent_namespaces(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env, axiom_element_t *parent_element,
++ axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++ /* Here this is an empty function, Nothing to declare */
++
++ }
++
++
++
++ axiom_node_t* AXIS2_CALL
++ adb_DetachVolume_serialize(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
++ {
++
++
++
++ axiom_node_t *current_node = NULL;
++ int tag_closed = 0;
++
++
++
++ axiom_namespace_t *ns1 = NULL;
++
++ axis2_char_t *qname_uri = NULL;
++ axis2_char_t *qname_prefix = NULL;
++ axis2_char_t *p_prefix = NULL;
++ axis2_bool_t ns_already_defined;
++
++ axis2_char_t text_value_1[64];
++
++ axis2_char_t *start_input_str = NULL;
++ axis2_char_t *end_input_str = NULL;
++ unsigned int start_input_str_len = 0;
++ unsigned int end_input_str_len = 0;
++
++
++ axiom_data_source_t *data_source = NULL;
++ axutil_stream_t *stream = NULL;
++
++
++ int next_ns_index_value = 0;
++
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, NULL);
++
++
++ namespaces = axutil_hash_make(env);
++ next_ns_index = &next_ns_index_value;
++
++ ns1 = axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ "n");
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, axutil_strdup(env, "n"));
++
++
++ parent_element = axiom_element_create (env, NULL, "DetachVolume", ns1 , &parent);
++
++
++ axiom_element_set_namespace(parent_element, env, ns1, parent);
++
++
++
++ data_source = axiom_data_source_create(env, parent, ¤t_node);
++ stream = axiom_data_source_get_stream(data_source, env);
++
++ if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
++ {
++ p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
++ sprintf(p_prefix, "n%d", (*next_ns_index)++);
++ axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
++
++ axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
++ "http://eucalyptus.ucsb.edu/",
++ p_prefix));
++ }
++
++
++ if (!_DetachVolume->is_valid_DetachVolume)
++ {
++
++
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) +
++ axutil_strlen("DetachVolume") +
++ axutil_strlen(" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"")));
++
++
++ sprintf(start_input_str, "<%s%sDetachVolume xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:nil=\"1\"/>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ axutil_stream_write(stream, env, start_input_str, axutil_strlen(start_input_str));
++ AXIS2_FREE(env->allocator,start_input_str);
++
++ }
++ else
++ {
++ start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (4 + axutil_strlen(p_prefix) +
++ axutil_strlen("DetachVolume")));
++
++ /* axutil_strlen("<:>") + 1 = 4 */
++ end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
++ (5 + axutil_strlen(p_prefix) + axutil_strlen("DetachVolume")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing DetachVolume element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%sDetachVolume",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%sDetachVolume>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ adb_detachVolumeType_serialize(_DetachVolume->property_DetachVolume,
++ env, current_node, parent_element,
++ adb_detachVolumeType_is_particle() || AXIS2_TRUE, namespaces, next_ns_index);
++
++
++ AXIS2_FREE(env->allocator,start_input_str);
++ AXIS2_FREE(env->allocator,end_input_str);
++ }
++
++
++ if(namespaces)
++ {
++ axutil_hash_index_t *hi;
++ void *val;
++ for (hi = axutil_hash_first(namespaces, env); hi; hi = axutil_hash_next(env, hi))
++ {
++ axutil_hash_this(hi, NULL, NULL, &val);
++ AXIS2_FREE(env->allocator, val);
++ }
++ axutil_hash_free(namespaces, env);
++ }
++
++
++ return parent;
++ }
++
++
++
++
++ /**
++ * getter for DetachVolume.
++ */
++ adb_detachVolumeType_t* AXIS2_CALL
++ adb_DetachVolume_get_DetachVolume(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, NULL);
++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, NULL);
++
++
++ return _DetachVolume->property_DetachVolume;
++ }
++
++ /**
++ * setter for DetachVolume
++ */
++ axis2_status_t AXIS2_CALL
++ adb_DetachVolume_set_DetachVolume(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env,
++ adb_detachVolumeType_t* arg_DetachVolume)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE);
++
++ if(_DetachVolume->is_valid_DetachVolume &&
++ arg_DetachVolume == _DetachVolume->property_DetachVolume)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_DetachVolume_reset_DetachVolume(_DetachVolume, env);
++
++
++ if(NULL == arg_DetachVolume)
++ {
++ /* We are already done */
++ return AXIS2_SUCCESS;
++ }
++ _DetachVolume->property_DetachVolume = arg_DetachVolume;
++ _DetachVolume->is_valid_DetachVolume = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for DetachVolume
++ */
++ axis2_status_t AXIS2_CALL
++ adb_DetachVolume_reset_DetachVolume(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env)
++ {
++ int i = 0;
++ int count = 0;
++ void *element = NULL;
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_FAILURE);
++
++
++
++
++
++ if(_DetachVolume->property_DetachVolume != NULL)
++ {
++
++
++ adb_detachVolumeType_free(_DetachVolume->property_DetachVolume, env);
++ _DetachVolume->property_DetachVolume = NULL;
++ }
++
++
++
++ _DetachVolume->is_valid_DetachVolume = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether DetachVolume is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_DetachVolume_is_DetachVolume_nil(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env)
++ {
++ AXIS2_ENV_CHECK(env, AXIS2_TRUE);
++ AXIS2_PARAM_CHECK(env->error, _DetachVolume, AXIS2_TRUE);
++
++ return !_DetachVolume->is_valid_DetachVolume;
++ }
++
++ /**
++ * Set DetachVolume to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_DetachVolume_set_DetachVolume_nil(
++ adb_DetachVolume_t* _DetachVolume,
++ const axutil_env_t *env)
++ {
++ return adb_DetachVolume_reset_DetachVolume(_DetachVolume, env);
++ }
++
++
++
+--- eucalyptus-1.6~bzr452.orig/cluster/generated/adb_DetachVolume.h
++++ eucalyptus-1.6~bzr452/cluster/generated/adb_DetachVolume.h
+@@ -0,0 +1,208 @@
++
++
++ #ifndef ADB_DETACHVOLUME_H
++ #define ADB_DETACHVOLUME_H
++
++ /**
++ * adb_DetachVolume.h
++ *
++ * This file was auto-generated from WSDL
++ * by the Apache Axis2/Java version: #axisVersion# #today#
++ */
++
++ /**
++ * adb_DetachVolume class
++ */
++ typedef struct adb_DetachVolume adb_DetachVolume_t;
++
++
++ #include "adb_detachVolumeType.h"
++
++
++ #include
++ #include
++ #include