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.vfs.search;
20:
21: /**
22: * Contains Properties which are to be returned from a Virtual File System
23: * search. This is useful for VirtualFileSystem implementations which
24: * allow for lazy population of VirtualFiles.
25: *
26: * @author Matthew Large
27: * @version $Revision: 1.1 $
28: *
29: */
30: public class Select {
31:
32: /**
33: * Namespace of property.
34: */
35: private String m_sPropNamespace = null;
36:
37: /**
38: * Name of property.
39: */
40: private String m_sPropName = null;
41:
42: /**
43: * Constructs a new select.
44: *
45: * @param sPropNamespace Namespace of the property to be returned
46: * @param sPropName Name of property to be returned
47: */
48: public Select(String sPropNamespace, String sPropName) {
49: super ();
50: this .m_sPropNamespace = sPropNamespace;
51: this .m_sPropName = sPropName;
52: }
53:
54: /**
55: * Returns the namespace of the property to be returned.
56: *
57: * @return Namespace
58: */
59: public String getPropNamespace() {
60: return this .m_sPropNamespace;
61: }
62:
63: /**
64: * Returns the name of the property to be returned.
65: *
66: * @return Name
67: */
68: public String getPropName() {
69: return this.m_sPropName;
70: }
71:
72: }
|