KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > depot1 > cci > DepotReferenceClassImpl


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:56 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.depot1.cci;
14
15 public class DepotReferenceClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements DepotReferenceClass {
18
19   public DepotReferenceClassImpl(
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:depot1:DepotReference";
28   }
29
30   public DepotReference getDepotReference(
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         DepotReference target = (DepotReference)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (DepotReference)((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 DepotReference createDepotReference(
55   ) {
56     DepotReference target = (DepotReference)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public DepotReference createDepotReference(
65       short accessLevelBrowse
66     , short accessLevelDelete
67     , short accessLevelUpdate
68     , short depotUsage
69     , boolean holderQualifiesPosition
70     , String JavaDoc name
71   ) {
72     DepotReferenceImpl _object = (DepotReferenceImpl)createDepotReference();
73     _object.setAccessLevelBrowse(accessLevelBrowse);
74     _object.setAccessLevelDelete(accessLevelDelete);
75     _object.setAccessLevelUpdate(accessLevelUpdate);
76     _object.setDepotUsage(depotUsage);
77     _object.setHolderQualifiesPosition(holderQualifiesPosition);
78     _object.setName(name);
79     return _object;
80   }
81
82 // ----------------------------------------------------------------------------
83
// ClassProxy/ImplInstanceExtenderRequiredAttributes
84
// ----------------------------------------------------------------------------
85
public DepotReference extendSecureObject(
86       org.opencrx.kernel.base.cci.SecureObject _base
87     , short depotUsage
88     , boolean holderQualifiesPosition
89     , String JavaDoc name
90   ) {
91     DepotReferenceImpl _object = (DepotReferenceImpl)getDepotReference(_base);
92     _object.setDepotUsage(depotUsage);
93     _object.setHolderQualifiesPosition(holderQualifiesPosition);
94     _object.setName(name);
95     return _object;
96   }
97
98 // ----------------------------------------------------------------------------
99
// ClassProxy/ImplInstanceExtenderRequiredAttributes
100
// ----------------------------------------------------------------------------
101
public DepotReference extendBasicObject(
102       org.openmdx.base.cci.BasicObject _base
103     , short accessLevelBrowse
104     , short accessLevelDelete
105     , short accessLevelUpdate
106     , short depotUsage
107     , boolean holderQualifiesPosition
108     , String JavaDoc name
109   ) {
110     DepotReferenceImpl _object = (DepotReferenceImpl)getDepotReference(_base);
111     _object.setAccessLevelBrowse(accessLevelBrowse);
112     _object.setAccessLevelDelete(accessLevelDelete);
113     _object.setAccessLevelUpdate(accessLevelUpdate);
114     _object.setDepotUsage(depotUsage);
115     _object.setHolderQualifiesPosition(holderQualifiesPosition);
116     _object.setName(name);
117     return _object;
118   }
119
120 // ----------------------------------------------------------------------------
121
// ClassProxy/ImplInstanceExtenderRequiredAttributes
122
// ----------------------------------------------------------------------------
123
public DepotReference extendContextCapable(
124       org.openmdx.base.cci.ContextCapable _base
125     , short accessLevelBrowse
126     , short accessLevelDelete
127     , short accessLevelUpdate
128     , short depotUsage
129     , boolean holderQualifiesPosition
130     , String JavaDoc name
131   ) {
132     DepotReferenceImpl _object = (DepotReferenceImpl)getDepotReference(_base);
133     _object.setAccessLevelBrowse(accessLevelBrowse);
134     _object.setAccessLevelDelete(accessLevelDelete);
135     _object.setAccessLevelUpdate(accessLevelUpdate);
136     _object.setDepotUsage(depotUsage);
137     _object.setHolderQualifiesPosition(holderQualifiesPosition);
138     _object.setName(name);
139     return _object;
140   }
141
142 // ----------------------------------------------------------------------------
143
// ClassProxy/ImplInstanceExtenderRequiredAttributes
144
// ----------------------------------------------------------------------------
145
public DepotReference extendExtentCapable(
146       org.openmdx.base.cci.ExtentCapable _base
147     , short accessLevelBrowse
148     , short accessLevelDelete
149     , short accessLevelUpdate
150     , short depotUsage
151     , boolean holderQualifiesPosition
152     , String JavaDoc name
153   ) {
154     DepotReferenceImpl _object = (DepotReferenceImpl)getDepotReference(_base);
155     _object.setAccessLevelBrowse(accessLevelBrowse);
156     _object.setAccessLevelDelete(accessLevelDelete);
157     _object.setAccessLevelUpdate(accessLevelUpdate);
158     _object.setDepotUsage(depotUsage);
159     _object.setHolderQualifiesPosition(holderQualifiesPosition);
160     _object.setName(name);
161     return _object;
162   }
163
164 // ----------------------------------------------------------------------------
165
// ClassProxy/ImplInstanceExtenderRequiredAttributes
166
// ----------------------------------------------------------------------------
167
public DepotReference extendViewCapable(
168       org.openmdx.compatibility.view1.cci.ViewCapable _base
169     , short accessLevelBrowse
170     , short accessLevelDelete
171     , short accessLevelUpdate
172     , short depotUsage
173     , boolean holderQualifiesPosition
174     , String JavaDoc name
175   ) {
176     DepotReferenceImpl _object = (DepotReferenceImpl)getDepotReference(_base);
177     _object.setAccessLevelBrowse(accessLevelBrowse);
178     _object.setAccessLevelDelete(accessLevelDelete);
179     _object.setAccessLevelUpdate(accessLevelUpdate);
180     _object.setDepotUsage(depotUsage);
181     _object.setHolderQualifiesPosition(holderQualifiesPosition);
182     _object.setName(name);
183     return _object;
184   }
185
186 // ----------------------------------------------------------------------------
187
// ClassProxy/ImplEnd.vm
188
// ----------------------------------------------------------------------------
189
}
190
Popular Tags