--- eucalyptus-1.6~bzr931.orig/cluster/Makefile
+++ eucalyptus-1.6~bzr931/cluster/Makefile
@@ -24,18 +24,23 @@
build: all
generated/stubs: $(CCWSDL)
- rm -rf generated
- mkdir -p generated
- @echo Generating client stubs
- sh $(WSDL2C) -uri $(CCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'
- @echo Generating NCclient stubs
- sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'
- @echo Generating server stubs
- sh $(WSDL2C) -uri $(CCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath'
- @echo Adding marshalling calls to server stubs
- ../tools/add_marshalling.pl generated/axis2_skel_*.c
+ if test -n "$(REBUILD_STUBS)"; \
+ then \
+ rm -rf generated; \
+ mkdir -p generated; \
+ echo Generating client stubs; \
+ sh $(WSDL2C) -uri $(CCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'; \
+ echo Generating NCclient stubs; \
+ sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'; \
+ echo Generating server stubs; \
+ sh $(WSDL2C) -uri $(CCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath'; \
+ echo Adding marshalling calls to server stubs; \
+ ../tools/add_marshalling.pl generated/axis2_skel_*.c; \
+ echo Patching; \
+ patch -d generated -p1 < axis2_svc_generated.patch; \
+ fi
@echo Compiling the stubs
- cd generated; patch -p1 < ../axis2_svc_generated.patch; $(CC) -c $(CFLAGS) $(INCLUDES) *.c
+ cd generated; $(CC) -c $(CFLAGS) $(INCLUDES) *.c
@echo "this is a cute little makefile marker" >generated/stubs
@echo Stubs generated.
@@ -77,7 +82,9 @@
rm -f $(SERVICE_SO) *.o $(CLIENTKILLALL) $(CLIENT)_full *~* *#*
distclean: clean
- rm -rf generated
+ find generated -name '*.o' -print0 | xargs -0 rm -f
+ test -e generated/stubs && cd generated && patch -R -p1 < ../axis2_svc_generated.patch
+ rm -f generated/stubs
install: deploy
@$(INSTALL) -m 0555 $(CLIENTKILLALL) $(sbindir)
--- eucalyptus-1.6~bzr931.orig/cluster/handlers.c
+++ eucalyptus-1.6~bzr931/cluster/handlers.c
@@ -350,7 +350,7 @@
ret = 1;
} else {
if (!allocated) {
- snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/32 dev %s", config->eucahome, src, vnetconfig->pubInterface);
+ snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/32 dev %s:pub label %s:pub", config->eucahome, src, vnetconfig->pubInterface, vnetconfig->pubInterface);
logprintfl(EUCAINFO,"running cmd %s\n", cmd);
rc = system(cmd);
rc = rc>>8;
@@ -2418,7 +2418,7 @@
// restore ip addresses
logprintfl(EUCAINFO, "restarting ips\n");
if (!strcmp(vnetconfig->mode, "MANAGED") || !strcmp(vnetconfig->mode, "MANAGED-NOVLAN")) {
- snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254/32 scope link dev %s", config->eucahome, vnetconfig->privInterface);
+ snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254/32 scope link dev %s:metadata label %s:metadata", config->eucahome, vnetconfig->privInterface, vnetconfig->privInterface);
logprintfl(EUCAINFO,"running cmd %s\n", cmd);
rc = system(cmd);
if (rc) {
@@ -2427,7 +2427,7 @@
}
for (i=1; ipublicips[i].allocated) {
- snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/32 dev %s", config->eucahome, hex2dot(vnetconfig->publicips[i].ip), vnetconfig->pubInterface);
+ snprintf(cmd, 255, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/32 dev %s:pub label %s:pub", config->eucahome, hex2dot(vnetconfig->publicips[i].ip), vnetconfig->pubInterface, vnetconfig->pubInterface);
logprintfl(EUCAINFO,"running cmd %s\n", cmd);
rc = system(cmd);
if (rc) {
--- eucalyptus-1.6~bzr931.orig/clc/modules/module-inc.xml
+++ eucalyptus-1.6~bzr931/clc/modules/module-inc.xml
@@ -111,7 +111,7 @@
-
+
--- eucalyptus-1.6~bzr931.orig/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/extensions/store/stylesheet.css
+++ eucalyptus-1.6~bzr931/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/extensions/store/stylesheet.css
@@ -1,22 +1,6 @@
-/** Add css rules here for your application. */
-/** Example rules used by the template application (remove for your app) */
-h1 {
- font-size: 2em;
- font-weight: bold;
- color: #777777;
- margin: 40px 0px 70px;
- text-align: center;
-}
-
-.sendButton {
- display: block;
- font-size: 16pt;
-}
-
-/** Most GWT widgets already have a style name defined */
.gwt-DialogBox {
- width: 400px;
+ width: 550px;
}
.dialogVPanel {
@@ -36,6 +20,10 @@
width: 510px;
}
+.istore-image-store-widget td {
+ font-size: 1em;
+}
+
.istore-section-title {
font-weight: bold;
font-size: 150%;
@@ -204,6 +192,7 @@
}
.istore-status-widget .istore-show-error-anchor {
+ white-space: nowrap;
text-decoration: underline;
color: #ff0000;
}
@@ -239,7 +228,6 @@
padding: 2px;
padding-left: 0.3em;
height: 26px;
- font-size: 100%;
margin-right: 10px;
width: 350px; /* Update the spinner position when changing this. */
}
--- eucalyptus-1.6~bzr931.orig/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/themes/ubuntu/stylesheet.css
+++ eucalyptus-1.6~bzr931/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/public/themes/ubuntu/stylesheet.css
@@ -223,7 +223,7 @@
border-color: #FF6600;
background: #FFCC33;
padding: 20px 20px 20px 20px;
- width: 400px;
+ width: 550px;
}
.gwt-DialogBox .Caption {
font-size: bold;
@@ -239,4 +239,4 @@
.euca-nonfirst-cluster-entry {
border-top:1px dashed grey;
padding:10px;
-}
\ No newline at end of file
+}
--- eucalyptus-1.6~bzr931.orig/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java
+++ eucalyptus-1.6~bzr931/clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java
@@ -72,8 +72,11 @@
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.*;
+import com.google.gwt.event.dom.client.ClickHandler;
+import com.google.gwt.event.dom.client.ClickEvent;
import edu.ucsb.eucalyptus.admin.client.extensions.store.ImageStoreClient;
import edu.ucsb.eucalyptus.admin.client.extensions.store.ImageStoreWidget;
+import edu.ucsb.eucalyptus.admin.client.extensions.store.FrameWidget;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@@ -155,6 +158,7 @@
private static int confTabIndex = -1;
private static int downTabIndex = -1;
private static int storeTabIndex = -1;
+ private static int servicesTabIndex = -1;
private static boolean sortUsersLastFirst = true;
/* UI selections remembered for future use */
@@ -1337,12 +1341,13 @@
allTabs.addTab ("Images"); imgTabIndex = nTabs++;
/////allTabs.addTab ("Instances"); instTabIndex = nTabs++;
if (loggedInUser.isAdministrator().booleanValue()) {
+ if (extensions != null && extensions.contains("store")) {
+ allTabs.addTab ("Store"); storeTabIndex = nTabs++;
+ }
allTabs.addTab ("Users"); usrTabIndex = nTabs++;
allTabs.addTab ("Configuration"); confTabIndex = nTabs++;
+ allTabs.addTab ("Services"); servicesTabIndex = nTabs++;
allTabs.addTab ("Extras"); downTabIndex = nTabs++;
- if (extensions!=null && extensions.contains ("store") ) {
- allTabs.addTab ("Store"); storeTabIndex = nTabs++;
- }
}
// can happen if admin user re-logs in as regular without reloading
if (currentTabIndex > (nTabs-1) ) {
@@ -1360,6 +1365,7 @@
else if (tabIndex==confTabIndex) { displayConfTab(wrapper); }
else if (tabIndex==downTabIndex) { displayDownloadsTab(wrapper); }
else if (tabIndex==storeTabIndex) { displayStoreTab(wrapper); }
+ else if (tabIndex==servicesTabIndex) { displayServicesTab(wrapper); }
else { displayErrorPage("Invalid tab!"); }
}
public boolean onBeforeTabSelected(SourcesTabEvents sender, int tabIndex) {
@@ -1458,7 +1464,7 @@
if (ex==null) {
ip = in;
- text = "Warning: Rightscale could not discover the external IP address of your cloud. Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.
";
+ text = "Warning: RightScale could not discover the external IP address of your cloud. Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.";
} else if (!ex.equals(in)) {
ip = ex;
@@ -1488,6 +1494,92 @@
}
}
+ private class LandscapeDialog extends DialogBox {
+
+ private boolean cancelled = false;
+ private String landscapeUrl = null;
+
+ public LandscapeDialog () {
+
+ cancelled = false;
+ setHTML(" Checking the external IP address...");
+
+ final Button okButton = new Button("OK",
+ new ClickListener() {
+ public void onClick(Widget sender) {
+ LandscapeDialog.this.hide();
+ if (landscapeUrl!=null) {
+ Window.open(landscapeUrl, "_blank", "");
+ }
+ }
+ });
+ okButton.setEnabled (false);
+ Button cancelButton = new Button("Cancel",
+ new ClickListener() {
+ public void onClick(Widget sender) {
+ LandscapeDialog.this.hide();
+ cancelled = true;
+ }
+ });
+
+ HorizontalPanel buttonPanel = new HorizontalPanel();
+ buttonPanel.add (okButton);
+ buttonPanel.add (cancelButton);
+ setWidget (buttonPanel);
+
+ EucalyptusWebBackend.App.getInstance().getCloudInfo(
+ sessionId,
+ true, // DO check external IP
+ new AsyncCallback () {
+ public void onSuccess( Object result )
+ {
+ if (cancelled) {
+ return;
+ }
+ cloudInfo = (CloudInfoWeb) result;
+ String ex = cloudInfo.getExternalHostPort();
+ String in = cloudInfo.getInternalHostPort();
+ String text = "";
+ String ip;
+
+ if (ex==null) {
+ ip = in;
+ text = "Warning: The external IP address of your cloud could not be discovered. Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.";
+ } else if (!ex.equals(in)) {
+ ip = ex;
+ text = "Warning: The external cloud IP discovered (" + ex + ") is different from the IP found by Eucalyptus (" + in + "). Hence, the pre-filled cloud URL may be incorrect. Check your firewall settings.";
+ } else {
+ ip = ex;
+ }
+ String callbackUrl = "https://"
+ + ip
+ + cloudInfo.getServicePath();
+ // XXX Should really use the info-url instead
+ String ec2Url = "http://"
+ + ip
+ + "/services/Eucalyptus";
+ landscapeUrl =
+ "https://landscape.canonical.com/register-cloud"
+ + "?endpoint="
+ + GWTUtils.escape(ec2Url)
+ + "&info-url="
+ + GWTUtils.escape(callbackUrl)
+ + "&cloud-id="
+ + GWTUtils.escape(cloudInfo.getCloudId());
+ String pre = "Cloud registration
You are about to open a new window to Landscape's web site, on which you will be able to complete the registraton.";
+ setHTML(pre + text);
+ okButton.setEnabled(true);
+ center();
+ }
+ public void onFailure(Throwable caught)
+ {
+ displayErrorPage(caught.getMessage());
+ }
+ }
+ );
+ }
+ }
+
public void actuallyDisplayCredentialsTab (VerticalPanel parent)
{
History.newItem("credentials");
@@ -1598,6 +1690,7 @@
// g.setWidget( 2, 0, rpanel ); g.getCellFormatter().setVerticalAlignment(2, 0, HasVerticalAlignment.ALIGN_TOP);
// g.setWidget( 2, 1, secretButton ); g.getCellFormatter().setVerticalAlignment(2, 1, HasVerticalAlignment.ALIGN_TOP);
+/*
if (loggedInUser.isAdministrator() && show_cloud_registration) {
VerticalPanel cloud_panel = new VerticalPanel();
cloud_panel.setSpacing (0);
@@ -1639,6 +1732,7 @@
// g.getCellFormatter().setVerticalAlignment(3, 1, HasVerticalAlignment.ALIGN_TOP);
credspanel.add(vp);
}
+ */
//credspanel.add(g);
}
@@ -2241,6 +2335,7 @@
showActions = true;
}
+
if (nimages>0) {
final Grid g = new Grid(nimages + 1, 6);
g.setStyleName("euca-table");
@@ -2331,7 +2426,138 @@
parent.clear();
parent.add(imageStore);
}
-
+
+ private class SectionWidget extends Composite {
+ private VerticalPanel verticalPanel = new VerticalPanel();
+ public SectionWidget(String title, String contentHtml) {
+ initialize(title, new HTML(contentHtml));
+ }
+ public SectionWidget(String title, Widget contentWidget) {
+ initialize(title, contentWidget);
+ }
+ private void initialize(String title, Widget contentWidget) {
+ Label titleLabel = new Label(title);
+ titleLabel.setStyleName("istore-section-title");
+ verticalPanel.add(titleLabel);
+ verticalPanel.add(new FrameWidget(contentWidget));
+ contentWidget.addStyleName("istore-images-panel");
+ initWidget(verticalPanel);
+ setStyleName("istore-image-section-widget");
+ }
+ }
+
+ public void displayServicesTab (final VerticalPanel parent)
+ {
+ History.newItem ("services");
+ VerticalPanel servicesPanel = new VerticalPanel();
+ servicesPanel.add(new SectionWidget(
+ "Ubuntu Enterprise Cloud Documentation",
+ "For UEC documentation, community pages and the " +
+ "UEC user mailing list please see the Ubuntu site:
" +
+ ""));
+ servicesPanel.add(new SectionWidget(
+ "Training",
+ "The Ubuntu Enterprise Cloud training course covers every " +
+ "aspect of running your own cloud. Including installing, " +
+ "configuring and optimising the infrastructure, along with " +
+ "setting up and managing virtual machines for your " +
+ "applications. To learn about the UEC course, and our other " +
+ "Ubuntu courses please see:
" +
+ ""));
+
+ HTMLPanel landscapePanel = new HTMLPanel(
+ "Landscape is " +
+ "a systems management service that provides package management, " +
+ "security alerts, custom script automation and monitoring. " +
+ "With Landscape you can see and manage all of your Cloud " +
+ "environment.
" +
+ "If you already have an account with Landscape, you can " +
+ "register this cloud now:
" +
+ "");
+
+ Anchor landscapeAnchor = Anchor.wrap(
+ landscapePanel.getElementById("ls-anchor"));
+
+ landscapeAnchor.addClickHandler(new ClickHandler() {
+ public void onClick(ClickEvent event) {
+ event.preventDefault();
+ new LandscapeDialog().center();
+ }
+ });
+
+ servicesPanel.add(new SectionWidget(
+ "Landscape",
+ landscapePanel
+ ));
+
+ if (loggedInUser.isAdministrator() && show_cloud_registration) {
+ HTMLPanel rightScalePanel = new HTMLPanel(
+ "Your Eucalyptus cloud can also be registered with " +
+ "RightScale, " +
+ "providing you and your users with an easy-to-use interface " +
+ "to both EC2 and your Eucalyptus cloud. The following two " +
+ "parameters will be necessary for registration:
" +
+ "" +
+ "
Cloud URL:
" +
+ "
Cloud ID:
" +
+ "
" +
+ "If you already have an account with RightScale, you can " +
+ "register this cloud now:
" +
+ "");
+
+ rightScalePanel.add(new InlineLabel(
+ "https://" +
+ cloudInfo.getInternalHostPort() +
+ cloudInfo.getServicePath()
+ ), "rs-cloud-url");
+
+ rightScalePanel.add(new InlineLabel(
+ cloudInfo.getCloudId()
+ ), "rs-cloud-id");
+
+ Anchor rightScaleAnchor = Anchor.wrap(
+ rightScalePanel.getElementById("rs-anchor"));
+
+ rightScaleAnchor.addClickHandler(new ClickHandler() {
+ public void onClick(ClickEvent event) {
+ event.preventDefault();
+ new RightscaleDialog().center();
+ }
+ });
+
+ servicesPanel.add(new SectionWidget(
+ "RightScale",
+ rightScalePanel
+ ));
+ }
+
+ servicesPanel.add(new SectionWidget(
+ "Support",
+ "With commercial support you have the certainty that your " +
+ "bugs and issues will be responded to promptly. Canonical " +
+ "provides business day and 24/7 for Ubuntu Enterprise Cloud. " +
+ "For more details on the service please see:
" +
+ ""));
+
+ parent.clear();
+ parent.add(servicesPanel);
+ }
+
public void displayFirstTimeConfiguration()
{
displayStatusPage("Loading first-time configuration page...");
--- eucalyptus-1.6~bzr931.orig/clc/modules/wsstack/src/main/java/com/eucalyptus/ws/stages/ElasticFoxMangleHandler.java
+++ eucalyptus-1.6~bzr931/clc/modules/wsstack/src/main/java/com/eucalyptus/ws/stages/ElasticFoxMangleHandler.java
@@ -91,8 +91,8 @@
@Override
public void incomingMessage( ChannelHandlerContext ctx, MessageEvent event ) throws Exception {
- if ( event.getMessage( ) instanceof MappingHttpResponse ) {
- MappingHttpResponse message = ( MappingHttpResponse ) event.getMessage( );
+ if ( event.getMessage( ) instanceof MappingHttpRequest ) {
+ MappingHttpRequest message = ( MappingHttpRequest ) event.getMessage( );
if ( message.getMessage( ) instanceof ModifyImageAttributeType ) {
ModifyImageAttributeType pure = ( ( ModifyImageAttributeType ) message.getMessage( ) );
pure.setImageId( purifyImageIn( pure.getImageId( ) ) );
@@ -129,8 +129,8 @@
@Override
public void outgoingMessage( ChannelHandlerContext ctx, MessageEvent event ) throws Exception {
- if ( event.getMessage( ) instanceof MappingHttpRequest ) {
- MappingHttpRequest message = ( MappingHttpRequest ) event.getMessage( );
+ if ( event.getMessage( ) instanceof MappingHttpResponse ) {
+ MappingHttpResponse message = ( MappingHttpResponse ) event.getMessage( );
if ( message.getMessage( ) instanceof DescribeImagesResponseType ) {
DescribeImagesResponseType purify = ( DescribeImagesResponseType ) message.getMessage( );
for ( ImageDetails img : purify.getImagesSet( ) ) {
--- eucalyptus-1.6~bzr931.orig/clc/modules/configuration/src/main/java/com/eucalyptus/config/Configuration.java
+++ eucalyptus-1.6~bzr931/clc/modules/configuration/src/main/java/com/eucalyptus/config/Configuration.java
@@ -103,9 +103,9 @@
reply.set_return( true );
boolean isGood;
try {
- if( !NetworkUtil.testGoodAddress( request.getHost( ) ) ) {
- throw new EucalyptusCloudException( "Components cannot be registered using local, link-local, or multicast addresses." );
- }
+ //if( !NetworkUtil.testGoodAddress( request.getHost( ) ) ) {
+ // throw new EucalyptusCloudException( "Components cannot be registered using local, link-local, or multicast addresses." );
+ //}
if( request instanceof RegisterClusterType && !ConfigurationUtil.testClusterCredentialsDirectory( request.getName( ) ) ) {
throw new EucalyptusCloudException( "Cluster registration failed because the key directory cannot be created." );
}
--- eucalyptus-1.6~bzr931.orig/tools/add_key.pl
+++ eucalyptus-1.6~bzr931/tools/add_key.pl
@@ -61,6 +61,22 @@
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
$ENV{'PATH'}='/bin:/usr/bin:/sbin:/usr/sbin/';
+$eucaconf=$ENV{'EUCALYPTUS'} . "/etc/eucalyptus/eucalyptus.conf";
+if (open(FH, "$eucaconf")) {
+ while() {
+ chomp;
+ my $line = $_;
+ if ($line =~ /^\s*VNET_MODE="(.*)"/) {
+ my $mode = $1;
+ if (($mode =~ /MANAGED/) ) {
+ # only do key injection if we're not in managed mode
+ print "done\n";
+ exit(0);
+ }
+ }
+ }
+ close(FH);
+}
#$MOUNT=untaint(`which mount`);
#$UMOUNT=untaint(`which umount`);
#$MOUNT=untaint("/tmp/euca_mountwrap");
--- eucalyptus-1.6~bzr931.orig/tools/euca_conf.in
+++ eucalyptus-1.6~bzr931/tools/euca_conf.in
@@ -91,7 +91,9 @@
TO_BACKUP="Y"
CREDENTIALZIPFILE=""
SCP="`which scp 2> /dev/null`"
+SCP_OPT=""
RSYNC="`which rsync 2> /dev/null`"
+LOCALSYNC="N"
WGET="`which wget 2> /dev/null`"
VERBOSE="N"
LIST=""
@@ -104,9 +106,11 @@
echo " -d point EUCALYPTUS to "
echo " --no-rsync don't use rsync"
echo " --no-scp don't use scp"
+ echo " --local-sync force local key sync"
echo " --get-credentials download credentials to "
echo " --register-nodes \"host host ...\" add new nodes to EUCALYPTUS"
echo " --delete-nodes \"host host ...\" remove nodes from EUCALYPTUS"
+ echo " --discover-nodes find and add nodes on local network"
echo " --register-cluster add new cluster to EUCALYPTUS"
echo " --deregister-cluster remove cluster from EUCALYPTUS"
echo " --register-walrus add walrus to EUCALYPTUS"
@@ -288,7 +292,7 @@
done
# is REMOTE actually localhost?
- if [ ${REMOTE} = "127.0.0.1" -o ${REMOTE} = localhost -o ${REMOTE} = "`hostname -s`" -o ${REMOTE} = "`hostname -f`" ]; then
+ if [ ${LOCALSYNC} = "Y" -o ${REMOTE} = "127.0.0.1" -o ${REMOTE} = localhost -o ${REMOTE} = "`hostname -s`" -o ${REMOTE} = "`hostname -f`" ]; then
# machine is localhost, not need for remote syncing
if [ -d "$SOURCEDIR" ]; then
for i in $FILES
@@ -314,7 +318,7 @@
if [ -n "$RSYNC" ]; then
echo
echo -n "Trying rsync to sync keys with \"${REMOTE}\"..."
- if $RSYNC -az ${FILES} ${REMOTE}:${DESTDIR}/ > /dev/null ; then
+ if $RSYNC -az ${FILES} ${EUCA_USER}@${REMOTE}:${DESTDIR}/ > /dev/null ; then
echo "done."
return 0
else
@@ -335,8 +339,8 @@
fi
fi
echo
- echo "Trying scp to sync keys with \"${1}\" (user \"${EUCA_USER}\")..."
- if sudo -u ${EUCA_USER} $SCP ${FILES} ${EUCA_USER}@${REMOTE}:${DESTDIR} > /dev/null ; then
+ echo "Trying scp to sync keys to: ${EUCA_USER}@${REMOTE}:${DESTDIR}..."
+ if sudo -u ${EUCA_USER} $SCP $SCP_OPT ${FILES} ${EUCA_USER}@${REMOTE}:${DESTDIR} > /dev/null ; then
echo "done."
return 0
else
@@ -369,6 +373,11 @@
shift
continue
fi
+ if [ "$1" = "--local-sync" ]; then
+ LOCALSYNC="Y"
+ shift
+ continue
+ fi
if [ "$1" = "--list-scs" ]; then
LIST="$LIST storages"
shift
@@ -414,6 +423,15 @@
shift
continue
fi
+ if [ "$1" = "--discover-nodes" ]; then
+ NODEMODE="DISCOVER"
+ SCP_OPT="-oStrictHostKeyChecking=no"
+ # equivalent to rsync -e, but it's easier to get the quoting
+ # right if we set it here
+ export RSYNC_RSH="ssh -oStrictHostKeyChecking=no"
+ shift
+ continue
+ fi
if [ $# -eq 1 ]; then
# we dont have options with no argument, so it has to be
# the file
@@ -1282,6 +1300,23 @@
NODEMODE="ADD"
fi
fi
+ if [ "$NODEMODE" = "DISCOVER" ]; then
+ if ! which avahi-browse >/dev/null 2>&1; then
+ echo "ERROR: avahi-browse not installed, so cannot discover nodes"
+ exit 1
+ fi
+ NEWNODES=
+ for DISCOVERED in $(avahi-browse -prt _eucalyptus._tcp | grep '^=.*"type=node"' | cut -d\; -f8 | sort -u); do
+ if ! echo "$NODES" | grep -qw "$DISCOVERED"; then
+ read -p "New node found on $DISCOVERED; add it? [Yn] " CONFIRM
+ CONFIRM="$(printf %s "$CONFIRM" | tr A-Z a-z | cut -c1)"
+ if [ "x$CONFIRM" = x ] || [ "x$CONFIRM" = xy ]; then
+ NEWNODES="${NEWNODES:+$NEWNODES }$DISCOVERED"
+ fi
+ fi
+ done
+ NODEMODE="ADD"
+ fi
# check we have a valid command
if [ "$NODEMODE" != "ADD" -a "$NODEMODE" != "REM" ]; then
@@ -1305,7 +1340,7 @@
# warn the user on where we expect the keys to be
if [ "$NODEMODE" = "ADD" ]; then
echo
- echo "INFO: We expect all nodes to have eucalyptus installed in $EUCALYPTUS for key synchronization."
+ echo "INFO: We expect all nodes to have eucalyptus installed in $EUCALYPTUS/var/lib/eucalyptus/keys for key synchronization."
fi
# adding (or removing) nodes
--- eucalyptus-1.6~bzr931.orig/tools/detach.pl
+++ eucalyptus-1.6~bzr931/tools/detach.pl
@@ -75,7 +75,6 @@
$inputfail = 1;
$detachfail = 2;
-system("cp $virshxmlfile /tmp/wtf");
$distro = detect_distro();
print STDERR "DISTRO: $distro\n";
if ( ! -x "$rootwrap" ) {
--- eucalyptus-1.6~bzr931.orig/tools/run_axis.sh
+++ eucalyptus-1.6~bzr931/tools/run_axis.sh
@@ -66,6 +66,7 @@
LOG_LEVEL=2 # 0 - critical, 1 - errors, 2 - warnings, 3 - info, 4 - debug, 5- user, 6- trace
PORT=9090
+[ -z "$EUID" ] && EUID=$(id -u)
if [[ $EUID -ne 0 ]]; then
echo WARNING: run this as root if you want to control Xen
fi
--- eucalyptus-1.6~bzr931.orig/tools/eucalyptus.conf
+++ eucalyptus-1.6~bzr931/tools/eucalyptus.conf
@@ -147,18 +147,18 @@
# xenbr1, etc' on older Xen versions, and 'eth0, eth1, etc' on newer
# Xen versions. The command 'brctl show' will give you more
# information on your local bridge setup.
-VNET_BRIDGE="xenbr0"
+VNET_BRIDGE="br0"
# This indicates where we have a dhcp server binary. We use it to provide
# the images with IPs: Eucalyptus provides its own configuration per
# instance.
-VNET_DHCPDAEMON="/usr/sbin/dhcpd"
+VNET_DHCPDAEMON="/usr/sbin/dhcpd3"
# Some systems have their DHCP daemon configured to run as a non-root
# user. If this is the case, set the name of that user here (by
# default, Eucalyptus will set up DHCPD configuration files and
# directories as owned by root).
-#VNET_DHCPUSER="root"
+VNET_DHCPUSER="dhcpd"
# Following are example eucalyptus VM networking configurations.
# There are four modes to choose from (MANAGED, MANAGED-NOVLAN,
@@ -186,7 +186,7 @@
# to your cloud-contoller's IP address (must be an address that can be
# reached by the CC).
-#VNET_MODE="MANAGED"
+VNET_MODE="MANAGED-NOVLAN"
#VNET_SUBNET="192.168.0.0"
#VNET_NETMASK="255.255.0.0"
#VNET_DNS="your-dns-server-ip"
@@ -201,7 +201,7 @@
# will typically invoke a DHCP client to aquire an IP address. Use
# this mode if you wish to manage VM IPs yourself, or allow the VMs to
# pick up an IP from a non-eucalyptus managed DHCP server.
-VNET_MODE="SYSTEM"
+#VNET_MODE="SYSTEM"
# If VNET_MODE is set to STATIC, you can manually configure a set of
# IP addresses that will be allocated to VMs at boot time in a first
--- eucalyptus-1.6~bzr931.orig/tools/eucalyptus-nc.in
+++ eucalyptus-1.6~bzr931/tools/eucalyptus-nc.in
@@ -87,6 +87,7 @@
fi
fi
+[ -z "$EUID" ] && EUID=$(id -u)
if [ "$EUID" != "0" ]; then
echo "Eucalyptus init scritps must be run as root."
exit 1
@@ -96,7 +97,7 @@
# eucalyptus manually, it may have binaries in a non-standard position:
# hence we need to keep the PATH we receive.
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
-DESC="Eucalyptus services"
+DESC="Eucalyptus Node Service"
NAME=eucalyptus-nc
BRCTL="`which brctl 2> /dev/null`"
MODPROBE="`which modprobe 2> /dev/null`"
@@ -192,6 +193,13 @@
echo "Failed to start the NC!"
exit 1
fi
+
+ avahi_publish="$(which avahi-publish)"
+ start-stop-daemon --start --pidfile /var/run/eucalyptus/avahi-nc.pid \
+ --name avahi-publish --background --make-pidfile \
+ --startas $avahi_publish -- \
+ -s "$(hostname)" _eucalyptus._tcp "$NC_PORT" \
+ txtvers=1 protovers=1.5.0 type=node
}
do_status() {
@@ -207,6 +215,13 @@
}
do_stop() {
+ avahi_pid=
+ avahi_pidfile=/var/run/eucalyptus/avahi-nc.pid
+ if test -s $avahi_pidfile; then
+ avahi_pid=`cat $avahi_pidfile 2> /dev/null`
+ kill $avahi_pid > /dev/null 2>&1
+ fi
+ pid=
pidfile=$EUCALYPTUS/var/run/eucalyptus/eucalyptus-nc.pid
# let's be sure we are killing the right process
@@ -224,7 +239,7 @@
fi
timeout=5
while [ $timeout -gt 0 ]; do
- if ps $pid > /dev/null 2>&1 ; then
+ if ([ "$avahi_pid" ] || [ "$pid" ]) && ps $avahi_pid $pid > /dev/null 2>&1; then
sleep 1
timeout=$(($timeout - 1))
else
@@ -232,8 +247,9 @@
fi
done
if [ $timeout -eq 0 ]; then
- kill -9 $pid > /dev/null 2>&1
+ kill -9 $avahi_pid $pid > /dev/null 2>&1
fi
+ rm -f $avahi_pidfile
rm -f $pidfile
}
@@ -245,16 +261,23 @@
exit 1
fi
if [ "$EUCALYPTUS" = "not_configured" ]; then
- echo "EUCALYPTUS not configured!"
- exit 1
+ echo "EUCALYPTUS not configured!"
+ # This is a fatal condition, so exit, but exit 0
+ exit 0
fi
+# Create the suggested 32 loop devices /dev/loop0 .. /dev/loop31
+LOOP_SUG=32
+for i in $(seq 0 $(($LOOP_SUG - 1))); do
+ [ -b /dev/loop$i ] || (mknod -m 660 /dev/loop$i b 7 $i && chown root:disk /dev/loop$i)
+done
+
# let's see how many loop devices we have available
LOOP_AVL="`/bin/ls /dev/loop* 2> /dev/null|wc -l`"
if [ -z "$LOOP_AVL" -o "$LOOP_AVL" = "0" ]; then
echo "Couldn't find loop devices (/dev/loop*): expect problems"
-elif [ $LOOP_AVL -lt 32 ]; then
- echo "You should have at least 32 loop devices"
+elif [ $LOOP_AVL -lt $LOOP_SUG ]; then
+ echo "You should have at least $LOOP_SUG loop devices"
fi
if [ -z "$EUCA_USER" ] ; then
@@ -322,92 +345,80 @@
case "$1" in
start)
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_daemon_msg "Starting $DESC" "$NAME"
- else
- echo -n "Starting $DESC: "
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_daemon_msg "Starting $DESC"
+ else
+ echo -n "Starting $DESC: "
fi
# let's check there is no previous NC running
if do_status ; then
- echo
- echo "another NC is already running!"
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_end_msg 1
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_end_msg 0
+ else
+ echo
+ echo "$DESC is already running!"
fi
- exit 1
+ exit 0
fi
-
+
rm -f /dev/shm/sem.eucalyptus-nc* /dev/shm/sem.eucalyptus-st*
do_start
case "$?" in
0|1)
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_end_msg 0
- else
- echo "done."
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_end_msg 0
+ else
+ echo "done."
fi
;;
*)
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_end_msg 1
- else
- echo "failed!"
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_end_msg 1
+ else
+ echo "failed!"
fi
;;
esac
;;
stop)
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_begin_msg "Stopping $DESC"
- else
- echo -n "Stopping $DESC: "
- fi
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_begin_msg "Stopping $DESC"
+ else
+ echo -n "Stopping $DESC: "
+ fi
do_stop
rm -f /dev/shm/sem.eucalyptus-nc* /dev/shm/sem.eucalyptus-st*
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_end_msg 0
- else
- echo "done."
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_end_msg 0
+ else
+ echo "done."
fi
;;
restart)
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_begin_msg "Restarting $DESC"
- else
- echo -n "Restarting $DESC: "
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_begin_msg "Restarting $DESC"
+ else
+ echo -n "Restarting $DESC: "
fi
# restart allow the CC to mantain the state across restart
do_stop
do_start
- if [ "$VERBOSE" != no ]; then
- if [ "$WE_HAVE_LSB" = "Y" ]; then
- log_end_msg 0
- else
- echo "done."
- fi
+ if [ "$WE_HAVE_LSB" = "Y" ]; then
+ log_end_msg 0
+ else
+ echo "done."
fi
- ;;
+ ;;
status)
if do_status ; then
- echo "NC is running"
+ msg="eucalyptus-nc is running"
+ [ "$WE_HAVE_LSB" = "Y" ] && log_success_msg "$msg" || echo "$msg"
else
+ msg="eucalyptus-nc is not running"
+ [ "$WE_HAVE_LSB" = "Y" ] && log_failure_msg "$msg" || echo "$msg"
exit 3
- fi
+ fi
;;
config)
echo "EUCALYPTUS=${EUCALYPTUS}"
@@ -417,7 +428,7 @@
;;
*)
- echo "Usage: $NAME {start|stop|restart}" >&2
+ echo "Usage: $NAME {start|stop|restart|status|config}" >&2
exit 3
;;
esac
--- eucalyptus-1.6~bzr931.orig/node/handlers_xen.c
+++ eucalyptus-1.6~bzr931/node/handlers_xen.c
@@ -271,24 +271,23 @@
if (getuid() != 0) {
output = strdup("NOT SUPPORTED");
- *consoleOutput = base64_enc((unsigned char *)output, strlen(output));
- if (output) free(output);
- return(0);
+ goto encode_free_exit;
+ }
+
+ snprintf(filename, 1024, "/tmp/consoleOutput.%s.XXXXXX", instanceId);
+ if ( (fd=mkstemp(filename)) < 0) {
+ logprintfl (EUCAERROR, "ERROR: could not open consoleOutput file %s for writing\n", filename);
+ output = strdup("ERROR WRITING");
+ goto encode_free_exit;
}
bufsize = sizeof(char) * 1024 * 64;
output = malloc(bufsize);
bzero(output, bufsize);
- snprintf(filename, 1024, "/tmp/consoleOutput.%s", instanceId);
-
pid = fork();
if (pid == 0) {
- int fd;
- fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, 0644);
- if (fd < 0) {
- // error
- } else {
+ {
dup2(fd, 2);
dup2(2, 1);
close(0);
@@ -306,9 +305,8 @@
struct stat statbuf;
count=0;
- while(count < 10000 && stat(filename, &statbuf) < 0) {count++;}
- fd = open(filename, O_RDONLY);
- if (fd < 0) {
+ close(fd); // reset fd
+ if ( (fd = open(filename, O_RDONLY)) < 0) {
logprintfl (EUCAERROR, "ERROR: could not open consoleOutput file %s for reading\n", filename);
} else {
FD_ZERO(&rfds);
@@ -332,6 +330,7 @@
unlink(filename);
+encode_free_exit:
if (output[0] == '\0') {
snprintf(output, bufsize, "EMPTY");
}
--- eucalyptus-1.6~bzr931.orig/node/Makefile
+++ eucalyptus-1.6~bzr931/node/Makefile
@@ -20,16 +20,21 @@
build: all
generated/stubs: $(NCWSDL)
- @echo Generating server stubs
- rm -rf generated
- mkdir -p generated
- sh $(WSDL2C) -uri $(NCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath'
- @echo Adding marshalling calls to server stubs
- ../tools/add_marshalling.pl generated/axis2_skel_*.c
- @echo Generating client stubs
- sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'
+ if test -n "$(REBUILD_STUBS)"; \
+ then \
+ echo Generating server stubs; \
+ rm -rf generated; \
+ mkdir -p generated; \
+ sh $(WSDL2C) -uri $(NCWSDL) -sd -ss -d adb -u -uw -f -o generated | grep -v 'the classpath'; \
+ echo Adding marshalling calls to server stubs; \
+ ../tools/add_marshalling.pl generated/axis2_skel_*.c; \
+ echo Generating client stubs; \
+ sh $(WSDL2C) -uri $(NCWSDL) -g -d adb -u -uw -f -o generated | grep -v 'the classpath'; \
+ echo Patching; \
+ patch -d generated -p1 < axis2_svc_generated.patch; \
+ fi
@echo Compiling the stubs
- cd generated; patch -p1 < ../axis2_svc_generated.patch; $(CC) -c $(CFLAGS) $(INCLUDES) *.c
+ cd generated; $(CC) -c $(CFLAGS) $(INCLUDES) *.c
@echo "this is a cute little makefile marker" >generated/stubs
@echo Stubs generated.
@@ -96,7 +101,10 @@
rm -rf $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#*
distclean:
- rm -rf generated $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#*
+ find generated -name '*.o' -print0 | xargs -0 rm -f
+ test -e generated/stubs && cd generated && patch -R -p1 < ../axis2_svc_generated.patch
+ rm -f generated/stubs
+ rm -rf $(SERVICE_SO) *.o $(CLIENT) $(CLIENT)_local *~* *#*
install: deploy
$(INSTALL) nc-client-policy.xml $(vardir)/lib/eucalyptus/keys/
--- eucalyptus-1.6~bzr931.orig/net/vnetwork.c
+++ eucalyptus-1.6~bzr931/net/vnetwork.c
@@ -229,7 +229,7 @@
return(1);
}
- snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254 scope link dev %s", vnetconfig->eucahome, vnetconfig->privInterface);
+ snprintf(cmd, 256, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add 169.254.169.254 scope link dev %s:metadata label %s:metadata", vnetconfig->eucahome, vnetconfig->privInterface, vnetconfig->privInterface);
rc = system(cmd);
if (vnetconfig->cloudIp != 0) {
@@ -1587,7 +1587,7 @@
// snprintf(cmd, 1024, "%s/usr/lib/eucalyptus/euca_rootwrap ifconfig %s %s netmask %s up", vnetconfig->eucahome, devname, newip, netmask);
slashnet = 32 - ((int)log2((double)(0xFFFFFFFF - vnetconfig->networks[vlan].nm)) + 1);
- snprintf(cmd, 1024, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/%d broadcast %s dev %s", vnetconfig->eucahome, newip, slashnet, broadcast, devname);
+ snprintf(cmd, 1024, "%s/usr/lib/eucalyptus/euca_rootwrap ip addr add %s/%d broadcast %s dev %s:priv label %s:priv", vnetconfig->eucahome, newip, slashnet, broadcast, devname, devname);
logprintfl(EUCADEBUG, "running cmd '%s'\n", cmd);
rc = system(cmd);
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-sc.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-sc.upstart
@@ -0,0 +1,23 @@
+description "Eucalyptus storage controller"
+author "Matt Zimmerman "
+
+start on (started eucalyptus or starting eucalyptus-sc-registration)
+stop on stopping eucalyptus
+
+post-start script
+ timeout=60
+ while [ $timeout -gt 0 ]; do
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ if wget -q -T10 -t1 -O- \
+ http://$SC_IP_ADDR:8773/services/Heartbeat | \
+ grep "^name=storage.*enabled=true"; then
+
+ # It's alive!
+ exit 0
+ fi
+ sleep 2
+ timeout=$(($timeout-1))
+ done
+ stop
+ exit 1
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-udeb.templates
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-udeb.templates
@@ -0,0 +1,40 @@
+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.
+
+Template: eucalyptus/private-interface
+Type: select
+Choices: ${INTERFACES}
+_Description: Network interface for communication with nodes:
+ More than one network interface is available on this system. The primary
+ interface configured during installation (${DEFAULT_INTERFACE}) will be
+ used for communication with the public network. If your computing nodes are
+ on a private network, then you will normally use a different network
+ interface for communication with computing nodes.
+ .
+ Select the network interface that is physically attached to the same
+ network as your computing nodes.
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-nc.postinst
+++ eucalyptus-1.6~bzr931/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~bzr931.orig/debian/eucalyptus-java-common.links
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-java-common.links
@@ -0,0 +1,81 @@
+/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/ecj.jar /usr/share/eucalyptus/ecj.jar
+/usr/share/java/gnumail.jar /usr/share/eucalyptus/gnumail.jar
+/usr/share/java/gnumail-providers.jar /usr/share/eucalyptus/gnumail-providers.jar
+/usr/share/java/inetlib.jar /usr/share/eucalyptus/inetlib.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~bzr931.orig/debian/eucalyptus-cloud.postinst
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cloud.postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ "$1" = "configure" ]
+then
+ if ! dpkg-statoverride --list /var/lib/eucalyptus/db >/dev/null 2>&1; then
+ chown eucalyptus:eucalyptus /var/lib/eucalyptus/db
+ chmod 700 /var/lib/eucalyptus/db
+ fi
+
+ if [ -e /etc/init/eucalyptus.conf ]; then
+ restart eucalyptus || :
+ fi
+fi
+
+#DEBHELPER#
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-common.postrm
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-common.postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+case "$1" in
+purge)
+ dpkg-statoverride --remove /usr/lib/eucalyptus/euca_rootwrap || true
+ rm -rf /etc/eucalyptus /var/lib/eucalyptus /var/log/eucalyptus /var/run/eucalyptus
+ ;;
+remove)
+ if [ -e /etc/init/eucalyptus.conf ]; then
+ stop eucalyptus || :
+ fi
+ ;;
+esac
+
+#DEBHELPER#
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-common.dirs
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-common.dirs
@@ -0,0 +1 @@
+/var/lib/eucalyptus/keys
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-sc.install
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-sc.install
@@ -0,0 +1 @@
+/usr/share/eucalyptus/eucalyptus-storagecontroller-1.6-devel.jar
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cc.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cc.upstart
@@ -0,0 +1,91 @@
+description "Eucalyptus cluster controller"
+author "Matt Zimmerman "
+
+start on (started eucalyptus or starting eucalyptus-cc-registration)
+stop on stopping eucalyptus
+
+# These must be set in the apache2 environment -mdz
+env HTTPD_CONF=/var/run/eucalyptus/httpd-cc.conf
+env EUCALYPTUS=/
+env AXIS2C_HOME=/etc/eucalyptus/axis2
+
+pre-start script
+ # clean up semaphores
+ rm -f /dev/shm/*eucalyptusCC*
+
+ # Enable IP forwarding
+ sysctl -w net.ipv4.ip_forward=1
+
+ mkdir -p /var/run/eucalyptus/net
+ chown eucalyptus:eucalyptus /var/run/eucalyptus /var/run/eucalyptus/net
+
+ . /etc/eucalyptus/eucalyptus.conf
+
+ # Generate httpd.conf
+ AXIS2C_HOME=/etc/eucalyptus/axis2
+ ALLOWED_IPS="all"
+ HTTPD_HOME="/"
+ tmp=$(tempfile)
+
+ # let's configure the common parts for both CC and NC
+ cat $EUCALYPTUS/etc/eucalyptus/httpd.conf |sed "s|EUCALYPTUS|$EUCALYPTUS|"|sed "s|AXIS2C_HOME|$AXIS2C_HOME|"|sed "s|\(ServerRoot\).*|\1 "$HTTPD_HOME"|" |sed "s|EUCA_USER|$EUCA_USER|" >> $tmp
+
+ # if we find authz load it (needed by ubuntu)
+ if [ -e $HTTPD_HOME/usr/lib/apache2/modules/mod_authz_host.so ]; then
+ echo "LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so" >> $tmp
+ fi
+
+ # let's configure the CC
+ cat $tmp |sed "s|\(Listen\).*|\1 $CC_PORT|"|sed "s|\(PidFile\).*|\1 $EUCALYPTUS/var/run/eucalyptus/eucalyptus-cc.pid|"|sed "s|\(Allow from\).*|\1 $ALLOWED_IPS|"|sed "s|\(ErrorLog\).*|\1 $EUCALYPTUS/var/log/eucalyptus/httpd-cc_error_log|"|sed "s|\(StartServers\).*|\1 5|"|sed "s|\(MinSpareServers\).*|\1 5|"|sed "s|\(MaxSpareServers\).*|\1 10|"|sed "s|\(MaxClients\).*|\1 8|" |sed "s|\(MinSpareThreads\).*|\1 25|" | sed "s|\(MaxSpareThreads\).*|\1 75|" | sed "s|\(ThreadsPerChild\).*|\1 1|" | sed "s|\(ThreadLimit\).*|\1 64|" > $HTTPD_CONF
+
+ cat >>$HTTPD_CONF <
+ Order allow,deny
+ Allow from all
+
+EOF
+
+end script
+
+exec apache2 -f /var/run/eucalyptus/httpd-cc.conf -D FOREGROUND
+
+post-start script
+ timeout=60
+ while [ $timeout -gt 0 ]; do
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ if wget -q -T10 -t1 -O- http://$CC_IP_ADDR:8774/axis2/services/ | \
+ grep EucalyptusCC; then
+
+ # It's alive!
+ exit 0
+ fi
+ sleep 2
+ timeout=$(($timeout-1))
+ done
+ stop
+ exit 1
+end script
+
+post-stop script
+ # clean up semaphores
+ rm -f /dev/shm/*eucalyptusCC*
+
+ # kill vtund processes
+ for pidfile in /var/run/eucalyptus/vtund*.pid \
+ /var/run/eucalyptus/net/euca-dhcp.pid; do
+
+ if [ -s $pidfile ]; then
+ pid=$(cat $pidfile)
+ timeout=5
+ while [ $timeout -gt 0 ] && ps $pid >/dev/null; do
+ kill $pid
+ sleep 1
+ timeout=$(($timeout-1))
+ done
+ fi
+ done
+
+ rm -f /var/lib/eucalyptus/CC/*
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-walrus.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-walrus.upstart
@@ -0,0 +1,23 @@
+description "Eucalyptus walrus"
+author "Matt Zimmerman "
+
+start on (started eucalyptus or starting eucalyptus-walrus-registration)
+stop on stopping eucalyptus
+
+post-start script
+ timeout=60
+ while [ $timeout -gt 0 ]; do
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ if wget -q -T10 -t1 -O- \
+ http://$WALRUS_IP_ADDR:8773/services/Heartbeat | \
+ grep "^name=walrus.*enabled=true"; then
+
+ # It's alive!
+ exit 0
+ fi
+ sleep 2
+ timeout=$(($timeout-1))
+ done
+ stop
+ exit 1
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cloud.install
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cloud.install
@@ -0,0 +1,3 @@
+/usr/share/eucalyptus/eucalyptus-cloud-1.6-devel.jar
+/usr/share/eucalyptus/eucalyptus-www-1.6-devel.jar
+/usr/share/eucalyptus/eucalyptus-interface-1.6-devel.jar
--- eucalyptus-1.6~bzr931.orig/debian/source_eucalyptus.py
+++ eucalyptus-1.6~bzr931/debian/source_eucalyptus.py
@@ -0,0 +1,15 @@
+import os.path, os
+
+from apport.hookutils import *
+
+def add_info(report):
+ attach_file(report, '/etc/eucalyptus/eucalyptus.conf', key='eucalyptus.conf')
+ attach_file_if_exists(report, '/etc/eucalyptus/eucalyptus-cc.conf')
+
+ # Do these contain any private data? They're all currently world-readable
+ # -mdz
+ attach_file_if_exists(report, '/var/log/eucalyptus/axis2c.log', key='EucalyptusAxis2cLog')
+ attach_file_if_exists(report, '/var/log/eucalyptus/cc.log', key='EucalyptusCCLog')
+ attach_file_if_exists(report, '/var/log/eucalyptus/cloud-debug.log', key='EucalyptusCloudDebugLog')
+ attach_file_if_exists(report, '/var/log/eucalyptus/cloud-output.log', key='EucalyptusCloudOutputLog')
+ attach_file_if_exists(report, '/var/log/eucalyptus/httpd-cc_error_log', key='EucalyptusHTTPDErrorLog')
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cloud.eucalyptus-cc-registration.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cloud.eucalyptus-cc-registration.upstart
@@ -0,0 +1,14 @@
+description "Eucalyptus cluster controller registration"
+author "Matt Zimmerman "
+
+start on started eucalyptus-cloud
+
+task
+
+script
+ . /etc/eucalyptus/eucalyptus-cc.conf
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ for ip in $CC_IP_ADDR; do
+ euca_conf --no-rsync --local-sync --register-cluster "$CC_NAME" "$ip" >> /var/log/eucalyptus/cc-registration.log 2>&1
+ done
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cloud.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cloud.upstart
@@ -0,0 +1,24 @@
+description "Eucalyptus cloud controller"
+author "Matt Zimmerman "
+
+start on started eucalyptus
+stop on stopping eucalyptus
+
+post-start script
+ timeout=60
+ while [ $timeout -gt 0 ]; do
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ # Should this check something on :8773 instead? -mdz
+ if wget -q -T10 -t1 -O- --no-check-certificate \
+ https://$CLOUD_IP_ADDR:8443/register | \
+ grep CloudVersion; then
+
+ # It's alive!
+ exit 0
+ fi
+ sleep 2
+ timeout=$(($timeout-1))
+ done
+ stop
+ exit 1
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-udeb.install
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-udeb.install
@@ -0,0 +1,2 @@
+debian/local/euca_find_cluster usr/bin
+/usr/lib/finish-install.d
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-nc.install
+++ eucalyptus-1.6~bzr931/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~bzr931.orig/debian/copyright
+++ eucalyptus-1.6~bzr931/debian/copyright
@@ -0,0 +1,82 @@
+This package was debianized by Soren Hansen on
+Wed, 11 Feb 2009 02:11:00 +0200
+
+It was downloaded from http://launchpad.net/eucalyptus
+
+Upstream Authors:
+ * Dan Nurmi
+ * Chris Grzegorczyk
+ * Graziano Obertelli
+ * Neil Soman
+ * Rich Wolski
+ * Dmitrii Zagorodnov
+
+Copyright:
+ Copyright (c) 2009 Eucalyptus Systems, Inc.
+
+clc/modules/core/src/main/java/org/hsqldb/HsqlSocketFactorySecure.java is
+covered under the following copyright and license:
+
+ Copyright (c) 2001-2008, The HSQL Development Group
+ All rights reserved.
+
+ Redistribution and use 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.
+
+ Neither the name of the HSQL Development Group nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ 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 HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
+ 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.
+
+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.
+
+The rest of the Eucalyptus source code is covered by the GPLv3:
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation version 3 of the License.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+ On Debian systems, the complete text of the GNU General Public
+ License, version 3, can be found in /usr/share/common-licenses/GPL-3.
+
+The Debian packaging is copyright 2009, Soren Hansen ,
+Dustin Kirkland and is licensed under the same
+license.
--- eucalyptus-1.6~bzr931.orig/debian/changelog
+++ eucalyptus-1.6~bzr931/debian/changelog
@@ -0,0 +1,1023 @@
+eucalyptus (1.6~bzr931-0ubuntu4) karmic; urgency=low
+
+ [ Kees Cook ]
+ * Fix unsafe /tmp file uses (LP: #445105):
+ - tools/detach.pl: remove debugging XML dump call.
+ - node/handlers_xen.c: use mkstemp().
+
+ [ Mathias Gug ]
+ * debian/eucalyptus-common.eucalyptus.upstart: Start eucalyptus-cloud
+ with all the relevant options (LP: #452665).
+
+ [ Dustin Kirkland ]
+ * cluster/handlers.c, net/vnetwork.c: label the 169.254.169.254 link
+ local address with :metadata, the public vm ip addresses with :pub,
+ and the private vm ip addresses with :priv, to separate it appropriately
+ (LP: #452754)
+ * debian/eucalyptus-ipaddr.conf: and now that we're separating the weird
+ addresses to their own labels, we can show just the device label, much
+ cleaner output, (LP: #451607)
+ * debian/copyright: Eucalyptus licensed 1.6 under the GPLv3, update
+ our copyright file accordingly, (LP: #453129)
+ * debian/control, debian/eucalyptus-java-common.links: the CLC absolutely
+ needs the ecj.jar installed and linked for euca-* and ec2-* API calls
+ to work (LP: #453177)
+
+ -- Dustin Kirkland Fri, 16 Oct 2009 13:28:32 -0500
+
+eucalyptus (1.6~bzr931-0ubuntu3) karmic; urgency=low
+
+ * debian/eucalyptus-ipaddr.conf: Only consider scope global addresses when
+ determining cloud IP addresses (LP: #451607)
+ * Cherrypick upstream r932 to fix regression in ElasticFox query handling
+ that would prevent registered images to show up (LP: #451795)
+ * Web UI changes: add Services tab and fix look of ImageStore (LP: #436447)
+
+ -- Thierry Carrez Thu, 15 Oct 2009 13:51:28 +0200
+
+eucalyptus (1.6~bzr931-0ubuntu2) karmic; urgency=low
+
+ [ Kees Cook, Dan Nurmi, Dustin Kirkland ]
+ * debian/control, util/Makefile, util/chgrp-dhcpd, util/chmod-dhcpd,
+ util/dd-lv, util/euca_rootwrap.c, util/modprobe-aoe,
+ util/wrappers.conf: LP: #436977
+ - rework euca_rootwrap to be a bit more secure;
+ - whitelist the commands that eucalyptus needs to run as root in a
+ configuration file
+ - build-depend on libcap-dev
+ * debian/eucalyptus-common.install: ensure the new utilities and conf
+ file gets installed
+ * debian/patches/03-DESTDIR.patch: updated for new util/Makefile
+ utility installs
+
+ -- Dustin Kirkland Wed, 14 Oct 2009 18:12:51 -0500
+
+eucalyptus (1.6~bzr931-0ubuntu1) karmic; urgency=low
+
+ * Merge from upstream revision 931
+ * This snapshot is expected to fix the following bug:
+ - LP: #450915 - fix issue with slow restoring of instances
+
+ -- Dustin Kirkland Tue, 13 Oct 2009 23:31:12 -0500
+
+eucalyptus (1.6~bzr930-0ubuntu1) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * debian/eucalyptus-url, debian/eucalyptus-cc.install,
+ debian/eucalyptus-cc.links, debian/eucalyptus-cc.postinst::
+ - fix whitespace, to match other update-motd urls LP: #450449
+ - link to ubuntu.com/cloud, which links to our documentation,
+ necessary for new UEC admins
+ - ensure that it gets installed with executable permissions,
+ LP: #444970
+ * debian/eucalyptus-udeb.finish-install: fix typo; fix breakage of
+ /etc/network/interfaces when nodes are configured with static IP
+ addresses, LP: #446023
+ * eucalyptus-cc.upstart,
+ eucalyptus-cloud.eucalyptus-cc-registration.upstart,
+ eucalyptus-cloud.eucalyptus-sc-registration.upstart,
+ eucalyptus-cloud.eucalyptus-walrus-registration.upstart,
+ eucalyptus-sc.upstart, eucalyptus-walrus.upstart, rules, control:
+ - registration of cc/sc/walrus should *only* ever occur on the CLC,
+ so these scripts should be moved to the eucalyptus-cloud package,
+ LP: #450815
+ - starting cc/sc/walrus should *not* depend on eucalyptus-cloud
+ running, since these components can be installed on separate
+ machines, LP: #450777
+ - but if cc/sc/walrus are on a system doing registration, ensure that
+ these jobs kick off when "starting" registration
+ - allow for whitespace separated list of $CC_IP_ADDR and $SC_IP_ADDR,
+ as there can be more than one of these, and admins in multi-cluster
+ or multi-component mode would need to register a list
+ - use Replaces to ensure upgrades work properly
+ * debian/eucalyptus-ipaddr.conf: update inline documentation accordingly
+ * debian/eucalyptus-cc.templates: update public_ips instructions in the
+ installer to match the new upstream implementation, LP: #438565
+ * eucalyptus-common.eucalyptus.upstart: fix unclean package purging,
+ which hangs on stopping eucalyptus service
+
+ [ Upstream ]
+ * Merge upstream revision 930
+ * This snapshot is expected to fix the following bugs:
+ - LP: #449944 - fixes remote component bootstrap issue
+ - LP: #430852, #401996 - fix handling of security groups for the admin
+ - LP: #449948 - fix issues with network index and address recovery after
+ a system restart
+ - LP: #398867 - fix storing VLAN tag info from web ui
+ - LP: #430266 - fix setting of HTTP error codes
+ - LP: #449948 - part of fix to LP:#449948 the CC now correctly sets the
+ networkIndex field in the reponse message of describeInstances
+ - LP: #438565 - allowing a range of IPs to be specified in the
+ VNET_PUBLICIPS field of eucalyptus.conf
+ - LP: #449143 - Add the 169.254.169.254 address to eth0 as 'scope link'
+ in order to avoid conflict with the UEC avahi-publish mechanism
+ - LP: #449135 - Prevents a segfault in CC during client connection to NC
+ on describeInstances, when number of instances is high (> 20 or so).
+ The number of bytes sent to 'malloc' was being calculated incorrectly.
+ - LP: #444838 - fix to fully allow VMs to access meta-data service in
+ MANAGED-NOVLAN, when CC and CLC are on separate machines, and
+ VNET_CLOUDIP is set (more complete fix)
+ - LP: #447555 - off-by-one error was causing the public IPs in STATIC
+ mode to be reported incorrectly (last character was being truncated)
+ - LP: #447585 - flush cached images on deregister
+ - LP: #439410 - Add retry in the case where walrus responds to
+ getDecryptedImage with a 408 (connection timeout)
+
+ -- Dustin Kirkland Tue, 13 Oct 2009 23:03:15 -0500
+
+eucalyptus (1.6~bzr919-0ubuntu3) karmic; urgency=low
+
+ [ Matt Zimmerman ]
+ * Kill the Eucalyptus DHCP server in eucalyptus-cc.upstart:stop
+ (LP: #446056)
+
+ [ Thierry Carrez ]
+ * Add missing gnumail-providers.jar and inetlib.jar links to
+ /usr/share/eucalyptus to enable email sending (LP: #449530)
+ * Cherrypick upstream rev920, fixing Walrus timeouts (LP: #439410)
+
+ -- Thierry Carrez Mon, 12 Oct 2009 17:37:39 +0200
+
+eucalyptus (1.6~bzr919-0ubuntu2) karmic; urgency=low
+
+ * eucalyptus-cc need not depend on eucalyptus-cloud, so remove the dependency
+ (LP: #447991)
+
+ -- Matt Zimmerman Sat, 10 Oct 2009 14:12:40 +0100
+
+eucalyptus (1.6~bzr919-0ubuntu1) karmic; urgency=low
+
+ * Merge upstream revision 919
+ * This snapshot is expected to fix the following bugs:
+ - LP: #444908 - fixes addressing conflicts between MANAGED and SYSTEM
+ mode which cause run-instances to fail
+ - LP: #445997 - fix issues with failure cases and the release of
+ addresses and network indexes
+
+ -- Dustin Kirkland Fri, 09 Oct 2009 00:47:11 -0500
+
+eucalyptus (1.6~bzr916-0ubuntu1) karmic; urgency=low
+
+ * Merge upstream revision 916
+ * This snapshot is expected to fix the following bugs:
+ - LP: #443314 - fix system address selection
+ - LP: #443325 - fix regression in heartbeat, fix NPE in system mode
+ - LP: #444838 - fix meta-data service in multi-cluster
+ - LP: #444908 - fix running instances on multi-cluster
+ - LP: #445206 - fix remote bootstrap on walrus+sc
+ * debian/eucalyptus-cc.eucalyptus-cc-publication.upstart,
+ debian/local/euca_find_cluster.c: when doing the avahi-publish, use
+ $CC_IP_ADDR rather than $(hostname) for the "name" of the service;
+ use this ip address in the case where euca_find_cluster gets the
+ link-local 169.254.169.254 address, LP: #445738
+
+ -- Dustin Kirkland Wed, 07 Oct 2009 20:01:56 -0500
+
+eucalyptus (1.6~bzr912-0ubuntu3) UNRELEASED; urgency=low
+
+ * debian/eucalyptus-*.upstart: Make sure IP address is looked up at every
+ iteration of the loop, to have a chance to pick up late DHCP (LP: #445361)
+ * debian/eucalyptus-*.upstart: Increase timeouts waiting for the services
+ to appear, as we seem to be dangerously close to the limit for port 8443
+ and it still sometimes fails on first boot (LP: #445294)
+ * debian/eucalyptus-cloud.upstart: Remove useless "sleep 5" after checking
+ that port 8443 answers
+ * Cherrypicking Heartbeat fix from upstream rev913 (LP: #443325)
+ * debian/eucalyptus-*.upstart: Do NOT attempt autoregistration if the
+ services are not started after waiting 2 minutes for them (LP: #444504)
+
+ -- Thierry Carrez Wed, 07 Oct 2009 13:37:40 +0200
+
+eucalyptus (1.6~bzr912-0ubuntu2) karmic; urgency=low
+
+ [ Thierry Carrez ]
+ * debian/eucalyptus-cc.upstart: Really fix LP: #436407, since it was only
+ fixed in unused init scripts.
+ * tools/eucalyptus-cc.in, tools/eucalyptus-java-ws.in: No longer patch
+ those files, now that we use upstart we no longer use them.
+ * debian/eucalyptus-cc.upstart: Fix typo that made post-start fail early,
+ LP: #444560
+
+ [ Dustin Kirkland ]
+ * eucalyptus-cc.dirs, eucalyptus-cc.install, eucalyptus-cc.links: ensure
+ that update-motd.d/80-eucalyptus-url is executable, LP: #444970
+
+ -- Dustin Kirkland Tue, 06 Oct 2009 19:31:14 -0500
+
+eucalyptus (1.6~bzr912-0ubuntu1) karmic; urgency=low
+
+ * Merge upstream revision 912
+ * tools/eucalyptus-cc.in: resolve conflict, ensuring that we maintain
+ the 'ThreadsPerChild 1' sed
+ * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/server/ServletUtils.java:
+ resolve conflict, drop our diff, as upstream has solved the smtp
+ hostname issue
+ * debian/patches/boot-order.patch: dropped, applies to a file we don't
+ use anymore so it can be removed
+ * debian/eucalyptus-walrus.eucalyptus-walrus-registration.upstart: source
+ conf file and use $WALRUS_IP_ADDR variable, like the other scripts
+ * This snapshot is expected to fix the following bugs:
+ - LP: #388934 - apply authorization checks
+ - LP: #430226 - fix display of image permissions
+ - LP: #430957 - fix running of instances in SYSTEM mode
+ - LP: #436276 - sc should run as eucalyptus, instead of root
+ - LP: #436313 - fix sc registration through web ui
+ - LP: #436407 - fix cc segfaults with apache-mpm-worker, rampart
+ - LP: #436885 - fix database corruption, c3p0 deadlock on CLC
+ - LP: #437014 - handle execessive CLC sockets
+ - LP: #439251 - fix restart-required after autoregistration issue
+ - LP: #440744 - handle external command
+ - LP: #440817 - fail gracefully with volume deletion on sc
+ - LP: #443125 - fix loss of admin credentials
+
+ -- Dustin Kirkland Mon, 05 Oct 2009 15:02:11 -0500
+
+eucalyptus (1.6~bzr854-0ubuntu14) UNRELEASED; urgency=low
+
+ * Simplify eucalyptus-cc.eucalyptus-cc-publication.upstart and
+ eucalyptus-common.eucalyptus.upstart based on discussion with
+ Scott James Remnant
+ * debian/patches/euca_conf-error-output.diff: Don't suppress error output
+ from wget in checkLocalService, because it's useful in debugging
+
+ -- Matt Zimmerman Sat, 03 Oct 2009 16:57:56 +0100
+
+eucalyptus (1.6~bzr854-0ubuntu13) karmic; urgency=low
+
+ * eucalyptus-common.eucalyptus.upstart: the -L option was in the wrong
+ place, breaking the console.log logging, LP: #439161
+ * eucalyptus-cc.eucalyptus-cc-registration.upstart,
+ eucalyptus-cc.upstart, eucalyptus-cloud.upstart,
+ eucalyptus-ipaddr.conf, eucalyptus-common.install,
+ eucalyptus-sc.eucalyptus-sc-registration.upstart,
+ eucalyptus-sc.upstart, eucalyptus-walrus.upstart: using "localhost"
+ is breaking registration; instead, use the real, external ip
+ address; consolidate the (nasty) logic for determining this
+ into a single, sourcable, overridable location, LP: #437058, #438602
+ * 80-eucalyptus-url: use the new $CLOUD_IP_ADDR value and logic
+
+ -- Dustin Kirkland Wed, 30 Sep 2009 01:02:36 -0500
+
+eucalyptus (1.6~bzr854-0ubuntu12) karmic; urgency=low
+
+ * eucalyptus-cc.upstart, eucalyptus-common.eucalyptus.upstart: ensure
+ that the /var/run/eucalyptus/net directory gets created on upstart
+ job runs, and that all of /var/run/eucalyptus is owned by
+ eucalyptus:eucalyptus, LP: #438747
+ * debian/eucalyptus-common.postrm: fix lintian error, add missing
+ debhelper stubb
+ * Fix typo in post-stop stanza of eucalyptus-cc.upstart
+
+ -- Dustin Kirkland Tue, 29 Sep 2009 15:54:56 -0500
+
+eucalyptus (1.6~bzr854-0ubuntu11) karmic; urgency=low
+
+ * Restore /etc/init.d/eucalyptus-nc as a quickfix for node startup,
+ LP: #438585
+ * Wait 5 more seconds after eucalyptus-cloud appears to be started before
+ considering it started, to allow registration to succeed, LP: #438602
+ * Fix failure to import VNET_PUBLICIPS setting if a space-separated list
+ of IPs is entered, LP: #438586
+
+ -- Thierry Carrez Tue, 29 Sep 2009 11:42:26 +0200
+
+eucalyptus (1.6~bzr854-0ubuntu10) karmic; urgency=low
+
+ [ Matt Zimmerman ]
+ * Bump priority of eucalyptus/publicips to High, as we don't have a
+ reasonable default for this. The administrator needs to provide a
+ list of IP addresses on the local network which we can allocate.
+ * Updated question text for eucalyptus/publicips, thanks to Dan Nurmi
+
+ [ Thierry Carrez ]
+ * Revised question text for eucalyptus/publicips to include format info.
+
+ -- Thierry Carrez Mon, 28 Sep 2009 21:06:36 +0200
+
+eucalyptus (1.6~bzr854-0ubuntu9) karmic; urgency=low
+
+ [ Colin Watson ]
+ * Move eucalyptus-cloud slightly up the boot sequence, in particular so
+ that it starts before eucalyptus-cc.
+ * debian/patches/boot-order.patch: Adjust LSB init script headers to
+ declare that eucalyptus-cloud should start before eucalyptus-cc if
+ installed.
+
+ [ Matt Zimmerman ]
+ * tools/eucalyptus-java-ws.in: Print an error message, instead of silently
+ giving up, if we don't find /etc/eucalyptus/eucalyptus-cc.conf when trying
+ to autoregister the SC
+ * debian/source_eucalyptus.py, debian/rules: Add an apport hook to collect
+ configuration and log data
+ * Replace init scripts in eucalyptus-cloud, eucalyptus-cc, eucalyptus-sc and
+ eucalyptus-walrus with upstart jobs
+ * Add upstart jobs to register CC, SC and Walrus in the appropriate order, as
+ they come up, so that they are up and running out of the box instead of
+ having to be registered manually
+ * eucalyptus-{cloud,sc,walrus} depend on eucalyptus-common now, as they
+ rely on the eucalyptus upstart job
+
+ -- Matt Zimmerman Mon, 28 Sep 2009 16:02:13 +0100
+
+eucalyptus (1.6~bzr854-0ubuntu8) karmic; urgency=low
+
+ * Update two references to installer-cc.conf that now need to refer to
+ eucalyptus-cc.conf.
+ * Update translation templates.
+
+ -- Colin Watson Sat, 26 Sep 2009 10:09:27 +0100
+
+eucalyptus (1.6~bzr854-0ubuntu7) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * tools/eucalyptus-nc.in: exit 0, rather than 1, in the -nc
+ init script when unconfigured, related to bug LP: #430075
+ * debian/eucalyptus-cc.in, debian/eucalyptus-java-ws.in: help registration
+ with local sync, no rsync parameters
+ * debian/eucalyptus-common.postrm: prune eucalyptus files from /etc and
+ /var on package purge, essential for testing, LP: #436928
+
+ [ Matt Zimmerman ]
+ * Revert revno 573, as according to Dan Nurmi it broke registration entirely
+ * Apply upstream revno 895, as according to Dan this fixes the same bug that
+ revno 573 attempted to fix, but properly (without breaking registration)
+ * debian/eucalyptus-cc.postinst: Guard update-rc.d remove calls so that they
+ don't run on initial installation. Because -cc could be configured before
+ or after -walrus/-cloud, this could cause -cc to clobber -walrus/-cloud
+ init scripts on initial installation
+ * tools/eucalyptus.conf: Don't try to run shell code here; it isn't (always)
+ interpreted as a shell script
+ * debian/eucalyptus-cc.postinst: Use euca_conf --import-conf to copy the
+ network settings into eucalyptus.conf instead
+ * Set the default VNET_MODE to MANAGED-NOVLAN
+ * The three preceding changes close LP: #435130
+ * Store the CC name in a new config file /etc/eucalyptus/eucalyptus-cc.conf
+ and get rid of /etc/eucalyptus/installer-cc.conf
+
+ [ Steve Langasek ]
+ * Move eucalyptus-nc "no VT" handling for LP: #426830 to a debconf script
+ instead, so that users are a bit more likely to see this.
+ * Drop the dpkg-statoverride check on /var/lib/eucalyptus/keys in the
+ eucalyptus-common postinst; this was ineffective anyway because we'd done
+ a chown -R immediately before that, so the only part that was respecting
+ statoverride were the directory perms.
+
+ -- Dustin Kirkland Sat, 26 Sep 2009 00:30:18 -0700
+
+eucalyptus (1.6~bzr854-0ubuntu6) karmic; urgency=low
+
+ [ Thierry Carrez ]
+ * Apply upstream rev867 and rev876 diffs to fix SC registration through
+ Web UI, LP: #436313
+ * tools/eucalyptus-java-ws.in: Reapply fix on boot messages that was lost
+ on a merge, LP: #435766
+
+ [ Dustin Kirkland ]
+ * debian/80-eucalyptus-url: add an update-motd script that
+ displays the administration URL in the MOTD at position 80, LP: #436199
+ * debian/eucalyptus-nc.preinst: echo a warning message if a system
+ installing the -nc does not have VT, LP: #426830
+ * debian/rules: don't fail package installation due to init script
+ failures, LP: #430075, #418473
+ * tools/euca_conf.in: vastly improve the output of
+ 'euca_conf --register-nodes', which was missing some pertinent
+ information, LP: #424457
+ * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/server/ServletUtils.java:
+ if we're going to use the local host to send email, use 'localhost' as
+ the hostname, rather than the externally resolvable hostname which
+ breaks in the default ubuntu postfix configuration, LP: #412676
+ * debian/control:
+ - have eucalyptus-common depend on openssh-server and openssh-client,
+ as these should really be installed on most any Eucalyptus system,
+ LP: #411656
+ - have eucalyptus-common recommend unzip, since Eucalyptus uses zip
+ files for credentials, which may be needed on various systems,
+ LP: #436876
+ - recommend libpam that provides pam_motd, LP: #436199
+ - conflict with apache2-mpm-itk, LP: #338344
+ * debian/eucalyptus-common.postinst: configure VNET_DHCPDAEMON and
+ VNET_DHCPUSER appropriately for default Ubuntu on initial install,
+ LP: #364938
+
+ [ Colin Watson ]
+ * debian/control:
+ - Make eucalyptus-nc explicitly depend on apache2-mpm-worker |
+ apache2-mpm-prefork, since the NC requires that Apache be configured
+ to only start a single child (LP: #338344).
+
+ -- Dustin Kirkland Fri, 25 Sep 2009 18:01:29 -0700
+
+eucalyptus (1.6~bzr854-0ubuntu5) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * debian/control: drop dhcp from -nc's recommends, add it to -cc's
+ recommends, LP: #364925
+ * tools/euca_conf.in: use "-oStrictHostKeyChecking=no" if we're doing
+ --discover-nodes, LP: #436210
+ * debian/eucalyptus-udeb.finish-install: add own ssh host key to
+ /etc/ssh/ssh_known_hosts, LP: #436211
+
+ [ Colin Watson ]
+ * euca_find_cluster: Use the proper bracketed format for IPv6 host/port
+ combinations.
+ * euca_find_cluster: For now, only ask for an IPv4 address for the
+ cluster, as IPv6 addresses often show up by accident but don't work, and
+ we don't have time to deal with this right now (LP: #436200).
+ * tools/eucalyptus-java-ws.in: Increase timeout here too, to go with
+ Matt's previous change.
+
+ -- Colin Watson Fri, 25 Sep 2009 15:30:36 +0100
+
+eucalyptus (1.6~bzr854-0ubuntu4) karmic; urgency=low
+
+ * Temporarily disable rejection of loopback addresses in registerComponent.
+ This seems perfectly valid when the cloud and cluster controllers are
+ running on the same system.
+
+ This works around LP: #434593 (which is a blocker for 9.10 beta) and
+ reopens LP: #431934 (which is not)
+ * tools/eucalyptus-cc.in:register_local_cloud: Increase the timeout
+ waiting for the service to start before registering it. Increasing from 10
+ seconds to 60 seems to be sufficient to work around LP: #434590
+
+ -- Matt Zimmerman Thu, 24 Sep 2009 15:57:38 -0700
+
+eucalyptus (1.6~bzr854-0ubuntu3) karmic; urgency=low
+
+ * Continue in non-automated mode if we fail to download the preseed file
+ from the cluster during node installation.
+ * Carry over user-setup/encrypt-home value from cluster to node
+ installation.
+ * Fix euca_conf --discover-nodes to offer each discovered node separately,
+ not all at once.
+ * Fix euca_conf --discover-nodes to offer only nodes, not the cluster as
+ well.
+ * Make euca_conf rsync keys to ${EUCA_USER} rather than root, since the
+ former is set up for automatic authentication and the latter isn't (and
+ probably shouldn't be).
+
+ -- Colin Watson Thu, 24 Sep 2009 22:52:33 +0100
+
+eucalyptus (1.6~bzr854-0ubuntu2) karmic; urgency=low
+
+ * Fix query timeout issues in timezones > UTC (LP: #431847)
+ * Add --local-sync to allow euca_conf --register-* to sync keys locally
+ if an external (but local) IP address is used to register (LP: #434651)
+
+ -- Thierry Carrez Wed, 23 Sep 2009 18:27:06 +0200
+
+eucalyptus (1.6~bzr854-0ubuntu1) karmic; urgency=low
+
+ * New snapshot.
+
+ -- Soren Hansen Wed, 23 Sep 2009 10:50:10 +0200
+
+eucalyptus (1.6~bzr840-0ubuntu1) karmic; urgency=low
+
+ [ Colin Watson ]
+ * Configure VNET_PUBINTERFACE and VNET_PRIVINTERFACE, asking for the
+ private interface if multiple interfaces are available (LP: #425933). If
+ the private interface is not the same as the public interface configured
+ in netcfg, then give it basic DHCP configuration in
+ /etc/network/interfaces.
+
+ [ Soren Hansen ]
+ * New upstream snapshot.
+
+ -- Soren Hansen Tue, 22 Sep 2009 12:44:42 +0200
+
+eucalyptus (1.6~bzr808-0ubuntu1) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * debian/eucalyptus-udeb.finish-install: eth0 should be set to
+ 'manual', when configured with br0 on dhcp, LP: #430820
+ * tools/euca_conf.in: ensure that /var/run/eucalyptus and
+ /var/run/eucalyptus/net are created at boot and have correct
+ ownerships, LP: #431114, #365349
+
+ [ Thierry Carrez ]
+ * cluster/Makefile, node/Makefile: Do not patch generated stubs if you
+ didn't regenerate them, to avoid spurious build interruptions.
+ * tools/eucalyptus-*.in: Do not guard initscripts basic output
+ messages with VERBOSE != no (LP: #431274)
+ * debian/control: Have eucalyptus-cc suggest vtun for full multi-cluster
+ networking capabilities (LP: #425928)
+
+ [ Colin Watson ]
+ * Align ports used for cloud startup detection in init scripts with the
+ corresponding code in euca_conf (LP: #430758).
+
+ [ Soren Hansen ]
+ * New snapshot.
+ * Add a build-dependency on libc3p0-java.
+
+ -- Soren Hansen Mon, 21 Sep 2009 12:14:12 +0200
+
+eucalyptus (1.6~bzr746-0ubuntu3) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * tools/eucalyptus-nc.in: Create the suggested 32 loop devices using
+ mknod in the init script, perm'd 660, owned by root:disk, LP: #430846
+ * debian/eucalyptus-udeb.finish-install: br0 needs to start at boot,
+ LP: #430820
+
+ [ Colin Watson ]
+ * Work around netcfg/choose_interface not always being set (LP: #430820).
+ * Actually check timeout in register_local_cloud.
+
+ [ Mathias Gug ]
+ * Recommend python-image-store-proxy for eucalyptus-cloud. The Image Store
+ feature won't work without it, LP: #425926
+
+ -- Soren Hansen Wed, 16 Sep 2009 21:14:18 +0200
+
+eucalyptus (1.6~bzr746-0ubuntu2) karmic; urgency=low
+
+ [ Colin Watson ]
+ * On initial cluster installation, allow authentication to the front-end
+ using the cluster's SSH key (LP: #429087).
+ * Update the cloud .jar name we look for when registering a cluster with a
+ local cloud.
+ * Check for IPv6 listeners as well as IPv4 when registering a cluster with
+ a local cloud.
+ * Actually kill cloud/Walrus/SC processes before entering a timeout loop
+ to wait for them to die.
+ * Automatically register Walrus and storage controllers with any local
+ cloud (LP: #425922).
+ * Discard standard output from euca_conf when registering components in
+ init scripts.
+
+ [ Soren Hansen ]
+ * Add configuration for mpm_event.
+
+ -- Colin Watson Tue, 15 Sep 2009 22:44:25 +0100
+
+eucalyptus (1.6~bzr746-0ubuntu1) karmic; urgency=low
+
+ * New upstream, bugfix snapshot.
+ * Add more full-featured default network configuration (LP: #425914).
+
+ -- Soren Hansen Tue, 15 Sep 2009 13:50:40 +0200
+
+eucalyptus (1.6~bzr672-0ubuntu4) karmic; urgency=low
+
+ * Configure a bridge interface when installing a node controller
+ (LP: #424541).
+ * Don't remove /etc/eucalyptus/installer-cc.conf after registering the
+ cluster controller with a local cloud; we may need it later.
+
+ -- Colin Watson Mon, 14 Sep 2009 23:57:31 +0100
+
+eucalyptus (1.6~bzr672-0ubuntu3) karmic; urgency=low
+
+ [ Colin Watson ]
+ * Add euca_conf --discover-nodes option.
+ * Register cluster with local cloud in start as well as cleanstart.
+ * SECURITY UPDATE: Fix temporary file vulnerability in euca_conf by using
+ 'sed -i' (LP: #424459).
+
+ [ Soren Hansen ]
+ * Only ship antlr.jar in eucalyptus-java-common. (LP: #429086)
+
+ -- Soren Hansen Mon, 14 Sep 2009 12:59:40 +0200
+
+eucalyptus (1.6~bzr672-0ubuntu2) karmic; urgency=low
+
+ * Do a better job at unsetting $DISPLAY in the build.
+ * Remove gatherlog/generated/stubs which somehow snuck into the
+ diff.gz.
+
+ -- Soren Hansen Fri, 11 Sep 2009 13:26:37 +0200
+
+eucalyptus (1.6~bzr672-0ubuntu1) karmic; urgency=low
+
+ * Split eucalyptus-cloud into eucalyptus-java-common, eucalyptus-
+ cloud, eucalyptus-sc, and eucalyptus-walrus. (LP: #425908)
+ * Unset DISPLAY during the build process. The build would fail if
+ DISPLAY was set, but $DISPLAY couldn't be reached.
+ * Regenerate WSDL stubs.
+ * New, bugfix-only upstream snapshot. (LP: #426197)
+
+ -- Soren Hansen Fri, 11 Sep 2009 01:42:04 +0200
+
+eucalyptus (1.6~bzr645-0ubuntu2) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * debian/control: eucalyptus-nc should depend on avahi-utils for the
+ avahi-publish utility used in the init script, LP: #424442
+ * tools/eucalyptus.conf: fix dhcpd configuration values, change default
+ bridge name from xenbr0 to br0
+
+ [ Colin Watson ]
+ * eucalyptus-cloud Replaces: eucalyptus-javadeps.
+
+ [ Soren Hansen ]
+ * Update WSDL stubs.
+
+ -- Soren Hansen Mon, 07 Sep 2009 15:24:04 +0200
+
+eucalyptus (1.6~bzr645-0ubuntu1) karmic; urgency=low
+
+ [ Dustin Kirkland ]
+ * debian/control:
+ - Add openssh-server and eucalyptus-common dependencies for
+ eucalyptus-cloud.
+ * debian/eucalyptus-cc.dirs, debian/eucalyptus-cloud.dirs,
+ debian/eucalyptus-nc.dirs:
+ - Consolidate directory creation.
+ * debian/eucalyptus-cc.postinst, debian/eucalyptus-cloud.postinst,
+ debian/eucalyptus-common.postinst:
+ - Adjust ownership/permissions for /var/lib/eucalyptus dirs.
+ * tools/euca_conf.in:
+ - Uncomment --no-rsync usage statement.
+ * debian/eucalyptus-cloud.install, debian/rules: install and start
+ the eucalyptus-sc init script in the eucalyptus-cloud package
+ * tools/eucalyptus-cc.in, tools/eucalyptus-java-ws.in,
+ tools/eucalyptus-nc.in: init script cleanups; use DESC appropriately,
+ exit 0 if already started when trying to start
+ * debian/eucalyptus-cc.postinst: prevent init script zombie by calling
+ db_stop to clean file descriptors properly and reap postinst script
+
+ [ Soren Hansen ]
+ * Only inject SSH keys if not running in MANAGED or MANAGED-NOVLAN
+ mode.
+ * New upstream (bugfix only) snapshot.
+ * Add commons-io build-dependency.
+
+ -- Soren Hansen Thu, 03 Sep 2009 19:15:58 -0500
+
+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~bzr931.orig/debian/eucalyptus-gl.install
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-gl.install
@@ -0,0 +1 @@
+/usr/lib/axis2/services/EucalyptusGL
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-nc.dirs
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-nc.dirs
@@ -0,0 +1 @@
+/var/lib/eucalyptus/instances
--- eucalyptus-1.6~bzr931.orig/debian/control
+++ eucalyptus-1.6~bzr931/debian/control
@@ -0,0 +1,220 @@
+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,
+ libcap-dev,
+ libcommons-io-java,
+ libcommons-fileupload-java,
+ libcommons-httpclient-java,
+ libcommons-lang-java,
+ libcommons-pool-java (>= 1.4),
+ libc3p0-java,
+ 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, openssh-server, openssh-client
+Recommends: avahi-utils, unzip
+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-sc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common, eucalyptus-java-common
+Description: Elastic Utility Computing Architecture - Storage 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 storage controller part of eucalyptus.
+
+Package: eucalyptus-cloud
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common, eucalyptus-java-common
+Recommends: python-image-store-proxy, postfix | mail-transport-agent
+Replaces: eucalyptus-cc (<= 1.6~bzr919-0ubuntu3),
+ eucalyptus-sc (<= 1.6~bzr919-0ubuntu3),
+ eucalyptus-walrus (<= 1.6~bzr919-0ubuntu3)
+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-walrus
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common, eucalyptus-java-common
+Description: Elastic Utility Computing Architecture - Walrus (S3)
+ 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 Walrus, the S3 part of eucalyptus.
+
+Package: eucalyptus-java-common
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, vblade, lvm2, dmsetup, openssh-server, eucalyptus-common,
+ default-jre-headless | java5-runtime-headless,
+ ecj,
+ 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
+Replaces: eucalyptus-javadeps, eucalyptus-common
+Description: Elastic Utility Computing Architecture - Common Java package
+ 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 everything the java based packages share.
+
+Package: eucalyptus-cc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, eucalyptus-common, apache2, libapache2-mod-axis2c, eucalyptus-gl, avahi-utils
+Recommends: vlan, powerwake, dhcp3-server, libpam-modules (>= 1.0.1-9ubuntu3)
+Suggests: vtun
+Conflicts: apache2-mpm-itk
+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-mpm-worker | apache2-mpm-prefork, libapache2-mod-axis2c, eucalyptus-gl, adduser, avahi-utils
+Suggests: aoetools
+Recommends: libvirt-bin, kvm, vlan, bridge-utils, powernap
+Conflicts: apache2-mpm-itk
+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~bzr931.orig/debian/eucalyptus-cloud.eucalyptus-walrus-registration.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cloud.eucalyptus-walrus-registration.upstart
@@ -0,0 +1,11 @@
+description "Eucalyptus walrus registration"
+author "Matt Zimmerman "
+
+start on started eucalyptus-cloud
+
+task
+
+script
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ euca_conf --no-rsync --local-sync --register-walrus "$WALRUS_IP_ADDR" >> /var/log/eucalyptus/walrus-registration.log 2>&1
+end script
--- eucalyptus-1.6~bzr931.orig/debian/compat
+++ eucalyptus-1.6~bzr931/debian/compat
@@ -0,0 +1 @@
+7
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-udeb.postinst
+++ eucalyptus-1.6~bzr931/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" || true
+ fi
+else
+ set_question tasksel tasksel/first multiselect eucalyptus-simple-cluster
+fi
+
+exit 0
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-nc.config
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-nc.config
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+. /usr/share/debconf/confmodule
+
+# Warn users that installing eucalyptus-nc on a system without VT
+# may be undesirable.
+
+if ! egrep -q "flags.*:.*(svm|vmx)" /proc/cpuinfo 2>&1
+then
+ db_input high eucalyptus-nc/no_vmx || true
+ db_go
+fi
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-common.eucalyptus.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-common.eucalyptus.upstart
@@ -0,0 +1,61 @@
+description "Eucalyptus web services"
+author "Matt Zimmerman "
+
+start on runlevel [23]
+
+respawn
+
+pre-start script
+ # Check if installed
+ [ -f /usr/sbin/euca_conf ] || { stop; exit 0; }
+
+ mkdir -p /var/run/eucalyptus/net
+ chown eucalyptus:eucalyptus /var/run/eucalyptus /var/run/eucalyptus/net
+
+ . /etc/eucalyptus/eucalyptus.conf
+
+ if [ "$EUCALYPTUS" = "not_configured" ]; then
+ echo "Eucalyptus is not configured yet"
+ exit 1
+ fi
+end script
+
+script
+ . /etc/eucalyptus/eucalyptus.conf
+
+ opts="-h $EUCALYPTUS -u $EUCA_USER --pidfile /var/run/eucalyptus/eucalyptus.pid -L console-log"
+ services=""
+
+ # If the -cloud package is not installed, disable the cloud service
+ if [ ! -f /usr/share/eucalyptus/eucalyptus-cloud-1.6-devel.jar ]; then
+ opts="$opts --disable-cloud"
+ else
+ services="$services cloud"
+ fi
+
+ # If the -walrus package is not installed, disable the walrus service
+ if [ ! -f /usr/share/eucalyptus/eucalyptus-walrus-1.6-devel.jar ]; then
+ opts="$opts --disable-walrus"
+ else
+ services="$services walrus"
+ fi
+
+ # If the -sc package is not installed, disable the storage controller
+ # service
+ if [ ! -f /usr/share/eucalyptus/eucalyptus-storagecontroller-1.6-devel.jar ]; then
+ opts="$opts --disable-storage"
+ else
+ services="$services sc"
+ fi
+
+ # handle eucalyptus.conf options
+ if [ "$DISABLE_DNS" = "Y" ]; then
+ opts="$opts --remote-dns"
+ fi
+ if [ "$DISABLE_EBS" = "Y" ]; then
+ opts="$opts --disable-ebs"
+ fi
+
+ [ -n "$services" ] || { stop; exit 0; }
+ exec eucalyptus-cloud $opts
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-sc.postinst
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-sc.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ]; then
+ if [ -e /etc/init/eucalyptus.conf ]; then
+ restart eucalyptus || :
+ fi
+fi
+
+exit 0
--- eucalyptus-1.6~bzr931.orig/debian/axis2.xml
+++ eucalyptus-1.6~bzr931/debian/axis2.xml
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6060
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+ HTTP/1.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-walrus.postinst
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-walrus.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "configure" ]; then
+ if [ -e /etc/init/eucalyptus.conf ]; then
+ restart eucalyptus || :
+ fi
+fi
+
+exit 0
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cc.config
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cc.config
@@ -0,0 +1,24 @@
+#! /bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+if [ "$1" = configure ] && [ -z "$2" ]; then
+ db_input high eucalyptus/cluster-name || true
+ db_input low eucalyptus/mode || true
+ db_go
+ db_get eucalyptus/mode
+ if [ "$RET" = "MANAGED-NOVLAN" -o "$RET" = "MANAGED" ]
+ then
+ current_dns="$(grep ^nameserver /etc/resolv.conf | head -n 1 | awk -- '{ print $NF }')"
+ db_set eucalyptus/dns "$current_dns"
+ db_input medium eucalyptus/subnet || true
+ db_input medium eucalyptus/netmask || true
+ db_input medium eucalyptus/dns || true
+ db_input medium eucalyptus/addrspernet || true
+ db_input high eucalyptus/publicips || true
+ db_go
+ fi
+fi
+
+exit 0
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-udeb.finish-install
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-udeb.finish-install
@@ -0,0 +1,237 @@
+#! /bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+question () {
+ owner="$1"
+ question="$2"
+ qtype="$3"
+
+ if db_get "$2"; then
+ echo "$owner $question $qtype $RET" >>"$OUT"
+ fi
+}
+
+make_preseed_file () {
+ # 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"
+
+ 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 user-setup/encrypt-home 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
+}
+
+install_ssh_key () {
+ # Allow the cluster's SSH key to authenticate to itself.
+ 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
+ cat "/target$EUCA_HOME/.ssh/id_rsa.pub" \
+ >>"/target/$EUCA_HOME/.ssh/authorized_keys"
+ fi
+ # Add the host's public keys to its own known_hosts
+ if [ -r /target/etc/ssh/ssh_host_rsa_key.pub ]; then
+ pubkey=$(cat /target/etc/ssh/ssh_host_rsa_key.pub)
+ printf "localhost %s\n" "$pubkey" >> /target/etc/ssh/ssh_known_hosts
+ if [ -r /target/etc/hostname ]; then
+ hostname=$(cat /target/etc/hostname)
+ printf "%s %s\n" "$hostname" "$pubkey" >> /target/etc/ssh/ssh_known_hosts
+ fi
+ fi
+}
+
+get_default_interface () {
+ db_get netcfg/choose_interface || return 1
+ default_interface="${RET%%:*}"
+ # Work around netcfg/choose_interface not always being set:
+ # https://bugs.launchpad.net/ubuntu/+source/netcfg/+bug/430820
+ if [ -z "$default_interface" ]; then
+ default_interface=eth0
+ fi
+}
+
+set_conf_var () {
+ sed -i "s/^\\($1\\)=.*/\\1=\"$2\"/" \
+ /target/etc/eucalyptus/eucalyptus.conf
+}
+
+configure_interfaces () {
+ # Configure the public and private interfaces.
+
+ get_default_interface || return
+ # netcfg's default interface is by definition (we hope) public.
+ set_conf_var VNET_PUBINTERFACE "$default_interface" || true
+
+ # Cloned-and-hacked from netcfg/netcfg-common.c:get_all_ifs().
+ # /sys/class/net is easier to use from shell, though.
+ interfaces=
+ num_interfaces=0
+ for interface in /sys/class/net/*; do
+ [ -d "$interface" ] || continue
+ base="${interface##*/}"
+ # Ignore the loopback
+ [ "$base" != lo ] || continue
+ # Ignore tunnel devices
+ [ "${base#sit}" = "$base" ] || continue
+ # Ignore raw 802.11 devices
+ iftype="$(cat "$interface/type" 2>/dev/null)"
+ case $iftype in
+ 801|802|803)
+ continue
+ ;;
+ esac
+ interfaces="${interfaces:+$interfaces, }${base##*/}"
+ num_interfaces="$(($num_interfaces + 1))"
+ done
+
+ if [ "$num_interfaces" -eq 0 ]; then
+ private_interface="$default_interface"
+ elif [ "$num_interfaces" -eq 1 ]; then
+ private_interface="$interfaces"
+ else
+ db_get eucalyptus/private-interface
+ if [ -z "$RET" ]; then
+ db_set eucalyptus/private-interface \
+ "$default_interface"
+ fi
+ db_subst eucalyptus/private-interface INTERFACES "$interfaces"
+ db_subst eucalyptus/private-interface \
+ DEFAULT_INTERFACE "$default_interface"
+ db_input high eucalyptus/private-interface || true
+ db_go || true
+ db_get eucalyptus/private-interface
+ private_interface="$RET"
+ fi
+
+ set_conf_var VNET_PRIVINTERFACE "$private_interface" || true
+ if [ "$private_interface" != "$default_interface" ]; then
+ cat >> /target/etc/network/interfaces <> /target/etc/network/interfaces <"
+
+start on (started eucalyptus-cloud and stopped eucalyptus-cc-registration)
+
+task
+respawn
+
+script
+ . /etc/eucalyptus/eucalyptus-cc.conf
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ for ip in $SC_IP_ADDR; do
+ euca_conf --no-rsync --local-sync --register-sc "$CC_NAME" "$ip" >> /var/log/eucalyptus/sc-registration.log 2>&1
+ done
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-url
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-url
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+# Print the administration URL in the MOTD
+# Use an ip address URL for now; this could get prettier in the future,
+# perhaps using the hostname.
+
+. /etc/eucalyptus/eucalyptus-ipaddr.conf
+printf "\nUbuntu Enterprise Cloud Administration and Documentation\nhttps://%s:8443/\nhttp://www.ubuntu.com/cloud\n" "$CLOUD_IP_ADDR"
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cc.eucalyptus-cc-publication.upstart
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cc.eucalyptus-cc-publication.upstart
@@ -0,0 +1,11 @@
+description "Eucalyptus cluster controller publication"
+author "Matt Zimmerman "
+
+start on started eucalyptus-cc
+stop on stopping eucalyptus-cc
+
+script
+ . /etc/eucalyptus/eucalyptus.conf
+ . /etc/eucalyptus/eucalyptus-ipaddr.conf
+ exec avahi-publish -s $CC_IP_ADDR _eucalyptus._tcp $CC_PORT txtvers=1 protovers=1.5.0 type=cluster
+end script
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-nc.templates
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-nc.templates
@@ -0,0 +1,6 @@
+Template: eucalyptus-nc/no_vmx
+Type: error
+_Description: This hardware does not support virtualization acceleration
+ This system's CPU does not have support for virtualization acceleration,
+ which is strongly recommended for Eucalyptus Nodes. Eucalyptus running on
+ this hardware will be unaccelerated.
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cc.dirs
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cc.dirs
@@ -0,0 +1,3 @@
+/etc/update-motd.d
+/usr/lib/eucalyptus
+/var/lib/eucalyptus/CC
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-common.links
+++ eucalyptus-1.6~bzr931/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~bzr931.orig/debian/eucalyptus-cc.install
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cc.install
@@ -0,0 +1,3 @@
+/usr/lib/axis2/services/EucalyptusCC
+/var/lib/eucalyptus/keys/nc-client-policy.xml
+debian/eucalyptus-url /usr/lib/eucalyptus
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-cc.postinst
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cc.postinst
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+. /usr/share/debconf/confmodule
+
+if [ "$1" = "configure" ]
+then
+ if ! dpkg-statoverride --list /var/lib/eucalyptus/CC >/dev/null 2>&1; then
+ chown eucalyptus:eucalyptus /var/lib/eucalyptus/CC
+ chmod 700 /var/lib/eucalyptus/CC
+ fi
+ if ! dpkg-statoverride --list /var/lib/eucalyptus/keys >/dev/null 2>&1; then
+ chown eucalyptus:eucalyptus /var/lib/eucalyptus/keys
+ chmod 700 /var/lib/eucalyptus/keys
+ fi
+ chmod 755 /usr/lib/eucalyptus/eucalyptus-url
+ if [ -z "$2" ]
+ then
+ DEBCONF_KEY_MAP="eucalyptus/mode=VNET_MODE eucalyptus/subnet=VNET_SUBNET eucalyptus/netmask=VNET_NETMASK eucalyptus/dns=VNET_DNS eucalyptus/addrspernet=VNET_ADDRSPERNET eucalyptus/publicips=VNET_PUBLICIPS"
+ conf_tmp=$(tempfile)
+ for mapping in $DEBCONF_KEY_MAP
+ do
+ debconf_key="${mapping%=*}"
+ conf_key="${mapping#*=}"
+ db_get $debconf_key
+ if [ "$RET" ]; then
+ echo "$conf_key=\"$RET\"" >> $conf_tmp
+ fi
+ done
+ euca_conf --import-conf $conf_tmp
+ rm -f $conf_tmp
+
+ db_get eucalyptus/cluster-name
+ if [ "$RET" ]; then
+ echo "CC_NAME=\"$RET\"" >> /etc/eucalyptus/eucalyptus-cc.conf
+ 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 [ -n "$2" ] && 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
+
+ if [ -e /etc/init/eucalyptus-cc.conf ]; then
+ start eucalyptus-cc || :
+ fi
+fi
+
+db_stop
+
+#DEBHELPER#
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-common.postinst
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-common.postinst
@@ -0,0 +1,54 @@
+#!/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
+ euca_conf -d / /etc/eucalyptus/eucalyptus.conf
+ euca_conf --dhcpd /usr/sbin/dhcpd3
+ euca_conf --dhcp_user dhcpd
+ 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
+ chmod 700 /var/lib/eucalyptus/keys
+
+ if [ -e /etc/init/eucalyptus.conf ]; then
+ start eucalyptus || :
+ fi
+fi
+
+#DEBHELPER#
--- eucalyptus-1.6~bzr931.orig/debian/eucalyptus-walrus.install
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-walrus.install
@@ -0,0 +1 @@
+/usr/share/eucalyptus/eucalyptus-walrus-1.6-devel.jar
--- eucalyptus-1.6~bzr931.orig/debian/rules
+++ eucalyptus-1.6~bzr931/debian/rules
@@ -0,0 +1,58 @@
+#!/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 \ :)
+# The GWT compile doesn't like to run with a $DISPLAY that it can't reach.
+
+unexport DISPLAY
+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/60eucalyptus-udeb
+
+DEB_DH_INSTALLINIT_ARGS=--noscripts
+
+binary-install/eucalyptus-nc::
+ dh_installinit -p$(cdbs_curpkg) --error-handler=true --onlyscripts -- start 92 2 3 4 5 . stop 8 0 1 6 .
+
+binary-install/eucalyptus-common::
+ dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus
+
+binary-install/eucalyptus-cc::
+ dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus-cc-publication --noscripts
+
+binary-install/eucalyptus-cloud::
+ dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus-cc-registration --noscripts
+ dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus-sc-registration
+ dh_installinit -p$(cdbs_curpkg) --noscripts --name=eucalyptus-walrus-registration
+
+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~bzr931.orig/debian/eucalyptus-cc.postrm
+++ eucalyptus-1.6~bzr931/debian/eucalyptus-cc.postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+ if [ -e /etc/init/eucalyptus-cc.conf ]; then
+ stop eucalyptus-cc || :
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
--- eucalyptus-1.6~bzr931.orig/debian/local/euca_find_cluster.c
+++ eucalyptus-1.6~bzr931/debian/local/euca_find_cluster.c
@@ -0,0 +1,271 @@
+/* $Id$ */
+
+/***
+ This file is based on an example that is part of 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.
+
+ avahi is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+
+ avahi is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
+ Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with avahi; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA.
+***/
+
+#ifdef HAVE_CONFIG_H
+#include
+#endif
+
+#include
+#include
+#include
+#include
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+#include
+
+static AvahiSimplePoll *simple_poll = NULL;
+static AvahiServer *server = NULL;
+
+static di_hash_table *resolver_hash = NULL;
+
+static int debug = 0;
+
+static void quiet_logger(AvahiLogLevel level, const char *txt) {
+}
+
+static bool resolver_equal_func(const void *key1, const void *key2) {
+ return !strcmp((const char *) key1, (const char *) key2);
+}
+
+static uint32_t resolver_hash_func(const void *key) {
+ /* save reimplementing our own hash algorithm ... */
+ di_rstring rstring;
+ rstring.string = (char *) key;
+ rstring.size = strlen(key);
+ return di_rstring_hash(&rstring);
+}
+
+static void resolve_callback(
+ AvahiSServiceResolver *r,
+ AVAHI_GCC_UNUSED AvahiIfIndex interface,
+ AVAHI_GCC_UNUSED AvahiProtocol protocol,
+ AvahiResolverEvent event,
+ const char *name,
+ const char *type,
+ const char *domain,
+ const char *host_name,
+ const AvahiAddress *address,
+ uint16_t port,
+ AvahiStringList *txt,
+ AvahiLookupResultFlags flags,
+ AVAHI_GCC_UNUSED void* userdata) {
+
+ assert(r);
+
+ /* Called whenever a service has been resolved successfully or timed out */
+
+ switch (event) {
+ case AVAHI_RESOLVER_FAILURE:
+ if (debug)
+ fprintf(stderr, "(Resolver) Failed to resolve service '%s' of type '%s' in domain '%s': %s\n", name, type, domain, avahi_strerror(avahi_server_errno(server)));
+ break;
+
+ case AVAHI_RESOLVER_FOUND: {
+ char *human_address = avahi_malloc0(AVAHI_ADDRESS_STR_MAX);
+ char *key = NULL;
+
+ if (avahi_address_snprint(human_address, AVAHI_ADDRESS_STR_MAX, address)) {
+ if (address->proto == AVAHI_PROTO_INET6)
+ key = avahi_strdup_printf("[%s]:%u", human_address, port);
+ else if (strncmp(human_address, "169.254.169.254", 15) == 0)
+ key = avahi_strdup_printf("%s:%u", name, port);
+ else
+ key = avahi_strdup_printf("%s:%u", human_address, port);
+ } else {
+ if (debug)
+ fprintf(stderr, "(Resolver) failed to resolve %s to IP address/port\n", key);
+ }
+ avahi_free(human_address);
+
+ if (di_hash_table_lookup(resolver_hash, key)) {
+ if (debug)
+ fprintf(stderr, "(Resolver) Already seen %s\n", key);
+ free(key);
+ } else {
+ AvahiStringList *type_entry;
+ char *type_key, *type_value;
+
+ type_entry = avahi_string_list_find(txt, "type");
+ if (avahi_string_list_get_pair(type_entry, &type_key, &type_value, NULL) == 0) {
+ if (!strcmp(type_value, "cluster")) {
+ di_hash_table_insert(resolver_hash, key, "");
+ if (debug)
+ fprintf(stderr, "(Resolver) Service '%s' of type '%s' in domain '%s':\n", name, type, domain);
+ printf("%s\n", key);
+ avahi_free(type_value);
+ avahi_free(type_key);
+ } else {
+ if (debug)
+ fprintf(stderr, "(Resolver) %s has type '%s', not 'cluster'\n", key, type_value);
+ }
+ } else {
+ if (debug)
+ fprintf(stderr, "(Resolver) %s has no 'type' TXT record\n", key);
+ }
+ /* don't free key; di_hash_table_insert doesn't copy it */
+ }
+ }
+ }
+
+ avahi_s_service_resolver_free(r);
+}
+
+static void browse_callback(
+ AvahiSServiceBrowser *b,
+ AvahiIfIndex interface,
+ AvahiProtocol protocol,
+ AvahiBrowserEvent event,
+ const char *name,
+ const char *type,
+ const char *domain,
+ AVAHI_GCC_UNUSED AvahiLookupResultFlags flags,
+ void* userdata) {
+
+ AvahiServer *s = userdata;
+ assert(b);
+
+ /* Called whenever a new services becomes available on the LAN or is removed from the LAN */
+
+ switch (event) {
+
+ case AVAHI_BROWSER_FAILURE:
+ fprintf(stderr, "(Browser) %s\n", avahi_strerror(avahi_server_errno(server)));
+ avahi_simple_poll_quit(simple_poll);
+ return;
+
+ case AVAHI_BROWSER_NEW:
+ if (debug)
+ fprintf(stderr, "(Browser) NEW: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
+
+ /* We ignore the returned resolver object. In the callback
+ function we free it. If the server is terminated before
+ the callback function is called the server will free
+ the resolver for us. */
+
+ if (!(avahi_s_service_resolver_new(s, interface, protocol, name, type, domain, AVAHI_PROTO_INET, 0, resolve_callback, s)))
+ fprintf(stderr, "Failed to resolve service '%s': %s\n", name, avahi_strerror(avahi_server_errno(s)));
+
+ break;
+
+ case AVAHI_BROWSER_REMOVE:
+ if (debug)
+ fprintf(stderr, "(Browser) REMOVE: service '%s' of type '%s' in domain '%s'\n", name, type, domain);
+ break;
+
+ case AVAHI_BROWSER_ALL_FOR_NOW:
+ if (debug)
+ fprintf(stderr, "(Browser) %s\n", "ALL_FOR_NOW");
+ exit(0);
+ break;
+
+ case AVAHI_BROWSER_CACHE_EXHAUSTED:
+ if (debug)
+ fprintf(stderr, "(Browser) %s\n", "CACHE_EXHAUSTED");
+ break;
+ }
+}
+
+int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char*argv[]) {
+ AvahiServerConfig config;
+ AvahiSServiceBrowser *sb = NULL;
+ int error;
+ struct timeval tv;
+ int ret = 1;
+
+ if (getenv("EUCA_FIND_CLUSTER_DEBUG"))
+ debug = 1;
+
+ /* Initialize the pseudo-RNG */
+ srand(time(NULL));
+
+ if (!debug)
+ avahi_set_log_function(quiet_logger);
+
+ /* Allocate main loop object */
+ if (!(simple_poll = avahi_simple_poll_new())) {
+ fprintf(stderr, "Failed to create simple poll object.\n");
+ goto fail;
+ }
+
+ /* Do not publish any local records */
+ avahi_server_config_init(&config);
+ config.publish_hinfo = 0;
+ config.publish_addresses = 0;
+ config.publish_workstation = 0;
+ config.publish_domain = 0;
+
+ /* Allocate a new server */
+ server = avahi_server_new(avahi_simple_poll_get(simple_poll), &config, NULL, NULL, &error);
+
+ /* Free the configuration data */
+ avahi_server_config_free(&config);
+
+ /* Check whether creating the server object succeeded */
+ if (!server) {
+ fprintf(stderr, "Failed to create server: %s\n", avahi_strerror(error));
+ goto fail;
+ }
+
+ /* Create the service browser */
+ if (!(sb = avahi_s_service_browser_new(server, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, "_eucalyptus._tcp", NULL, 0, browse_callback, server))) {
+ fprintf(stderr, "Failed to create service browser: %s\n", avahi_strerror(avahi_server_errno(server)));
+ goto fail;
+ }
+
+ /* Create a hash table so we can uniquify resolver results */
+ resolver_hash = di_hash_table_new_full(resolver_hash_func, resolver_equal_func, avahi_free, NULL);
+
+ /* Run the main loop */
+ avahi_simple_poll_loop(simple_poll);
+
+ ret = 0;
+
+fail:
+
+ if (resolver_hash)
+ di_hash_table_destroy (resolver_hash);
+
+ /* Cleanup things */
+ if (sb)
+ avahi_s_service_browser_free(sb);
+
+ if (server)
+ avahi_server_free(server);
+
+ if (simple_poll)
+ avahi_simple_poll_free(simple_poll);
+
+ return ret;
+}
--- eucalyptus-1.6~bzr931.orig/debian/local/Makefile
+++ eucalyptus-1.6~bzr931/debian/local/Makefile
@@ -0,0 +1,7 @@
+CFLAGS := $(shell pkg-config --cflags avahi-core) -g
+LDFLAGS := $(shell pkg-config --libs avahi-core) -ldebian-installer
+
+all: euca_find_cluster
+
+clean:
+ rm -f euca_find_cluster
--- eucalyptus-1.6~bzr931.orig/debian/patches/01-wsdl-stubs.patch
+++ eucalyptus-1.6~bzr931/debian/patches/01-wsdl-stubs.patch
@@ -0,0 +1,324708 @@
+Index: ubuntu/cluster/generated/adb_eucalyptusMessage.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_eucalyptusMessage.c 2009-09-10 21:15:15.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_eucalyptusMessage.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_eucalyptusMessage.h 2009-09-10 21:15:15.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_virtualMachineType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_virtualMachineType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_virtualMachineType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_virtualMachineType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_netConfigType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_netConfigType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_netConfigType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_netConfigType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_volumeType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_volumeType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_volumeType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_volumeType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_ccInstanceType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_ccInstanceType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -0,0 +1,6382 @@
++
++
++ /**
++ * 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;
++
++
++ int property_networkIndex;
++
++
++ axis2_bool_t is_valid_networkIndex;
++
++
++ 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_networkIndex_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->is_valid_networkIndex = 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_networkIndex(_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 networkIndex 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, "networkIndex", "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_networkIndex(_ccInstanceType, env,
++ atoi(text_value));
++ }
++
++ else
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element networkIndex");
++ status = AXIS2_FAILURE;
++ }
++
++ if(AXIS2_FAILURE == status)
++ {
++ AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for networkIndex ");
++ 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[64];
++
++ axis2_char_t *text_value_16;
++ axis2_char_t *text_value_16_temp;
++
++ axis2_char_t text_value_17[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_networkIndex)
++ {
++
++ /* 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("networkIndex")));
++
++ /* 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("networkIndex")));
++ /* axutil_strlen("") + 1 = 5 */
++
++
++
++
++
++
++ /*
++ * parsing networkIndex element
++ */
++
++
++
++ sprintf(start_input_str, "<%s%snetworkIndex>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++
++ start_input_str_len = axutil_strlen(start_input_str);
++ sprintf(end_input_str, "%s%snetworkIndex>",
++ p_prefix?p_prefix:"",
++ (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
++ end_input_str_len = axutil_strlen(end_input_str);
++
++ sprintf (text_value_15, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ccInstanceType->property_networkIndex);
++
++ axutil_stream_write(stream, env, start_input_str, start_input_str_len);
++
++ 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_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_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 (!_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 networkIndex.
++ */
++ int AXIS2_CALL
++ adb_ccInstanceType_get_networkIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++
++ AXIS2_ENV_CHECK(env, (int)0);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, (int)0);
++
++
++ return _ccInstanceType->property_networkIndex;
++ }
++
++ /**
++ * setter for networkIndex
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_networkIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const int arg_networkIndex)
++ {
++
++
++ AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
++ AXIS2_PARAM_CHECK(env->error, _ccInstanceType, AXIS2_FAILURE);
++
++ if(_ccInstanceType->is_valid_networkIndex &&
++ arg_networkIndex == _ccInstanceType->property_networkIndex)
++ {
++
++ return AXIS2_SUCCESS;
++ }
++
++ adb_ccInstanceType_reset_networkIndex(_ccInstanceType, env);
++
++ _ccInstanceType->property_networkIndex = arg_networkIndex;
++ _ccInstanceType->is_valid_networkIndex = AXIS2_TRUE;
++
++ return AXIS2_SUCCESS;
++ }
++
++
++
++ /**
++ * resetter for networkIndex
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_reset_networkIndex(
++ 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);
++
++
++ _ccInstanceType->is_valid_networkIndex = AXIS2_FALSE;
++ return AXIS2_SUCCESS;
++ }
++
++ /**
++ * Check whether networkIndex is nill
++ */
++ axis2_bool_t AXIS2_CALL
++ adb_ccInstanceType_is_networkIndex_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_networkIndex;
++ }
++
++ /**
++ * Set networkIndex to nill (currently the same as reset)
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_networkIndex_nil(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env)
++ {
++ return adb_ccInstanceType_reset_networkIndex(_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;
++
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_ccInstanceType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_ccInstanceType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -0,0 +1,1251 @@
++
++
++ #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 networkIndex.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @return int
++ */
++ int AXIS2_CALL
++ adb_ccInstanceType_get_networkIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env);
++
++ /**
++ * Setter for networkIndex.
++ * @param _ccInstanceType adb_ccInstanceType_t object
++ * @param env pointer to environment struct
++ * @param arg_networkIndex int
++ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
++ */
++ axis2_status_t AXIS2_CALL
++ adb_ccInstanceType_set_networkIndex(
++ adb_ccInstanceType_t* _ccInstanceType,
++ const axutil_env_t *env,
++ const int arg_networkIndex);
++
++ /**
++ * Resetter for networkIndex
++ * @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_networkIndex(
++ 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 networkIndex 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_networkIndex_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 */
++
++
+Index: ubuntu/cluster/generated/adb_runInstancesResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_runInstancesResponseType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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;
++
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_runInstancesResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_runInstancesResponseType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_runInstancesType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_runInstancesType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_runInstancesType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_runInstancesType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_detachVolumeType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_detachVolumeType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_detachVolumeType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_detachVolumeType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_networkRule.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_networkRule.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_networkRule.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_networkRule.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_configureNetworkType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_configureNetworkType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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;
++
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_configureNetworkType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_configureNetworkType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_terminateInstancesType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_terminateInstancesType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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;
++
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_terminateInstancesType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_terminateInstancesType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_assignAddressResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_assignAddressResponseType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_assignAddressResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_assignAddressResponseType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_assignAddressType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_assignAddressType.c 2009-09-10 21:15:16.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_assignAddressType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_assignAddressType.h 2009-09-10 21:15:16.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_unassignAddressType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_unassignAddressType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_unassignAddressType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_unassignAddressType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_describeNetworksType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_describeNetworksType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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;
++
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_describeNetworksType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_describeNetworksType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_unassignAddressResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_unassignAddressResponseType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_unassignAddressResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_unassignAddressResponseType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_stopNetworkResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_stopNetworkResponseType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_stopNetworkResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_stopNetworkResponseType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_rebootInstancesResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_rebootInstancesResponseType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_rebootInstancesResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_rebootInstancesResponseType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_getConsoleOutputResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_getConsoleOutputResponseType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_getConsoleOutputResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_getConsoleOutputResponseType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_stopNetworkType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_stopNetworkType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_stopNetworkType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_stopNetworkType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_networkType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_networkType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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;
++
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_networkType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_networkType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_describeNetworksResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_describeNetworksResponseType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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;
++
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_describeNetworksResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_describeNetworksResponseType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_startNetworkResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_startNetworkResponseType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_startNetworkResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_startNetworkResponseType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_getConsoleOutputType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_getConsoleOutputType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_getConsoleOutputType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_getConsoleOutputType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_attachVolumeResponseType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_attachVolumeResponseType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_attachVolumeResponseType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_attachVolumeResponseType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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 */
++
++
+Index: ubuntu/cluster/generated/adb_describePublicAddressesType.c
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_describePublicAddressesType.c 2009-09-10 21:15:17.000000000 +0200
+@@ -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);
++ }
++
++
++
+Index: ubuntu/cluster/generated/adb_describePublicAddressesType.h
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ ubuntu/cluster/generated/adb_describePublicAddressesType.h 2009-09-10 21:15:17.000000000 +0200
+@@ -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