KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > api > GResFile


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 package com.raptus.owxv3.api;
7
8 import com.raptus.owxv3.Constants;
9
10 /**
11  *
12  * <hr>
13  * <table width="100%" border="0">
14  * <tr>
15  * <td width="24%"><b>Filename</b></td><td width="76%">GResFile.java</td>
16  * </tr>
17  * <tr>
18  * <td width="24%"><b>Author</b></td><td width="76%">Guy Zürcher (gzuercher@raptus.com)</td>
19  * </tr>
20  * <tr>
21  * <td width="24%"><b>Date</b></td><td width="76%">15th of April 2001</td>
22  * </tr>
23  * </table>
24  * <hr>
25  * <table width="100%" border="0">
26  * <tr>
27  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
28  * </tr>
29  * </table>
30  * <hr>
31  */

32 public class GResFile extends Object JavaDoc
33 {
34     /**
35      *
36      */

37     protected int fileRowID = 0;
38
39     /**
40      *
41      */

42     protected int usageCounter = 0;
43
44     /**
45      *
46      */

47     protected long fileSize = 0;
48     /**
49      *
50      */

51     protected String JavaDoc fileURL = null;
52
53     /**
54      *
55      */

56     protected String JavaDoc category = null;
57
58     /**
59      *
60      */

61     protected String JavaDoc fileType = null;
62
63     /**
64      *
65      */

66     protected String JavaDoc fileInfo = null;
67
68     /**
69      * Accessor methods
70      */

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 JavaDoc getFileURL() { return fileURL; }
81     public void setFileURL(String JavaDoc url) { this.fileURL = url; }
82
83
84
85     public String JavaDoc getCategory() { return category; }
86     public void setCategory(String JavaDoc cat) { this.category = cat; }
87
88     public String JavaDoc getType() { return fileType; }
89     public void setType(String JavaDoc type) { this.fileType = type; }
90
91     public String JavaDoc getInfo() { return fileInfo; }
92     public void setInfo(String JavaDoc infos) { this.fileInfo = infos; }
93
94     /**
95      *method for getting the filename from the fileUrl
96      */

97     public String JavaDoc 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 /* end class GResFile */
105
Popular Tags