KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > product1 > cci > ProductInUseDescriptorImpl


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:38:52 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.product1.cci;
14
15 public class ProductInUseDescriptorImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements ProductInUseDescriptor {
18
19   public ProductInUseDescriptorImpl(
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/ImplReferenceGet0_1NoQualifier
28
// ----------------------------------------------------------------------------
29
public org.opencrx.kernel.product1.cci.ProductConfigurationTypeSet getConfigType(
30   ) {
31     return (org.opencrx.kernel.product1.cci.ProductConfigurationTypeSet)refGetValue(
32       "org:opencrx:kernel:product1:ProductConfigurationSet:configType"
33     );
34   }
35
36 // ----------------------------------------------------------------------------
37
// Instance/ImplReferenceSetNoQualifier
38
// ----------------------------------------------------------------------------
39
protected void setConfigType(
40     org.opencrx.kernel.product1.cci.ProductConfigurationTypeSet newValue
41   ) {
42     refSetValue(
43       "org:opencrx:kernel:product1:ProductConfigurationSet:configType",
44       newValue
45     );
46   }
47
48 // ----------------------------------------------------------------------------
49
// Instance/ImplReferenceRemoveOptional
50
// ----------------------------------------------------------------------------
51
protected void removeConfigType (
52   ) {
53     refRemoveValue(
54       "org:opencrx:kernel:product1:ProductConfigurationSet:configType"
55     );
56   }
57 // ----------------------------------------------------------------------------
58
// Instance/ImplReferenceSetWithQualifier
59
// ----------------------------------------------------------------------------
60
public void setConfiguration(
61     java.util.List JavaDoc newValue
62   ) {
63     refSetValue("org:opencrx:kernel:product1:ProductConfigurationSet:configuration", newValue);
64   }
65
66   public void setConfiguration(
67     org.opencrx.kernel.product1.cci.ProductConfiguration[] newValue
68   ) {
69     refSetValue("org:opencrx:kernel:product1:ProductConfigurationSet:configuration", newValue);
70   }
71
72 // ----------------------------------------------------------------------------
73
// Instance/ImplReferenceGet0_1WithQualifier
74
// ----------------------------------------------------------------------------
75
public org.opencrx.kernel.product1.cci.ProductConfiguration getConfiguration(
76     String JavaDoc id
77   ) {
78     return (org.opencrx.kernel.product1.cci.ProductConfiguration)refGetValue(
79       "org:opencrx:kernel:product1:ProductConfigurationSet:configuration",
80       id
81     );
82   }
83
84 // ----------------------------------------------------------------------------
85
// Instance/ImplReferenceGet0_nWithFilter
86
// ----------------------------------------------------------------------------
87
public java.util.Collection JavaDoc getConfiguration(
88   ) {
89     return (java.util.Collection JavaDoc)refGetValue(
90       "org:opencrx:kernel:product1:ProductConfigurationSet:configuration"
91     );
92   }
93
94   public java.util.List JavaDoc getConfiguration(
95     org.opencrx.kernel.product1.cci.ProductConfigurationFilter filter
96   ) {
97     return ((org.openmdx.compatibility.base.collection.Container)refGetValue(
98       "org:opencrx:kernel:product1:ProductConfigurationSet:configuration"
99     )).toList(filter);
100   }
101
102 // ----------------------------------------------------------------------------
103
// Instance/ImplReferenceAddWithQualifier
104
// ----------------------------------------------------------------------------
105
public void addConfiguration (
106     String JavaDoc id,
107     org.opencrx.kernel.product1.cci.ProductConfiguration newValue
108   ) {
109     refAddValue(
110       "org:opencrx:kernel:product1:ProductConfigurationSet:configuration",
111       id,
112       newValue
113     );
114   }
115
116 // ----------------------------------------------------------------------------
117
// Instance/ImplReferenceAddWithoutQualifier
118
// ----------------------------------------------------------------------------
119
public void addConfiguration (
120     org.opencrx.kernel.product1.cci.ProductConfiguration newValue
121   ) {
122     refAddValue(
123       "org:opencrx:kernel:product1:ProductConfigurationSet:configuration",
124       newValue
125     );
126   }
127
128 // ----------------------------------------------------------------------------
129
// Instance/ImplReferenceRemoveWithQualifier
130
// ----------------------------------------------------------------------------
131
public void removeConfiguration (
132     String JavaDoc id
133   ) {
134     refRemoveValue(
135       "org:opencrx:kernel:product1:ProductConfigurationSet:configuration",
136       id
137     );
138   }
139
140 // ----------------------------------------------------------------------------
141
// Instance/ImplOperation
142
// ----------------------------------------------------------------------------
143
public org.openmdx.base.cci.Void unsetConfigurationType(
144       org.openmdx.base.cci.Void params
145   ) throws javax.jmi.reflect.RefException {
146     java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
147     args.add(params);
148     return (org.openmdx.base.cci.Void)refInvokeOperation(
149       "org:opencrx:kernel:product1:ProductConfigurationSet:unsetConfigurationType",
150       args
151     );
152   }
153
154   public org.openmdx.base.cci.Void unsetConfigurationType(
155   ) throws javax.jmi.reflect.RefException {
156     return unsetConfigurationType(
157       ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid(
158               )
159     );
160   }
161
162 // ----------------------------------------------------------------------------
163
// Instance/ImplReferenceGet0_1NoQualifier
164
// ----------------------------------------------------------------------------
165
public org.opencrx.kernel.product1.cci.Product getProduct(
166   ) {
167     return (org.opencrx.kernel.product1.cci.Product)refGetValue(
168       "org:opencrx:kernel:product1:ProductDescriptor:product"
169     );
170   }
171
172 // ----------------------------------------------------------------------------
173
// Instance/ImplReferenceSetNoQualifier
174
// ----------------------------------------------------------------------------
175
protected void setProduct(
176     org.opencrx.kernel.product1.cci.Product newValue
177   ) {
178     refSetValue(
179       "org:opencrx:kernel:product1:ProductDescriptor:product",
180       newValue
181     );
182   }
183
184 // ----------------------------------------------------------------------------
185
// Instance/ImplReferenceRemoveOptional
186
// ----------------------------------------------------------------------------
187
protected void removeProduct (
188   ) {
189     refRemoveValue(
190       "org:opencrx:kernel:product1:ProductDescriptor:product"
191     );
192   }
193 // ----------------------------------------------------------------------------
194
// Instance/ImplReferenceGet0_1NoQualifier
195
// ----------------------------------------------------------------------------
196
public org.opencrx.kernel.product1.cci.ProductConfiguration getCurrentConfig(
197   ) {
198     return (org.opencrx.kernel.product1.cci.ProductConfiguration)refGetValue(
199       "org:opencrx:kernel:product1:ProductInUseDescriptor:currentConfig"
200     );
201   }
202
203 // ----------------------------------------------------------------------------
204
// Instance/ImplReferenceSetNoQualifier
205
// ----------------------------------------------------------------------------
206
public void setCurrentConfig(
207     org.opencrx.kernel.product1.cci.ProductConfiguration newValue
208   ) {
209     refSetValue(
210       "org:opencrx:kernel:product1:ProductInUseDescriptor:currentConfig",
211       newValue
212     );
213   }
214
215 // ----------------------------------------------------------------------------
216
// Instance/ImplReferenceRemoveOptional
217
// ----------------------------------------------------------------------------
218
public void removeCurrentConfig (
219   ) {
220     refRemoveValue(
221       "org:opencrx:kernel:product1:ProductInUseDescriptor:currentConfig"
222     );
223   }
224 // ----------------------------------------------------------------------------
225
// Instance/ImplAttributeGetSet
226
// ----------------------------------------------------------------------------
227
public java.util.Set JavaDoc getProductSerialNumber (
228   ) {
229     return (java.util.Set JavaDoc)this.refGetValue("productSerialNumber");
230   }
231 // ----------------------------------------------------------------------------
232
// Instance/ImplAttributeSetSet
233
// ----------------------------------------------------------------------------
234
public void setProductSerialNumber(
235     java.util.Set JavaDoc newValue
236   ) {
237     refSetValue("org:opencrx:kernel:product1:ProductInUseDescriptor:productSerialNumber", newValue);
238   }
239
240   public void setProductSerialNumber(
241     String JavaDoc[] newValue
242   ) {
243     refSetValue("org:opencrx:kernel:product1:ProductInUseDescriptor:productSerialNumber", newValue);
244   }
245
246 // ----------------------------------------------------------------------------
247
// Instance/ImplEnd
248
// ----------------------------------------------------------------------------
249
}
250
Popular Tags