KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > base > cci > NumberReplacementClassImpl


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