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.rm.resources.audit;
20:
21: import java.util.*;
22: import java.util.List;
23:
24: import org.openharmonise.commons.dsi.*;
25: import org.openharmonise.rm.resources.xml.*;
26:
27: /**
28: * A group object to hold collections of <code>XMLAuditResource</code> objects.
29: *
30: * @author Michael Bell
31: * @version $Revision: 1.2 $
32: *
33: */
34: public class XMLAuditResourceGroup extends XMLResourceGroup {
35:
36: private static List AUDITRESOURCEGROUP_CHILDREN = null;
37:
38: static {
39: AUDITRESOURCEGROUP_CHILDREN = new ArrayList();
40: AUDITRESOURCEGROUP_CHILDREN.add(XMLAuditResource.class
41: .getName());
42: AUDITRESOURCEGROUP_CHILDREN.add(XMLAuditResourceGroup.class
43: .getName());
44: }
45:
46: /**
47: *
48: */
49: public XMLAuditResourceGroup() {
50: super ();
51: }
52:
53: /**
54: * @param dbintrf
55: */
56: public XMLAuditResourceGroup(AbstractDataStoreInterface dbintrf) {
57: super (dbintrf);
58: }
59:
60: /**
61: * @param dbintrf
62: * @param nId
63: * @param nKey
64: * @param bIsHist
65: */
66: public XMLAuditResourceGroup(AbstractDataStoreInterface dbintrf,
67: int nId, int nKey, boolean bIsHist) {
68: super (dbintrf, nId, nKey, bIsHist);
69: }
70:
71: /**
72: * @param dbintrf
73: * @param nId
74: */
75: public XMLAuditResourceGroup(AbstractDataStoreInterface dbintrf,
76: int nId) {
77: super (dbintrf, nId);
78: }
79:
80: /* (non-Javadoc)
81: * @see org.openharmonise.rm.resources.AbstractParentObject#getChildClassNames()
82: */
83: public List getChildClassNames() {
84: return AUDITRESOURCEGROUP_CHILDREN;
85: }
86:
87: /* (non-Javadoc)
88: * @see org.openharmonise.rm.resources.AbstractChildObject#getParentObjectClassName()
89: */
90: public String getParentObjectClassName() {
91: return XMLAuditResourceGroup.class.getName();
92: }
93:
94: }
|