01: /*
02: * The contents of this file are subject to the
03: * Mozilla Public License Version 1.1 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
09: * See the License for the specific language governing rights and
10: * limitations under the License.
11: *
12: * The Initial Developer of the Original Code is Simulacra Media Ltd.
13: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14: *
15: * All Rights Reserved.
16: *
17: * Contributor(s):
18: */
19: package org.openharmonise.him.editors.report.rqom;
20:
21: /**
22: * User object for report query object model.
23: *
24: * @author Matthew Large
25: * @version $Revision: 1.1 $
26: *
27: */
28: public class User {
29:
30: private ReportQuery m_reportQuery = null;
31:
32: /**
33: * User path.
34: */
35: private String m_sPath = null;
36:
37: /**
38: * Constructs a new user object.
39: *
40: * @param sPath User path
41: */
42: public User(String sPath, ReportQuery reportQuery) {
43: super ();
44: this .m_sPath = sPath;
45: this .m_reportQuery = reportQuery;
46: }
47:
48: /**
49: * Returns the user path.
50: *
51: * @return User path
52: */
53: public String getPath() {
54: return this .m_sPath;
55: }
56:
57: /**
58: * Sets the user path.
59: *
60: * @param sPath User path
61: */
62: public void setPath(String sPath) {
63: this.m_sPath = sPath;
64: this.m_reportQuery.fireDataChangedMessage();
65: }
66:
67: }
|