KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > document1 > cci > ResourceIdentifierClassImpl


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