Back to index

nordugrid-arc-nox  1.1.0~rc6
JobDescription.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 JobDescription {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected JobDescription(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(JobDescription 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 JobDescription() {
00033     this(arcJNI.new_JobDescription__SWIG_0(), true);
00034   }
00035 
00036   public JobDescription(int ptraddr) {
00037     this(arcJNI.new_JobDescription__SWIG_1(ptraddr), true);
00038   }
00039 
00040   public boolean toBool() {
00041     return arcJNI.JobDescription_toBool(swigCPtr, this);
00042   }
00043 
00044   public boolean Parse(String source) {
00045     return arcJNI.JobDescription_Parse__SWIG_0(swigCPtr, this, source);
00046   }
00047 
00048   public boolean Parse(XMLNode xmlSource) {
00049     return arcJNI.JobDescription_Parse__SWIG_1(swigCPtr, this, XMLNode.getCPtr(xmlSource), xmlSource);
00050   }
00051 
00052   public String UnParse(String format) {
00053     return arcJNI.JobDescription_UnParse__SWIG_0(swigCPtr, this, format);
00054   }
00055 
00056   public String UnParse() {
00057     return arcJNI.JobDescription_UnParse__SWIG_1(swigCPtr, this);
00058   }
00059 
00060   public boolean getSourceFormat(SWIGTYPE_p_std__string _sourceFormat) {
00061     return arcJNI.JobDescription_getSourceFormat(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(_sourceFormat));
00062   }
00063 
00064   public void Print(boolean longlist) {
00065     arcJNI.JobDescription_Print__SWIG_0(swigCPtr, this, longlist);
00066   }
00067 
00068   public void Print() {
00069     arcJNI.JobDescription_Print__SWIG_1(swigCPtr, this);
00070   }
00071 
00072   public void AddHint(String key, String value) {
00073     arcJNI.JobDescription_AddHint(swigCPtr, this, key, value);
00074   }
00075 
00076   public void setIdentification(JobIdentificationType value) {
00077     arcJNI.JobDescription_Identification_set(swigCPtr, this, JobIdentificationType.getCPtr(value), value);
00078   }
00079 
00080   public JobIdentificationType getIdentification() {
00081     long cPtr = arcJNI.JobDescription_Identification_get(swigCPtr, this);
00082     return (cPtr == 0) ? null : new JobIdentificationType(cPtr, false);
00083   }
00084 
00085   public void setApplication(ApplicationType value) {
00086     arcJNI.JobDescription_Application_set(swigCPtr, this, ApplicationType.getCPtr(value), value);
00087   }
00088 
00089   public ApplicationType getApplication() {
00090     long cPtr = arcJNI.JobDescription_Application_get(swigCPtr, this);
00091     return (cPtr == 0) ? null : new ApplicationType(cPtr, false);
00092   }
00093 
00094   public void setResources(ResourcesType value) {
00095     arcJNI.JobDescription_Resources_set(swigCPtr, this, ResourcesType.getCPtr(value), value);
00096   }
00097 
00098   public ResourcesType getResources() {
00099     long cPtr = arcJNI.JobDescription_Resources_get(swigCPtr, this);
00100     return (cPtr == 0) ? null : new ResourcesType(cPtr, false);
00101   }
00102 
00103   public void setDataStaging(DataStagingType value) {
00104     arcJNI.JobDescription_DataStaging_set(swigCPtr, this, DataStagingType.getCPtr(value), value);
00105   }
00106 
00107   public DataStagingType getDataStaging() {
00108     long cPtr = arcJNI.JobDescription_DataStaging_get(swigCPtr, this);
00109     return (cPtr == 0) ? null : new DataStagingType(cPtr, false);
00110   }
00111 
00112   public void setJobMeta(JobMetaType value) {
00113     arcJNI.JobDescription_JobMeta_set(swigCPtr, this, JobMetaType.getCPtr(value), value);
00114   }
00115 
00116   public JobMetaType getJobMeta() {
00117     long cPtr = arcJNI.JobDescription_JobMeta_get(swigCPtr, this);
00118     return (cPtr == 0) ? null : new JobMetaType(cPtr, false);
00119   }
00120 
00121   public void setXRSL_elements(StringStringMap value) {
00122     arcJNI.JobDescription_XRSL_elements_set(swigCPtr, this, StringStringMap.getCPtr(value), value);
00123   }
00124 
00125   public StringStringMap getXRSL_elements() {
00126     long cPtr = arcJNI.JobDescription_XRSL_elements_get(swigCPtr, this);
00127     return (cPtr == 0) ? null : new StringStringMap(cPtr, false);
00128   }
00129 
00130   public void setJDL_elements(StringStringMap value) {
00131     arcJNI.JobDescription_JDL_elements_set(swigCPtr, this, StringStringMap.getCPtr(value), value);
00132   }
00133 
00134   public StringStringMap getJDL_elements() {
00135     long cPtr = arcJNI.JobDescription_JDL_elements_get(swigCPtr, this);
00136     return (cPtr == 0) ? null : new StringStringMap(cPtr, false);
00137   }
00138 
00139 }