KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > model1 > cci > EditableAttributeClassImpl


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