1 5 6 package com.raptus.owxv3.api; 7 8 import com.raptus.owxv3.Constants; 9 10 32 public class GResFile extends Object 33 { 34 37 protected int fileRowID = 0; 38 39 42 protected int usageCounter = 0; 43 44 47 protected long fileSize = 0; 48 51 protected String fileURL = null; 52 53 56 protected String category = null; 57 58 61 protected String fileType = null; 62 63 66 protected String fileInfo = null; 67 68 71 public int getRowID() { return fileRowID; } 72 public void setRowID(int id) { this.fileRowID = id; } 73 74 public int getUsageCount() { return usageCounter; } 75 public void setUsageCount(int count) { this.usageCounter = count; } 76 77 public long getFileSize() { return fileSize; } 78 public void setFileSize(long size) { this.fileSize = size; } 79 80 public String getFileURL() { return fileURL; } 81 public void setFileURL(String url) { this.fileURL = url; } 82 83 84 85 public String getCategory() { return category; } 86 public void setCategory(String cat) { this.category = cat; } 87 88 public String getType() { return fileType; } 89 public void setType(String type) { this.fileType = type; } 90 91 public String getInfo() { return fileInfo; } 92 public void setInfo(String infos) { this.fileInfo = infos; } 93 94 97 public String getFileName(){ 98 if(fileURL.lastIndexOf(Constants.URL_SEPARATOR)==-1) return fileURL; 99 return fileURL.substring( fileURL.lastIndexOf(Constants.URL_SEPARATOR)+1 ); 100 } 101 102 } 103 104 105 | Popular Tags |