KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > rm > resources > audit > XMLAuditResourceGroup


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 package org.openharmonise.rm.resources.audit;
20
21 import java.util.*;
22 import java.util.List JavaDoc;
23
24 import org.openharmonise.commons.dsi.*;
25 import org.openharmonise.rm.resources.xml.*;
26
27
28 /**
29  * A group object to hold collections of <code>XMLAuditResource</code> objects.
30  *
31  * @author Michael Bell
32  * @version $Revision: 1.2 $
33  *
34  */

35 public class XMLAuditResourceGroup extends XMLResourceGroup {
36
37     private static List JavaDoc AUDITRESOURCEGROUP_CHILDREN = null;
38
39     static {
40         AUDITRESOURCEGROUP_CHILDREN = new ArrayList();
41         AUDITRESOURCEGROUP_CHILDREN.add(XMLAuditResource.class.getName());
42         AUDITRESOURCEGROUP_CHILDREN.add(XMLAuditResourceGroup.class.getName());
43     }
44     
45     /**
46      *
47      */

48     public XMLAuditResourceGroup() {
49         super();
50     }
51
52     /**
53      * @param dbintrf
54      */

55     public XMLAuditResourceGroup(AbstractDataStoreInterface dbintrf) {
56         super(dbintrf);
57     }
58
59     /**
60      * @param dbintrf
61      * @param nId
62      * @param nKey
63      * @param bIsHist
64      */

65     public XMLAuditResourceGroup(AbstractDataStoreInterface dbintrf, int nId,
66             int nKey, boolean bIsHist) {
67         super(dbintrf, nId, nKey, bIsHist);
68     }
69
70     /**
71      * @param dbintrf
72      * @param nId
73      */

74     public XMLAuditResourceGroup(AbstractDataStoreInterface dbintrf, int nId) {
75         super(dbintrf, nId);
76     }
77
78     /* (non-Javadoc)
79      * @see org.openharmonise.rm.resources.AbstractParentObject#getChildClassNames()
80      */

81     public List JavaDoc getChildClassNames() {
82         return AUDITRESOURCEGROUP_CHILDREN;
83     }
84
85     /* (non-Javadoc)
86      * @see org.openharmonise.rm.resources.AbstractChildObject#getParentObjectClassName()
87      */

88     public String JavaDoc getParentObjectClassName() {
89         return XMLAuditResourceGroup.class.getName();
90     }
91
92 }
93
Popular Tags