KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > uom1 > cci > UomClassImpl


1 // ----------------------------------------------------------------------------
2
// ClassProxy/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:06 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.uom1.cci;
14
15 public class UomClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements UomClass {
18
19   public UomClassImpl(
20     org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage
21   ) {
22     super(refPackage);
23   }
24
25   public String JavaDoc refMofId(
26   ) {
27     return "org:opencrx:kernel:uom1:Uom";
28   }
29
30   public Uom getUom(
31     Object JavaDoc object
32   ) {
33     try {
34       if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) {
35         java.util.List JavaDoc args = new java.util.ArrayList JavaDoc();
36         args.add(object);
37         Uom target = (Uom)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Uom)((org.openmdx.base.accessor.jmi.cci.RefPackage_1_0)this.refOutermostPackage()).refObject(
43           object instanceof org.openmdx.compatibility.base.naming.Path
44             ? ((org.openmdx.compatibility.base.naming.Path)object).toXri()
45             : ((org.openmdx.base.accessor.generic.cci.Object_1_0)object).objGetPath().toXri()
46         );
47       }
48     }
49     catch(org.openmdx.base.exception.ServiceException e) {
50         throw new org.openmdx.base.accessor.jmi.cci.JmiServiceException(e);
51     }
52   }
53
54   public Uom createUom(
55   ) {
56     Uom target = (Uom)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Uom createUom(
65       short accessLevelBrowse
66     , short accessLevelDelete
67     , short accessLevelUpdate
68     , boolean isScheduleBaseUom
69     , String JavaDoc name
70     , java.math.BigDecimal JavaDoc quantity
71     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
72   ) {
73     UomImpl _object = (UomImpl)createUom();
74     _object.setAccessLevelBrowse(accessLevelBrowse);
75     _object.setAccessLevelDelete(accessLevelDelete);
76     _object.setAccessLevelUpdate(accessLevelUpdate);
77     _object.setScheduleBaseUom(isScheduleBaseUom);
78     _object.setName(name);
79     _object.setQuantity(quantity);
80     _object.setUomSchedule(uomSchedule);
81     return _object;
82   }
83
84 // ----------------------------------------------------------------------------
85
// ClassProxy/ImplInstanceExtenderRequiredAttributes
86
// ----------------------------------------------------------------------------
87
public Uom extendImporter(
88       org.opencrx.kernel.base.cci.Importer _base
89     , short accessLevelBrowse
90     , short accessLevelDelete
91     , short accessLevelUpdate
92     , boolean isScheduleBaseUom
93     , String JavaDoc name
94     , java.math.BigDecimal JavaDoc quantity
95     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
96   ) {
97     UomImpl _object = (UomImpl)getUom(_base);
98     _object.setAccessLevelBrowse(accessLevelBrowse);
99     _object.setAccessLevelDelete(accessLevelDelete);
100     _object.setAccessLevelUpdate(accessLevelUpdate);
101     _object.setScheduleBaseUom(isScheduleBaseUom);
102     _object.setName(name);
103     _object.setQuantity(quantity);
104     _object.setUomSchedule(uomSchedule);
105     return _object;
106   }
107
108 // ----------------------------------------------------------------------------
109
// ClassProxy/ImplInstanceExtenderRequiredAttributes
110
// ----------------------------------------------------------------------------
111
public Uom extendSecureObject(
112       org.opencrx.kernel.base.cci.SecureObject _base
113     , boolean isScheduleBaseUom
114     , String JavaDoc name
115     , java.math.BigDecimal JavaDoc quantity
116     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
117   ) {
118     UomImpl _object = (UomImpl)getUom(_base);
119     _object.setScheduleBaseUom(isScheduleBaseUom);
120     _object.setName(name);
121     _object.setQuantity(quantity);
122     _object.setUomSchedule(uomSchedule);
123     return _object;
124   }
125
126 // ----------------------------------------------------------------------------
127
// ClassProxy/ImplInstanceExtenderRequiredAttributes
128
// ----------------------------------------------------------------------------
129
public Uom extendXmlExporter(
130       org.opencrx.kernel.base.cci.XmlExporter _base
131     , short accessLevelBrowse
132     , short accessLevelDelete
133     , short accessLevelUpdate
134     , boolean isScheduleBaseUom
135     , String JavaDoc name
136     , java.math.BigDecimal JavaDoc quantity
137     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
138   ) {
139     UomImpl _object = (UomImpl)getUom(_base);
140     _object.setAccessLevelBrowse(accessLevelBrowse);
141     _object.setAccessLevelDelete(accessLevelDelete);
142     _object.setAccessLevelUpdate(accessLevelUpdate);
143     _object.setScheduleBaseUom(isScheduleBaseUom);
144     _object.setName(name);
145     _object.setQuantity(quantity);
146     _object.setUomSchedule(uomSchedule);
147     return _object;
148   }
149
150 // ----------------------------------------------------------------------------
151
// ClassProxy/ImplInstanceExtenderRequiredAttributes
152
// ----------------------------------------------------------------------------
153
public Uom extendDescriptionContainer(
154       org.opencrx.kernel.generic.cci.DescriptionContainer _base
155     , short accessLevelBrowse
156     , short accessLevelDelete
157     , short accessLevelUpdate
158     , boolean isScheduleBaseUom
159     , String JavaDoc name
160     , java.math.BigDecimal JavaDoc quantity
161     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
162   ) {
163     UomImpl _object = (UomImpl)getUom(_base);
164     _object.setAccessLevelBrowse(accessLevelBrowse);
165     _object.setAccessLevelDelete(accessLevelDelete);
166     _object.setAccessLevelUpdate(accessLevelUpdate);
167     _object.setScheduleBaseUom(isScheduleBaseUom);
168     _object.setName(name);
169     _object.setQuantity(quantity);
170     _object.setUomSchedule(uomSchedule);
171     return _object;
172   }
173
174 // ----------------------------------------------------------------------------
175
// ClassProxy/ImplInstanceExtenderRequiredAttributes
176
// ----------------------------------------------------------------------------
177
public Uom extendBasicObject(
178       org.openmdx.base.cci.BasicObject _base
179     , short accessLevelBrowse
180     , short accessLevelDelete
181     , short accessLevelUpdate
182     , boolean isScheduleBaseUom
183     , String JavaDoc name
184     , java.math.BigDecimal JavaDoc quantity
185     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
186   ) {
187     UomImpl _object = (UomImpl)getUom(_base);
188     _object.setAccessLevelBrowse(accessLevelBrowse);
189     _object.setAccessLevelDelete(accessLevelDelete);
190     _object.setAccessLevelUpdate(accessLevelUpdate);
191     _object.setScheduleBaseUom(isScheduleBaseUom);
192     _object.setName(name);
193     _object.setQuantity(quantity);
194     _object.setUomSchedule(uomSchedule);
195     return _object;
196   }
197
198 // ----------------------------------------------------------------------------
199
// ClassProxy/ImplInstanceExtenderRequiredAttributes
200
// ----------------------------------------------------------------------------
201
public Uom extendContextCapable(
202       org.openmdx.base.cci.ContextCapable _base
203     , short accessLevelBrowse
204     , short accessLevelDelete
205     , short accessLevelUpdate
206     , boolean isScheduleBaseUom
207     , String JavaDoc name
208     , java.math.BigDecimal JavaDoc quantity
209     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
210   ) {
211     UomImpl _object = (UomImpl)getUom(_base);
212     _object.setAccessLevelBrowse(accessLevelBrowse);
213     _object.setAccessLevelDelete(accessLevelDelete);
214     _object.setAccessLevelUpdate(accessLevelUpdate);
215     _object.setScheduleBaseUom(isScheduleBaseUom);
216     _object.setName(name);
217     _object.setQuantity(quantity);
218     _object.setUomSchedule(uomSchedule);
219     return _object;
220   }
221
222 // ----------------------------------------------------------------------------
223
// ClassProxy/ImplInstanceExtenderRequiredAttributes
224
// ----------------------------------------------------------------------------
225
public Uom extendExtentCapable(
226       org.openmdx.base.cci.ExtentCapable _base
227     , short accessLevelBrowse
228     , short accessLevelDelete
229     , short accessLevelUpdate
230     , boolean isScheduleBaseUom
231     , String JavaDoc name
232     , java.math.BigDecimal JavaDoc quantity
233     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
234   ) {
235     UomImpl _object = (UomImpl)getUom(_base);
236     _object.setAccessLevelBrowse(accessLevelBrowse);
237     _object.setAccessLevelDelete(accessLevelDelete);
238     _object.setAccessLevelUpdate(accessLevelUpdate);
239     _object.setScheduleBaseUom(isScheduleBaseUom);
240     _object.setName(name);
241     _object.setQuantity(quantity);
242     _object.setUomSchedule(uomSchedule);
243     return _object;
244   }
245
246 // ----------------------------------------------------------------------------
247
// ClassProxy/ImplInstanceExtenderRequiredAttributes
248
// ----------------------------------------------------------------------------
249
public Uom extendViewCapable(
250       org.openmdx.compatibility.view1.cci.ViewCapable _base
251     , short accessLevelBrowse
252     , short accessLevelDelete
253     , short accessLevelUpdate
254     , boolean isScheduleBaseUom
255     , String JavaDoc name
256     , java.math.BigDecimal JavaDoc quantity
257     , org.opencrx.kernel.uom1.cci.UomSchedule uomSchedule
258   ) {
259     UomImpl _object = (UomImpl)getUom(_base);
260     _object.setAccessLevelBrowse(accessLevelBrowse);
261     _object.setAccessLevelDelete(accessLevelDelete);
262     _object.setAccessLevelUpdate(accessLevelUpdate);
263     _object.setScheduleBaseUom(isScheduleBaseUom);
264     _object.setName(name);
265     _object.setQuantity(quantity);
266     _object.setUomSchedule(uomSchedule);
267     return _object;
268   }
269
270 // ----------------------------------------------------------------------------
271
// ClassProxy/ImplEnd.vm
272
// ----------------------------------------------------------------------------
273
}
274
Popular Tags