KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > product1 > cci > LinearPriceModifierClassImpl


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