KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > activity1 > cci > ActivityLinkFromClassImpl


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