01: /**
02: * Resource.java
03: * Created on 04.04.2003, 20:59:24 Alex
04: * Package: net.sf.memoranda
05: *
06: * @author Alex V. Alishevskikh, alex@openmechanics.net
07: * Copyright (c) 2003 Memoranda Team. http://memoranda.sf.net
08: */package net.sf.memoranda;
09:
10: /**
11: *
12: */
13: /*$Id: Resource.java,v 1.4 2007/03/20 06:21:46 alexeya Exp $*/
14: public class Resource {
15:
16: private String _path = null; // the path to the file
17: private boolean _isInetShortcut = false; // true if Internet shortcut
18: private boolean _isProjectFile = false; // true if file is in project directory
19:
20: /**
21: * Constructor for Resource.
22: * @param path, the path to the file.
23: * @param isInetShortcut, if the resource is a internet shortcut.
24: * @param isProjectFile, if file is copied to project directory.
25: */
26: public Resource(String path, boolean isInetShortcut,
27: boolean isProjectFile) {
28: _path = path;
29: _isInetShortcut = isInetShortcut;
30: _isProjectFile = isProjectFile;
31: }
32:
33: public Resource(String path) {
34: _path = path;
35: }
36:
37: public String getPath() {
38: return _path;
39: }
40:
41: public boolean isInetShortcut() {
42: return _isInetShortcut;
43: }
44:
45: public boolean isProjectFile() {
46: return _isProjectFile;
47: }
48:
49: }
|