Back to index

nordugrid-arc-nox  1.1.0~rc6
SOAPEnvelope.java
Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 1.3.36
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package nordugrid.arc;
00010 
00011 public class SOAPEnvelope extends XMLNode {
00012   private long swigCPtr;
00013 
00014   protected SOAPEnvelope(long cPtr, boolean cMemoryOwn) {
00015     super(arcJNI.SWIGSOAPEnvelopeUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   protected static long getCPtr(SOAPEnvelope obj) {
00020     return (obj == null) ? 0 : obj.swigCPtr;
00021   }
00022 
00023   protected void finalize() {
00024     delete();
00025   }
00026 
00027   public synchronized void delete() {
00028     if(swigCPtr != 0 && swigCMemOwn) {
00029       swigCMemOwn = false;
00030       arcJNI.delete_SOAPEnvelope(swigCPtr);
00031     }
00032     swigCPtr = 0;
00033     super.delete();
00034   }
00035 
00036   public SOAPEnvelope(String xml) {
00037     this(arcJNI.new_SOAPEnvelope__SWIG_0(xml), true);
00038   }
00039 
00040   public SOAPEnvelope(String xml, int len) {
00041     this(arcJNI.new_SOAPEnvelope__SWIG_1(xml, len), true);
00042   }
00043 
00044   public SOAPEnvelope(NS ns, boolean fault) {
00045     this(arcJNI.new_SOAPEnvelope__SWIG_2(NS.getCPtr(ns), ns, fault), true);
00046   }
00047 
00048   public SOAPEnvelope(NS ns) {
00049     this(arcJNI.new_SOAPEnvelope__SWIG_3(NS.getCPtr(ns), ns), true);
00050   }
00051 
00052   public SOAPEnvelope(XMLNode root) {
00053     this(arcJNI.new_SOAPEnvelope__SWIG_4(XMLNode.getCPtr(root), root), true);
00054   }
00055 
00056   public SOAPEnvelope(SOAPEnvelope soap) {
00057     this(arcJNI.new_SOAPEnvelope__SWIG_5(SOAPEnvelope.getCPtr(soap), soap), true);
00058   }
00059 
00060   public SOAPEnvelope New() {
00061     long cPtr = arcJNI.SOAPEnvelope_New(swigCPtr, this);
00062     return (cPtr == 0) ? null : new SOAPEnvelope(cPtr, false);
00063   }
00064 
00065   public void Swap(SOAPEnvelope soap) {
00066     arcJNI.SOAPEnvelope_Swap__SWIG_0(swigCPtr, this, SOAPEnvelope.getCPtr(soap), soap);
00067   }
00068 
00069   public void Swap(XMLNode soap) {
00070     arcJNI.SOAPEnvelope_Swap__SWIG_1(swigCPtr, this, XMLNode.getCPtr(soap), soap);
00071   }
00072 
00073   public void Namespaces(NS namespaces) {
00074     arcJNI.SOAPEnvelope_Namespaces__SWIG_0(swigCPtr, this, NS.getCPtr(namespaces), namespaces);
00075   }
00076 
00077   public NS Namespaces() {
00078     return new NS(arcJNI.SOAPEnvelope_Namespaces__SWIG_1(swigCPtr, this), true);
00079   }
00080 
00081   public void GetXML(SWIGTYPE_p_std__string out_xml_str, boolean user_friendly) {
00082     arcJNI.SOAPEnvelope_GetXML__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str), user_friendly);
00083   }
00084 
00085   public void GetXML(SWIGTYPE_p_std__string out_xml_str) {
00086     arcJNI.SOAPEnvelope_GetXML__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str));
00087   }
00088 
00089   public XMLNode Header() {
00090     return new XMLNode(arcJNI.SOAPEnvelope_Header(swigCPtr, this), true);
00091   }
00092 
00093   public XMLNode Body() {
00094     return new XMLNode(arcJNI.SOAPEnvelope_Body(swigCPtr, this), true);
00095   }
00096 
00097   public boolean IsFault() {
00098     return arcJNI.SOAPEnvelope_IsFault(swigCPtr, this);
00099   }
00100 
00101   public SOAPFault Fault() {
00102     long cPtr = arcJNI.SOAPEnvelope_Fault(swigCPtr, this);
00103     return (cPtr == 0) ? null : new SOAPFault(cPtr, false);
00104   }
00105 
00106   public SOAPEnvelope.SOAPVersion Version() {
00107     return SOAPEnvelope.SOAPVersion.swigToEnum(arcJNI.SOAPEnvelope_Version(swigCPtr, this));
00108   }
00109 
00110   public final static class SOAPVersion {
00111     public final static SOAPVersion Version_1_1 = new SOAPVersion("Version_1_1");
00112     public final static SOAPVersion Version_1_2 = new SOAPVersion("Version_1_2");
00113 
00114     public final int swigValue() {
00115       return swigValue;
00116     }
00117 
00118     public String toString() {
00119       return swigName;
00120     }
00121 
00122     public static SOAPVersion swigToEnum(int swigValue) {
00123       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00124         return swigValues[swigValue];
00125       for (int i = 0; i < swigValues.length; i++)
00126         if (swigValues[i].swigValue == swigValue)
00127           return swigValues[i];
00128       throw new IllegalArgumentException("No enum " + SOAPVersion.class + " with value " + swigValue);
00129     }
00130 
00131     private SOAPVersion(String swigName) {
00132       this.swigName = swigName;
00133       this.swigValue = swigNext++;
00134     }
00135 
00136     private SOAPVersion(String swigName, int swigValue) {
00137       this.swigName = swigName;
00138       this.swigValue = swigValue;
00139       swigNext = swigValue+1;
00140     }
00141 
00142     private SOAPVersion(String swigName, SOAPVersion swigEnum) {
00143       this.swigName = swigName;
00144       this.swigValue = swigEnum.swigValue;
00145       swigNext = this.swigValue+1;
00146     }
00147 
00148     private static SOAPVersion[] swigValues = { Version_1_1, Version_1_2 };
00149     private static int swigNext = 0;
00150     private final int swigValue;
00151     private final String swigName;
00152   }
00153 
00154 }