Back to index

nordugrid-arc-nox  1.1.0~rc6
XMLNode.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 XMLNode {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected XMLNode(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(XMLNode obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   protected void finalize() {
00025     delete();
00026   }
00027 
00028   public synchronized void delete() {
00029     if(swigCPtr != 0 && swigCMemOwn) {
00030       swigCMemOwn = false;
00031       arcJNI.delete_XMLNode(swigCPtr);
00032     }
00033     swigCPtr = 0;
00034   }
00035 
00036   public XMLNode() {
00037     this(arcJNI.new_XMLNode__SWIG_1(), true);
00038   }
00039 
00040   public XMLNode(XMLNode node) {
00041     this(arcJNI.new_XMLNode__SWIG_2(XMLNode.getCPtr(node), node), true);
00042   }
00043 
00044   public XMLNode(String xml) {
00045     this(arcJNI.new_XMLNode__SWIG_3(xml), true);
00046   }
00047 
00048   public XMLNode(int ptr_addr) {
00049     this(arcJNI.new_XMLNode__SWIG_4(ptr_addr), true);
00050   }
00051 
00052   public XMLNode(NS ns, String name) {
00053     this(arcJNI.new_XMLNode__SWIG_5(NS.getCPtr(ns), ns, name), true);
00054   }
00055 
00056   public void New(XMLNode node) {
00057     arcJNI.XMLNode_New(swigCPtr, this, XMLNode.getCPtr(node), node);
00058   }
00059 
00060   public void Exchange(XMLNode node) {
00061     arcJNI.XMLNode_Exchange(swigCPtr, this, XMLNode.getCPtr(node), node);
00062   }
00063 
00064   public void Move(XMLNode node) {
00065     arcJNI.XMLNode_Move(swigCPtr, this, XMLNode.getCPtr(node), node);
00066   }
00067 
00068   public void Swap(XMLNode node) {
00069     arcJNI.XMLNode_Swap(swigCPtr, this, XMLNode.getCPtr(node), node);
00070   }
00071 
00072   public boolean toBool() {
00073     return arcJNI.XMLNode_toBool(swigCPtr, this);
00074   }
00075 
00076   public boolean Same(XMLNode node) {
00077     return arcJNI.XMLNode_Same(swigCPtr, this, XMLNode.getCPtr(node), node);
00078   }
00079 
00080   public XMLNode Child(int n) {
00081     return new XMLNode(arcJNI.XMLNode_Child__SWIG_0(swigCPtr, this, n), true);
00082   }
00083 
00084   public XMLNode Child() {
00085     return new XMLNode(arcJNI.XMLNode_Child__SWIG_1(swigCPtr, this), true);
00086   }
00087 
00088   public int Size() {
00089     return arcJNI.XMLNode_Size(swigCPtr, this);
00090   }
00091 
00092   public XMLNode Get(String name) {
00093     return new XMLNode(arcJNI.XMLNode_Get(swigCPtr, this, name), true);
00094   }
00095 
00096   public String Name() {
00097     return arcJNI.XMLNode_Name__SWIG_0(swigCPtr, this);
00098   }
00099 
00100   public String Prefix() {
00101     return arcJNI.XMLNode_Prefix(swigCPtr, this);
00102   }
00103 
00104   public String FullName() {
00105     return arcJNI.XMLNode_FullName(swigCPtr, this);
00106   }
00107 
00108   public String Namespace() {
00109     return arcJNI.XMLNode_Namespace(swigCPtr, this);
00110   }
00111 
00112   public void Name(String name) {
00113     arcJNI.XMLNode_Name__SWIG_1(swigCPtr, this, name);
00114   }
00115 
00116   public void GetXML(SWIGTYPE_p_std__string out_xml_str, boolean user_friendly) {
00117     arcJNI.XMLNode_GetXML__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str), user_friendly);
00118   }
00119 
00120   public void GetXML(SWIGTYPE_p_std__string out_xml_str) {
00121     arcJNI.XMLNode_GetXML__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str));
00122   }
00123 
00124   public void GetXML(SWIGTYPE_p_std__string out_xml_str, String encoding, boolean user_friendly) {
00125     arcJNI.XMLNode_GetXML__SWIG_2(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str), encoding, user_friendly);
00126   }
00127 
00128   public void GetXML(SWIGTYPE_p_std__string out_xml_str, String encoding) {
00129     arcJNI.XMLNode_GetXML__SWIG_3(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str), encoding);
00130   }
00131 
00132   public void GetDoc(SWIGTYPE_p_std__string out_xml_str, boolean user_friendly) {
00133     arcJNI.XMLNode_GetDoc__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str), user_friendly);
00134   }
00135 
00136   public void GetDoc(SWIGTYPE_p_std__string out_xml_str) {
00137     arcJNI.XMLNode_GetDoc__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(out_xml_str));
00138   }
00139 
00140   public String toString() {
00141     return arcJNI.XMLNode_toString(swigCPtr, this);
00142   }
00143 
00144   public void Set(String content) {
00145     arcJNI.XMLNode_Set(swigCPtr, this, content);
00146   }
00147 
00148   public XMLNode Attribute(int n) {
00149     return new XMLNode(arcJNI.XMLNode_Attribute__SWIG_0(swigCPtr, this, n), true);
00150   }
00151 
00152   public XMLNode Attribute() {
00153     return new XMLNode(arcJNI.XMLNode_Attribute__SWIG_1(swigCPtr, this), true);
00154   }
00155 
00156   public XMLNode Attribute(String name) {
00157     return new XMLNode(arcJNI.XMLNode_Attribute__SWIG_2(swigCPtr, this, name), true);
00158   }
00159 
00160   public XMLNode NewAttribute(String name) {
00161     return new XMLNode(arcJNI.XMLNode_NewAttribute(swigCPtr, this, name), true);
00162   }
00163 
00164   public int AttributesSize() {
00165     return arcJNI.XMLNode_AttributesSize(swigCPtr, this);
00166   }
00167 
00168   public void Namespaces(NS namespaces, boolean keep, int recursion) {
00169     arcJNI.XMLNode_Namespaces__SWIG_0(swigCPtr, this, NS.getCPtr(namespaces), namespaces, keep, recursion);
00170   }
00171 
00172   public void Namespaces(NS namespaces, boolean keep) {
00173     arcJNI.XMLNode_Namespaces__SWIG_1(swigCPtr, this, NS.getCPtr(namespaces), namespaces, keep);
00174   }
00175 
00176   public void Namespaces(NS namespaces) {
00177     arcJNI.XMLNode_Namespaces__SWIG_2(swigCPtr, this, NS.getCPtr(namespaces), namespaces);
00178   }
00179 
00180   public NS Namespaces() {
00181     return new NS(arcJNI.XMLNode_Namespaces__SWIG_3(swigCPtr, this), true);
00182   }
00183 
00184   public String NamespacePrefix(String urn) {
00185     return arcJNI.XMLNode_NamespacePrefix(swigCPtr, this, urn);
00186   }
00187 
00188   public XMLNode NewChild(String name, int n) {
00189     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_0(swigCPtr, this, name, n), true);
00190   }
00191 
00192   public XMLNode NewChild(String name) {
00193     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_1(swigCPtr, this, name), true);
00194   }
00195 
00196   public XMLNode NewChild(String name, int n, boolean global_order) {
00197     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_2(swigCPtr, this, name, n, global_order), true);
00198   }
00199 
00200   public XMLNode NewChild(String name, NS namespaces, int n) {
00201     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_3(swigCPtr, this, name, NS.getCPtr(namespaces), namespaces, n), true);
00202   }
00203 
00204   public XMLNode NewChild(String name, NS namespaces) {
00205     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_4(swigCPtr, this, name, NS.getCPtr(namespaces), namespaces), true);
00206   }
00207 
00208   public XMLNode NewChild(String name, NS namespaces, int n, boolean global_order) {
00209     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_5(swigCPtr, this, name, NS.getCPtr(namespaces), namespaces, n, global_order), true);
00210   }
00211 
00212   public XMLNode NewChild(XMLNode node, int n, boolean global_order) {
00213     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_6(swigCPtr, this, XMLNode.getCPtr(node), node, n, global_order), true);
00214   }
00215 
00216   public XMLNode NewChild(XMLNode node, int n) {
00217     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_7(swigCPtr, this, XMLNode.getCPtr(node), node, n), true);
00218   }
00219 
00220   public XMLNode NewChild(XMLNode node) {
00221     return new XMLNode(arcJNI.XMLNode_NewChild__SWIG_8(swigCPtr, this, XMLNode.getCPtr(node), node), true);
00222   }
00223 
00224   public void Replace(XMLNode node) {
00225     arcJNI.XMLNode_Replace(swigCPtr, this, XMLNode.getCPtr(node), node);
00226   }
00227 
00228   public void Destroy() {
00229     arcJNI.XMLNode_Destroy(swigCPtr, this);
00230   }
00231 
00232   public XMLNodeList Path(String path) {
00233     return new XMLNodeList(arcJNI.XMLNode_Path(swigCPtr, this, path), true);
00234   }
00235 
00236   public XMLNodeList XPathLookup(String xpathExpr, NS nsList) {
00237     return new XMLNodeList(arcJNI.XMLNode_XPathLookup(swigCPtr, this, xpathExpr, NS.getCPtr(nsList), nsList), true);
00238   }
00239 
00240   public XMLNode GetRoot() {
00241     return new XMLNode(arcJNI.XMLNode_GetRoot(swigCPtr, this), true);
00242   }
00243 
00244   public XMLNode Parent() {
00245     return new XMLNode(arcJNI.XMLNode_Parent(swigCPtr, this), true);
00246   }
00247 
00248   public boolean SaveToFile(String file_name) {
00249     return arcJNI.XMLNode_SaveToFile(swigCPtr, this, file_name);
00250   }
00251 
00252   public boolean SaveToStream(SWIGTYPE_p_std__ostream out) {
00253     return arcJNI.XMLNode_SaveToStream(swigCPtr, this, SWIGTYPE_p_std__ostream.getCPtr(out));
00254   }
00255 
00256   public boolean ReadFromFile(String file_name) {
00257     return arcJNI.XMLNode_ReadFromFile(swigCPtr, this, file_name);
00258   }
00259 
00260   public boolean ReadFromStream(SWIGTYPE_p_std__istream in) {
00261     return arcJNI.XMLNode_ReadFromStream(swigCPtr, this, SWIGTYPE_p_std__istream.getCPtr(in));
00262   }
00263 
00264   public boolean Validate(String schema_file, SWIGTYPE_p_std__string err_msg) {
00265     return arcJNI.XMLNode_Validate(swigCPtr, this, schema_file, SWIGTYPE_p_std__string.getCPtr(err_msg));
00266   }
00267 
00268 }