KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > depot1 > cci > PhoneNumberClassImpl


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