01: // RemoteResourceWrapper.java
02: // $Id: RemoteResourceWrapper.java,v 1.3 2000/08/16 21:37:26 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1997.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.jigadm;
07:
08: import org.w3c.jigsaw.admin.RemoteResource;
09: import org.w3c.jigadm.gui.ServerBrowser;
10:
11: public class RemoteResourceWrapper {
12: RemoteResourceWrapper rrwf = null;
13: RemoteResource father = null;
14: RemoteResource self = null;
15: ServerBrowser browser = null; // this is a temporary hack
16:
17: public RemoteResourceWrapper(RemoteResource rr) {
18: self = rr;
19: }
20:
21: public RemoteResourceWrapper(RemoteResource rr, ServerBrowser sb) {
22: self = rr;
23: browser = sb;
24: }
25:
26: public RemoteResourceWrapper(RemoteResource father,
27: RemoteResource rr) {
28: self = rr;
29: this .father = father;
30: }
31:
32: public RemoteResourceWrapper(RemoteResource father,
33: RemoteResource rr, ServerBrowser sb) {
34: self = rr;
35: this .father = father;
36: browser = sb;
37: }
38:
39: public RemoteResourceWrapper(RemoteResourceWrapper rrwf,
40: RemoteResource rr) {
41: self = rr;
42: this .rrwf = rrwf;
43: }
44:
45: public RemoteResourceWrapper(RemoteResourceWrapper rrwf,
46: RemoteResource rr, ServerBrowser sb) {
47: self = rr;
48: this .rrwf = rrwf;
49: browser = sb;
50: }
51:
52: public RemoteResource getFatherResource() {
53: if (father != null)
54: return father;
55: if (rrwf != null)
56: return rrwf.getResource();
57: return null;
58: }
59:
60: public ServerBrowser getBrowser() {
61: return browser;
62: }
63:
64: public RemoteResourceWrapper getFatherWrapper() {
65: return rrwf;
66: }
67:
68: public RemoteResource getResource() {
69: return self;
70: }
71: }
|