KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > dav > server > utils > DAVCollectionDesc


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * 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 JavaDoc;
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 JavaDoc m_sClass = null;
35     String JavaDoc m_sURI = null;
36     String JavaDoc m_sHarmonisePath = null;
37     boolean m_bIsVirtual = false;
38     List JavaDoc m_members = null;
39     
40     DAVCollectionDesc( String JavaDoc sURI, String JavaDoc sOHpath, String JavaDoc 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 JavaDoc CONTENT_NAME, boolean bIsVirtual) {
51         
52         m_bIsVirtual = bIsVirtual;
53     }
54
55     DAVCollectionDesc( String JavaDoc sURI, String JavaDoc sOHpath, String JavaDoc sClass, boolean bIsVirtual) {
56         m_sClass = sClass;
57         m_sURI = sURI;
58         m_sHarmonisePath = sOHpath;
59         m_bIsVirtual = bIsVirtual;
60     }
61     
62     public void addMembers(List JavaDoc members) {
63         m_members = members;
64     }
65     
66     public List JavaDoc getMembers() {
67         return m_members;
68     }
69     
70     public String JavaDoc getHarmoniseClass() {
71         return m_sClass;
72     }
73     
74     public String JavaDoc getURI() {
75         return m_sURI;
76     }
77     
78     public String JavaDoc getHarmonisePath() {
79         return m_sHarmonisePath;
80     }
81     
82     public boolean isVirtual() {
83         return m_bIsVirtual;
84     }
85 }
Popular Tags