Back to index

nordugrid-arc-nox  1.1.0~rc6
Software.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 Software {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected Software(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(Software obj) {
00021     return (obj == null) ? 0 : obj.swigCPtr;
00022   }
00023 
00024   public synchronized void delete() {
00025     if(swigCPtr != 0 && swigCMemOwn) {
00026       swigCMemOwn = false;
00027       throw new UnsupportedOperationException("C++ destructor does not have public access");
00028     }
00029     swigCPtr = 0;
00030   }
00031 
00032   public Software() {
00033     this(arcJNI.new_Software__SWIG_0(), true);
00034   }
00035 
00036   public Software(String name_version) {
00037     this(arcJNI.new_Software__SWIG_1(name_version), true);
00038   }
00039 
00040   public Software(String name, String version) {
00041     this(arcJNI.new_Software__SWIG_2(name, version), true);
00042   }
00043 
00044   public Software(String family, String name, String version) {
00045     this(arcJNI.new_Software__SWIG_3(family, name, version), true);
00046   }
00047 
00048   public boolean empty() {
00049     return arcJNI.Software_empty(swigCPtr, this);
00050   }
00051 
00052   public String toString() {
00053     return arcJNI.Software_toString(swigCPtr, this);
00054   }
00055 
00056   public String getFamily() {
00057     return arcJNI.Software_getFamily(swigCPtr, this);
00058   }
00059 
00060   public String getName() {
00061     return arcJNI.Software_getName(swigCPtr, this);
00062   }
00063 
00064   public String getVersion() {
00065     return arcJNI.Software_getVersion(swigCPtr, this);
00066   }
00067 
00068   public static String getVERSIONTOKENS() {
00069     return arcJNI.Software_VERSIONTOKENS_get();
00070   }
00071 
00072   public final static class ComparisonOperatorEnum {
00073     public final static ComparisonOperatorEnum NOTEQUAL = new ComparisonOperatorEnum("NOTEQUAL", arcJNI.Software_NOTEQUAL_get());
00074     public final static ComparisonOperatorEnum EQUAL = new ComparisonOperatorEnum("EQUAL", arcJNI.Software_EQUAL_get());
00075     public final static ComparisonOperatorEnum GREATERTHAN = new ComparisonOperatorEnum("GREATERTHAN", arcJNI.Software_GREATERTHAN_get());
00076     public final static ComparisonOperatorEnum LESSTHAN = new ComparisonOperatorEnum("LESSTHAN", arcJNI.Software_LESSTHAN_get());
00077     public final static ComparisonOperatorEnum GREATERTHANOREQUAL = new ComparisonOperatorEnum("GREATERTHANOREQUAL", arcJNI.Software_GREATERTHANOREQUAL_get());
00078     public final static ComparisonOperatorEnum LESSTHANOREQUAL = new ComparisonOperatorEnum("LESSTHANOREQUAL", arcJNI.Software_LESSTHANOREQUAL_get());
00079 
00080     public final int swigValue() {
00081       return swigValue;
00082     }
00083 
00084     public String toString() {
00085       return swigName;
00086     }
00087 
00088     public static ComparisonOperatorEnum swigToEnum(int swigValue) {
00089       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00090         return swigValues[swigValue];
00091       for (int i = 0; i < swigValues.length; i++)
00092         if (swigValues[i].swigValue == swigValue)
00093           return swigValues[i];
00094       throw new IllegalArgumentException("No enum " + ComparisonOperatorEnum.class + " with value " + swigValue);
00095     }
00096 
00097     private ComparisonOperatorEnum(String swigName) {
00098       this.swigName = swigName;
00099       this.swigValue = swigNext++;
00100     }
00101 
00102     private ComparisonOperatorEnum(String swigName, int swigValue) {
00103       this.swigName = swigName;
00104       this.swigValue = swigValue;
00105       swigNext = swigValue+1;
00106     }
00107 
00108     private ComparisonOperatorEnum(String swigName, ComparisonOperatorEnum swigEnum) {
00109       this.swigName = swigName;
00110       this.swigValue = swigEnum.swigValue;
00111       swigNext = this.swigValue+1;
00112     }
00113 
00114     private static ComparisonOperatorEnum[] swigValues = { NOTEQUAL, EQUAL, GREATERTHAN, LESSTHAN, GREATERTHANOREQUAL, LESSTHANOREQUAL };
00115     private static int swigNext = 0;
00116     private final int swigValue;
00117     private final String swigName;
00118   }
00119 
00120 }