1 11 package org.eclipse.update.internal.core; 12 13 import java.io.File ; 14 15 import org.eclipse.update.configuration.IVolume; 16 import org.eclipse.update.core.model.ModelObject; 17 18 21 public class Volume extends ModelObject implements IVolume { 22 23 private long size; 24 private int type; 25 private String label; 26 private File root; 27 28 31 public Volume(File root,String label,int type,long size) { 32 super(); 33 this.root = root; 34 this.label = label; 35 this.type = type; 36 this.size = size; 37 } 38 39 42 public long getFreeSpace() { 43 return size; 44 } 45 46 49 public String getLabel() { 50 return label; 51 } 52 53 56 public int getType() { 57 return type; 58 } 59 60 63 public File getFile() { 64 return root; 65 } 66 67 public Object getAdapter(Class arg0) { 68 return null; 69 } 70 71 } 72 | Popular Tags |