KickJava   Java API By Example, From Geeks To Geeks.

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


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 ReferenceReplacementClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements ReferenceReplacementClass {
18
19   public ReferenceReplacementClassImpl(
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:ReferenceReplacement";
28   }
29
30   public ReferenceReplacement getReferenceReplacement(
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         ReferenceReplacement target = (ReferenceReplacement)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (ReferenceReplacement)((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 ReferenceReplacement createReferenceReplacement(
55   ) {
56     ReferenceReplacement target = (ReferenceReplacement)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplInstanceCreatorRequiredAttributes
63
// ----------------------------------------------------------------------------
64
public ReferenceReplacement createReferenceReplacement(
65       short accessLevelBrowse
66     , short accessLevelDelete
67     , short accessLevelUpdate
68   ) {
69     ReferenceReplacementImpl _object = (ReferenceReplacementImpl)createReferenceReplacement();
70     _object.setAccessLevelBrowse(accessLevelBrowse);
71     _object.setAccessLevelDelete(accessLevelDelete);
72     _object.setAccessLevelUpdate(accessLevelUpdate);
73     return _object;
74   }
75
76 // ----------------------------------------------------------------------------
77
// ClassProxy/ImplInstanceExtenderRequiredAttributes
78
// ----------------------------------------------------------------------------
79
public ReferenceReplacement extendBasicObject(
80       org.openmdx.base.cci.BasicObject _base
81     , short accessLevelBrowse
82     , short accessLevelDelete
83     , short accessLevelUpdate
84   ) {
85     ReferenceReplacementImpl _object = (ReferenceReplacementImpl)getReferenceReplacement(_base);
86     _object.setAccessLevelBrowse(accessLevelBrowse);
87     _object.setAccessLevelDelete(accessLevelDelete);
88     _object.setAccessLevelUpdate(accessLevelUpdate);
89     return _object;
90   }
91
92 // ----------------------------------------------------------------------------
93
// ClassProxy/ImplInstanceExtenderRequiredAttributes
94
// ----------------------------------------------------------------------------
95
public ReferenceReplacement extendContextCapable(
96       org.openmdx.base.cci.ContextCapable _base
97     , short accessLevelBrowse
98     , short accessLevelDelete
99     , short accessLevelUpdate
100   ) {
101     ReferenceReplacementImpl _object = (ReferenceReplacementImpl)getReferenceReplacement(_base);
102     _object.setAccessLevelBrowse(accessLevelBrowse);
103     _object.setAccessLevelDelete(accessLevelDelete);
104     _object.setAccessLevelUpdate(accessLevelUpdate);
105     return _object;
106   }
107
108 // ----------------------------------------------------------------------------
109
// ClassProxy/ImplInstanceExtenderRequiredAttributes
110
// ----------------------------------------------------------------------------
111
public ReferenceReplacement extendExtentCapable(
112       org.openmdx.base.cci.ExtentCapable _base
113     , short accessLevelBrowse
114     , short accessLevelDelete
115     , short accessLevelUpdate
116   ) {
117     ReferenceReplacementImpl _object = (ReferenceReplacementImpl)getReferenceReplacement(_base);
118     _object.setAccessLevelBrowse(accessLevelBrowse);
119     _object.setAccessLevelDelete(accessLevelDelete);
120     _object.setAccessLevelUpdate(accessLevelUpdate);
121     return _object;
122   }
123
124 // ----------------------------------------------------------------------------
125
// ClassProxy/ImplInstanceExtenderRequiredAttributes
126
// ----------------------------------------------------------------------------
127
public ReferenceReplacement extendViewCapable(
128       org.openmdx.compatibility.view1.cci.ViewCapable _base
129     , short accessLevelBrowse
130     , short accessLevelDelete
131     , short accessLevelUpdate
132   ) {
133     ReferenceReplacementImpl _object = (ReferenceReplacementImpl)getReferenceReplacement(_base);
134     _object.setAccessLevelBrowse(accessLevelBrowse);
135     _object.setAccessLevelDelete(accessLevelDelete);
136     _object.setAccessLevelUpdate(accessLevelUpdate);
137     return _object;
138   }
139
140 // ----------------------------------------------------------------------------
141
// ClassProxy/ImplEnd.vm
142
// ----------------------------------------------------------------------------
143
}
144
Popular Tags