KickJava   Java API By Example, From Geeks To Geeks.

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


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