KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > contract1 > cci > ContractReferenceHolderImpl


1 // ----------------------------------------------------------------------------
2
// Instance/ImplBegin
3
// ----------------------------------------------------------------------------
4
//////////////////////////////////////////////////////////////////////////////
5
//
6
// Name: $Id: JMIAbstractMapper.java,v 1.11 2006/01/21 23:09:07 wfro Exp $
7
// Generated by: openMDX JMI Mapper
8
// Date: Mon Apr 03 11:39:00 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.contract1.cci;
14
15 public class ContractReferenceHolderImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements ContractReferenceHolder {
18
19   public ContractReferenceHolderImpl(
20     org.openmdx.base.accessor.generic.cci.Object_1_0 object,
21     javax.jmi.reflect.RefClass refClass
22   ) {
23     super(object, refClass);
24   }
25
26 // ----------------------------------------------------------------------------
27
// Instance/ImplReferenceSetWithQualifier
28
// ----------------------------------------------------------------------------
29
public void setContract(
30     java.util.List JavaDoc newValue
31   ) {
32     refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contract", newValue);
33   }
34
35   public void setContract(
36     org.opencrx.kernel.contract1.cci.AbstractContract[] newValue
37   ) {
38     refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contract", newValue);
39   }
40
41 // ----------------------------------------------------------------------------
42
// Instance/ImplReferenceGet0_1WithQualifier
43
// ----------------------------------------------------------------------------
44
public org.opencrx.kernel.contract1.cci.AbstractContract getContract(
45     int index
46   ) {
47     return (org.opencrx.kernel.contract1.cci.AbstractContract)refGetValue(
48       "org:opencrx:kernel:contract1:ContractReferenceHolder:contract",
49       new Integer JavaDoc(index)
50     );
51   }
52
53 // ----------------------------------------------------------------------------
54
// Instance/ImplReferenceGet0_nNoFilter
55
// ----------------------------------------------------------------------------
56
public java.util.Collection JavaDoc getContract(
57   ) {
58     return (java.util.Collection JavaDoc)refGetValue(
59       "org:opencrx:kernel:contract1:ContractReferenceHolder:contract"
60     );
61   }
62
63 // ----------------------------------------------------------------------------
64
// Instance/ImplReferenceAddWithQualifier
65
// ----------------------------------------------------------------------------
66
public void addContract (
67     int index,
68     org.opencrx.kernel.contract1.cci.AbstractContract newValue
69   ) {
70     refAddValue(
71       "org:opencrx:kernel:contract1:ContractReferenceHolder:contract",
72       new Integer JavaDoc(index),
73       newValue
74     );
75   }
76
77 // ----------------------------------------------------------------------------
78
// Instance/ImplReferenceAddWithoutQualifier
79
// ----------------------------------------------------------------------------
80
public void addContract (
81     org.opencrx.kernel.contract1.cci.AbstractContract newValue
82   ) {
83     refAddValue(
84       "org:opencrx:kernel:contract1:ContractReferenceHolder:contract",
85       newValue
86     );
87   }
88
89 // ----------------------------------------------------------------------------
90
// Instance/ImplReferenceRemoveWithQualifier
91
// ----------------------------------------------------------------------------
92
public void removeContract (
93     int index
94   ) {
95     refRemoveValue(
96       "org:opencrx:kernel:contract1:ContractReferenceHolder:contract",
97       new Integer JavaDoc(index)
98     );
99   }
100
101 // ----------------------------------------------------------------------------
102
// Instance/ImplReferenceSetWithQualifier
103
// ----------------------------------------------------------------------------
104
protected void setContractRole(
105     java.util.List JavaDoc newValue
106   ) {
107     refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", newValue);
108   }
109
110   protected void setContractRole(
111     org.opencrx.kernel.contract1.cci.ContractRole[] newValue
112   ) {
113     refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", newValue);
114   }
115
116 // ----------------------------------------------------------------------------
117
// Instance/ImplReferenceGet0_1WithQualifier
118
// ----------------------------------------------------------------------------
119
public org.opencrx.kernel.contract1.cci.ContractRole getContractRole(
120     String JavaDoc id
121   ) {
122     return (org.opencrx.kernel.contract1.cci.ContractRole)refGetValue(
123       "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole",
124       id
125     );
126   }
127
128 // ----------------------------------------------------------------------------
129
// Instance/ImplReferenceGet0_nWithFilter
130
// ----------------------------------------------------------------------------
131
public java.util.Collection JavaDoc getContractRole(
132   ) {
133     return (java.util.Collection JavaDoc)refGetValue(
134       "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole"
135     );
136   }
137
138   public java.util.List JavaDoc getContractRole(
139     org.opencrx.kernel.contract1.cci.ContractRoleFilter filter
140   ) {
141     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
142       "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole"
143     )).toList(filter);
144   }
145
146 // ----------------------------------------------------------------------------
147
// Instance/ImplReferenceAddWithQualifier
148
// ----------------------------------------------------------------------------
149
protected void addContractRole (
150     String JavaDoc id,
151     org.opencrx.kernel.contract1.cci.ContractRole newValue
152   ) {
153     refAddValue(
154       "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole",
155       id,
156       newValue
157     );
158   }
159
160 // ----------------------------------------------------------------------------
161
// Instance/ImplReferenceAddWithoutQualifier
162
// ----------------------------------------------------------------------------
163
protected void addContractRole (
164     org.opencrx.kernel.contract1.cci.ContractRole newValue
165   ) {
166     refAddValue(
167       "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole",
168       newValue
169     );
170   }
171
172 // ----------------------------------------------------------------------------
173
// Instance/ImplReferenceRemoveWithQualifier
174
// ----------------------------------------------------------------------------
175
protected void removeContractRole (
176     String JavaDoc id
177   ) {
178     refRemoveValue(
179       "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole",
180       id
181     );
182   }
183
184 // ----------------------------------------------------------------------------
185
// Instance/ImplEnd
186
// ----------------------------------------------------------------------------
187
}
188
Popular Tags