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:
20: package org.openharmonise.dav.server.utils;
21:
22: import java.util.List;
23:
24: /**
25: * A data class to hold information describing a DAV collection and its mapping
26: * to Harmonise resource collections.
27: *
28: * @author Michael Bell
29: * @version $Revision: 1.2 $
30: * @since January 12, 2004
31: */
32: class DAVCollectionDesc {
33:
34: String m_sClass = null;
35: String m_sURI = null;
36: String m_sHarmonisePath = null;
37: boolean m_bIsVirtual = false;
38: List m_members = null;
39:
40: DAVCollectionDesc(String sURI, String sOHpath, String sClass) {
41: m_sClass = sClass;
42: m_sURI = sURI;
43: m_sHarmonisePath = sOHpath;
44: }
45:
46: /**
47: * @param CONTENT_NAME
48: * @param b
49: */
50: public DAVCollectionDesc(String CONTENT_NAME, boolean bIsVirtual) {
51:
52: m_bIsVirtual = bIsVirtual;
53: }
54:
55: DAVCollectionDesc(String sURI, String sOHpath, String sClass,
56: boolean bIsVirtual) {
57: m_sClass = sClass;
58: m_sURI = sURI;
59: m_sHarmonisePath = sOHpath;
60: m_bIsVirtual = bIsVirtual;
61: }
62:
63: public void addMembers(List members) {
64: m_members = members;
65: }
66:
67: public List getMembers() {
68: return m_members;
69: }
70:
71: public String getHarmoniseClass() {
72: return m_sClass;
73: }
74:
75: public String getURI() {
76: return m_sURI;
77: }
78:
79: public String getHarmonisePath() {
80: return m_sHarmonisePath;
81: }
82:
83: public boolean isVirtual() {
84: return m_bIsVirtual;
85: }
86: }
|