KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > document1 > cci > DocumentClassImpl


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:57 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.document1.cci;
14
15 public class DocumentClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements DocumentClass {
18
19   public DocumentClassImpl(
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:document1:Document";
28   }
29
30   public Document getDocument(
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         Document target = (Document)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Document)((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 Document createDocument(
55   ) {
56     Document target = (Document)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public Document createDocument(
65       short accessLevelBrowse
66     , short accessLevelDelete
67     , short accessLevelUpdate
68     , short contentLanguage
69     , short documentState
70     , short documentType
71     , short literatureType
72   ) {
73     DocumentImpl _object = (DocumentImpl)createDocument();
74     _object.setAccessLevelBrowse(accessLevelBrowse);
75     _object.setAccessLevelDelete(accessLevelDelete);
76     _object.setAccessLevelUpdate(accessLevelUpdate);
77     _object.setContentLanguage(contentLanguage);
78     _object.setDocumentState(documentState);
79     _object.setDocumentType(documentType);
80     _object.setLiteratureType(literatureType);
81     return _object;
82   }
83
84 // ----------------------------------------------------------------------------
85
// ClassProxy/ImplInstanceExtenderRequiredAttributes
86
// ----------------------------------------------------------------------------
87
public Document extendAuditee(
88       org.opencrx.kernel.base.cci.Auditee _base
89     , short accessLevelBrowse
90     , short accessLevelDelete
91     , short accessLevelUpdate
92     , short contentLanguage
93     , short documentState
94     , short documentType
95     , short literatureType
96   ) {
97     DocumentImpl _object = (DocumentImpl)getDocument(_base);
98     _object.setAccessLevelBrowse(accessLevelBrowse);
99     _object.setAccessLevelDelete(accessLevelDelete);
100     _object.setAccessLevelUpdate(accessLevelUpdate);
101     _object.setContentLanguage(contentLanguage);
102     _object.setDocumentState(documentState);
103     _object.setDocumentType(documentType);
104     _object.setLiteratureType(literatureType);
105     return _object;
106   }
107
108 // ----------------------------------------------------------------------------
109
// ClassProxy/ImplInstanceExtenderRequiredAttributes
110
// ----------------------------------------------------------------------------
111
public Document extendImporter(
112       org.opencrx.kernel.base.cci.Importer _base
113     , short accessLevelBrowse
114     , short accessLevelDelete
115     , short accessLevelUpdate
116     , short contentLanguage
117     , short documentState
118     , short documentType
119     , short literatureType
120   ) {
121     DocumentImpl _object = (DocumentImpl)getDocument(_base);
122     _object.setAccessLevelBrowse(accessLevelBrowse);
123     _object.setAccessLevelDelete(accessLevelDelete);
124     _object.setAccessLevelUpdate(accessLevelUpdate);
125     _object.setContentLanguage(contentLanguage);
126     _object.setDocumentState(documentState);
127     _object.setDocumentType(documentType);
128     _object.setLiteratureType(literatureType);
129     return _object;
130   }
131
132 // ----------------------------------------------------------------------------
133
// ClassProxy/ImplInstanceExtenderRequiredAttributes
134
// ----------------------------------------------------------------------------
135
public Document extendSecureObject(
136       org.opencrx.kernel.base.cci.SecureObject _base
137     , short contentLanguage
138     , short documentState
139     , short documentType
140     , short literatureType
141   ) {
142     DocumentImpl _object = (DocumentImpl)getDocument(_base);
143     _object.setContentLanguage(contentLanguage);
144     _object.setDocumentState(documentState);
145     _object.setDocumentType(documentType);
146     _object.setLiteratureType(literatureType);
147     return _object;
148   }
149
150 // ----------------------------------------------------------------------------
151
// ClassProxy/ImplInstanceExtenderRequiredAttributes
152
// ----------------------------------------------------------------------------
153
public Document extendXmlExporter(
154       org.opencrx.kernel.base.cci.XmlExporter _base
155     , short accessLevelBrowse
156     , short accessLevelDelete
157     , short accessLevelUpdate
158     , short contentLanguage
159     , short documentState
160     , short documentType
161     , short literatureType
162   ) {
163     DocumentImpl _object = (DocumentImpl)getDocument(_base);
164     _object.setAccessLevelBrowse(accessLevelBrowse);
165     _object.setAccessLevelDelete(accessLevelDelete);
166     _object.setAccessLevelUpdate(accessLevelUpdate);
167     _object.setContentLanguage(contentLanguage);
168     _object.setDocumentState(documentState);
169     _object.setDocumentType(documentType);
170     _object.setLiteratureType(literatureType);
171     return _object;
172   }
173
174 // ----------------------------------------------------------------------------
175
// ClassProxy/ImplInstanceExtenderRequiredAttributes
176
// ----------------------------------------------------------------------------
177
public Document extendBasicObject(
178       org.openmdx.base.cci.BasicObject _base
179     , short accessLevelBrowse
180     , short accessLevelDelete
181     , short accessLevelUpdate
182     , short contentLanguage
183     , short documentState
184     , short documentType
185     , short literatureType
186   ) {
187     DocumentImpl _object = (DocumentImpl)getDocument(_base);
188     _object.setAccessLevelBrowse(accessLevelBrowse);
189     _object.setAccessLevelDelete(accessLevelDelete);
190     _object.setAccessLevelUpdate(accessLevelUpdate);
191     _object.setContentLanguage(contentLanguage);
192     _object.setDocumentState(documentState);
193     _object.setDocumentType(documentType);
194     _object.setLiteratureType(literatureType);
195     return _object;
196   }
197
198 // ----------------------------------------------------------------------------
199
// ClassProxy/ImplInstanceExtenderRequiredAttributes
200
// ----------------------------------------------------------------------------
201
public Document extendContextCapable(
202       org.openmdx.base.cci.ContextCapable _base
203     , short accessLevelBrowse
204     , short accessLevelDelete
205     , short accessLevelUpdate
206     , short contentLanguage
207     , short documentState
208     , short documentType
209     , short literatureType
210   ) {
211     DocumentImpl _object = (DocumentImpl)getDocument(_base);
212     _object.setAccessLevelBrowse(accessLevelBrowse);
213     _object.setAccessLevelDelete(accessLevelDelete);
214     _object.setAccessLevelUpdate(accessLevelUpdate);
215     _object.setContentLanguage(contentLanguage);
216     _object.setDocumentState(documentState);
217     _object.setDocumentType(documentType);
218     _object.setLiteratureType(literatureType);
219     return _object;
220   }
221
222 // ----------------------------------------------------------------------------
223
// ClassProxy/ImplInstanceExtenderRequiredAttributes
224
// ----------------------------------------------------------------------------
225
public Document extendExtentCapable(
226       org.openmdx.base.cci.ExtentCapable _base
227     , short accessLevelBrowse
228     , short accessLevelDelete
229     , short accessLevelUpdate
230     , short contentLanguage
231     , short documentState
232     , short documentType
233     , short literatureType
234   ) {
235     DocumentImpl _object = (DocumentImpl)getDocument(_base);
236     _object.setAccessLevelBrowse(accessLevelBrowse);
237     _object.setAccessLevelDelete(accessLevelDelete);
238     _object.setAccessLevelUpdate(accessLevelUpdate);
239     _object.setContentLanguage(contentLanguage);
240     _object.setDocumentState(documentState);
241     _object.setDocumentType(documentType);
242     _object.setLiteratureType(literatureType);
243     return _object;
244   }
245
246 // ----------------------------------------------------------------------------
247
// ClassProxy/ImplInstanceExtenderRequiredAttributes
248
// ----------------------------------------------------------------------------
249
public Document extendViewCapable(
250       org.openmdx.compatibility.view1.cci.ViewCapable _base
251     , short accessLevelBrowse
252     , short accessLevelDelete
253     , short accessLevelUpdate
254     , short contentLanguage
255     , short documentState
256     , short documentType
257     , short literatureType
258   ) {
259     DocumentImpl _object = (DocumentImpl)getDocument(_base);
260     _object.setAccessLevelBrowse(accessLevelBrowse);
261     _object.setAccessLevelDelete(accessLevelDelete);
262     _object.setAccessLevelUpdate(accessLevelUpdate);
263     _object.setContentLanguage(contentLanguage);
264     _object.setDocumentState(documentState);
265     _object.setDocumentType(documentType);
266     _object.setLiteratureType(literatureType);
267     return _object;
268   }
269
270 // ----------------------------------------------------------------------------
271
// ClassProxy/ImplEnd.vm
272
// ----------------------------------------------------------------------------
273
}
274
Popular Tags