KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > home1 > cci > ChartClassImpl


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:38:58 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.home1.cci;
14
15 public class ChartClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements ChartClass {
18
19   public ChartClassImpl(
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:home1:Chart";
28   }
29
30   public Chart getChart(
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         Chart target = (Chart)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Chart)((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 Chart createChart(
55   ) {
56     Chart target = (Chart)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Chart createChart(
65       byte[] chart
66     , String JavaDoc chartMimeType
67     , String JavaDoc chartName
68     , String JavaDoc description
69     , short accessLevelBrowse
70     , short accessLevelDelete
71     , short accessLevelUpdate
72   ) {
73     ChartImpl _object = (ChartImpl)createChart();
74     _object.setChart(chart);
75     _object.setChartMimeType(chartMimeType);
76     _object.setChartName(chartName);
77     _object.setDescription(description);
78     _object.setAccessLevelBrowse(accessLevelBrowse);
79     _object.setAccessLevelDelete(accessLevelDelete);
80     _object.setAccessLevelUpdate(accessLevelUpdate);
81     return _object;
82   }
83
84 // ----------------------------------------------------------------------------
85
// ClassProxy/ImplInstanceExtenderRequiredAttributes
86
// ----------------------------------------------------------------------------
87
public Chart extendChart(
88       org.opencrx.kernel.base.cci.Chart _base
89     , short accessLevelBrowse
90     , short accessLevelDelete
91     , short accessLevelUpdate
92   ) {
93     ChartImpl _object = (ChartImpl)getChart(_base);
94     _object.setAccessLevelBrowse(accessLevelBrowse);
95     _object.setAccessLevelDelete(accessLevelDelete);
96     _object.setAccessLevelUpdate(accessLevelUpdate);
97     return _object;
98   }
99
100 // ----------------------------------------------------------------------------
101
// ClassProxy/ImplInstanceExtenderRequiredAttributes
102
// ----------------------------------------------------------------------------
103
public Chart extendSecureObject(
104       org.opencrx.kernel.base.cci.SecureObject _base
105     , byte[] chart
106     , String JavaDoc chartMimeType
107     , String JavaDoc chartName
108     , String JavaDoc description
109   ) {
110     ChartImpl _object = (ChartImpl)getChart(_base);
111     _object.setChart(chart);
112     _object.setChartMimeType(chartMimeType);
113     _object.setChartName(chartName);
114     _object.setDescription(description);
115     return _object;
116   }
117
118 // ----------------------------------------------------------------------------
119
// ClassProxy/ImplInstanceExtenderRequiredAttributes
120
// ----------------------------------------------------------------------------
121
public Chart extendBasicObject(
122       org.openmdx.base.cci.BasicObject _base
123     , byte[] chart
124     , String JavaDoc chartMimeType
125     , String JavaDoc chartName
126     , String JavaDoc description
127     , short accessLevelBrowse
128     , short accessLevelDelete
129     , short accessLevelUpdate
130   ) {
131     ChartImpl _object = (ChartImpl)getChart(_base);
132     _object.setChart(chart);
133     _object.setChartMimeType(chartMimeType);
134     _object.setChartName(chartName);
135     _object.setDescription(description);
136     _object.setAccessLevelBrowse(accessLevelBrowse);
137     _object.setAccessLevelDelete(accessLevelDelete);
138     _object.setAccessLevelUpdate(accessLevelUpdate);
139     return _object;
140   }
141
142 // ----------------------------------------------------------------------------
143
// ClassProxy/ImplInstanceExtenderRequiredAttributes
144
// ----------------------------------------------------------------------------
145
public Chart extendContextCapable(
146       org.openmdx.base.cci.ContextCapable _base
147     , byte[] chart
148     , String JavaDoc chartMimeType
149     , String JavaDoc chartName
150     , String JavaDoc description
151     , short accessLevelBrowse
152     , short accessLevelDelete
153     , short accessLevelUpdate
154   ) {
155     ChartImpl _object = (ChartImpl)getChart(_base);
156     _object.setChart(chart);
157     _object.setChartMimeType(chartMimeType);
158     _object.setChartName(chartName);
159     _object.setDescription(description);
160     _object.setAccessLevelBrowse(accessLevelBrowse);
161     _object.setAccessLevelDelete(accessLevelDelete);
162     _object.setAccessLevelUpdate(accessLevelUpdate);
163     return _object;
164   }
165
166 // ----------------------------------------------------------------------------
167
// ClassProxy/ImplInstanceExtenderRequiredAttributes
168
// ----------------------------------------------------------------------------
169
public Chart extendExtentCapable(
170       org.openmdx.base.cci.ExtentCapable _base
171     , byte[] chart
172     , String JavaDoc chartMimeType
173     , String JavaDoc chartName
174     , String JavaDoc description
175     , short accessLevelBrowse
176     , short accessLevelDelete
177     , short accessLevelUpdate
178   ) {
179     ChartImpl _object = (ChartImpl)getChart(_base);
180     _object.setChart(chart);
181     _object.setChartMimeType(chartMimeType);
182     _object.setChartName(chartName);
183     _object.setDescription(description);
184     _object.setAccessLevelBrowse(accessLevelBrowse);
185     _object.setAccessLevelDelete(accessLevelDelete);
186     _object.setAccessLevelUpdate(accessLevelUpdate);
187     return _object;
188   }
189
190 // ----------------------------------------------------------------------------
191
// ClassProxy/ImplInstanceExtenderRequiredAttributes
192
// ----------------------------------------------------------------------------
193
public Chart extendViewCapable(
194       org.openmdx.compatibility.view1.cci.ViewCapable _base
195     , byte[] chart
196     , String JavaDoc chartMimeType
197     , String JavaDoc chartName
198     , String JavaDoc description
199     , short accessLevelBrowse
200     , short accessLevelDelete
201     , short accessLevelUpdate
202   ) {
203     ChartImpl _object = (ChartImpl)getChart(_base);
204     _object.setChart(chart);
205     _object.setChartMimeType(chartMimeType);
206     _object.setChartName(chartName);
207     _object.setDescription(description);
208     _object.setAccessLevelBrowse(accessLevelBrowse);
209     _object.setAccessLevelDelete(accessLevelDelete);
210     _object.setAccessLevelUpdate(accessLevelUpdate);
211     return _object;
212   }
213
214 // ----------------------------------------------------------------------------
215
// ClassProxy/ImplEnd.vm
216
// ----------------------------------------------------------------------------
217
}
218
Popular Tags