Back to index

nordugrid-arc-nox  1.1.0~rc6
DataType.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 DataType {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   protected DataType(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   protected static long getCPtr(DataType 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 DataType() {
00033     this(arcJNI.new_DataType(), true);
00034   }
00035 
00036   public void setName(String value) {
00037     arcJNI.DataType_Name_set(swigCPtr, this, value);
00038   }
00039 
00040   public String getName() {
00041     return arcJNI.DataType_Name_get(swigCPtr, this);
00042   }
00043 
00044   public void setKeepData(boolean value) {
00045     arcJNI.DataType_KeepData_set(swigCPtr, this, value);
00046   }
00047 
00048   public boolean getKeepData() {
00049     return arcJNI.DataType_KeepData_get(swigCPtr, this);
00050   }
00051 
00052   public void setIsExecutable(boolean value) {
00053     arcJNI.DataType_IsExecutable_set(swigCPtr, this, value);
00054   }
00055 
00056   public boolean getIsExecutable() {
00057     return arcJNI.DataType_IsExecutable_get(swigCPtr, this);
00058   }
00059 
00060   public void setDownloadToCache(boolean value) {
00061     arcJNI.DataType_DownloadToCache_set(swigCPtr, this, value);
00062   }
00063 
00064   public boolean getDownloadToCache() {
00065     return arcJNI.DataType_DownloadToCache_get(swigCPtr, this);
00066   }
00067 
00068   public void setDataIndexingService(URLList value) {
00069     arcJNI.DataType_DataIndexingService_set(swigCPtr, this, URLList.getCPtr(value), value);
00070   }
00071 
00072   public URLList getDataIndexingService() {
00073     long cPtr = arcJNI.DataType_DataIndexingService_get(swigCPtr, this);
00074     return (cPtr == 0) ? null : new URLList(cPtr, false);
00075   }
00076 
00077   public void setSource(SourceTypeList value) {
00078     arcJNI.DataType_Source_set(swigCPtr, this, SourceTypeList.getCPtr(value), value);
00079   }
00080 
00081   public SourceTypeList getSource() {
00082     long cPtr = arcJNI.DataType_Source_get(swigCPtr, this);
00083     return (cPtr == 0) ? null : new SourceTypeList(cPtr, false);
00084   }
00085 
00086   public void setTarget(TargetTypeList value) {
00087     arcJNI.DataType_Target_set(swigCPtr, this, TargetTypeList.getCPtr(value), value);
00088   }
00089 
00090   public TargetTypeList getTarget() {
00091     long cPtr = arcJNI.DataType_Target_get(swigCPtr, this);
00092     return (cPtr == 0) ? null : new TargetTypeList(cPtr, false);
00093   }
00094 
00095 }