KickJava   Java API By Example, From Geeks To Geeks.

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


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