KickJava   Java API By Example, From Geeks To Geeks.

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


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