KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openmdx > base > cci > AuthorityClassImpl


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:39:07 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.openmdx.base.cci;
14
15 public class AuthorityClassImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefClass_1
17   implements AuthorityClass {
18
19   public AuthorityClassImpl(
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:openmdx:base:Authority";
28   }
29
30   public Authority getAuthority(
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         Authority target = (Authority)refCreateInstance(
38           args
39         );
40         return target;
41       } else {
42         return (Authority)((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 Authority createAuthority(
55   ) {
56     Authority target = (Authority)refCreateInstance(
57       null
58     );
59     return target;
60   }
61 // ----------------------------------------------------------------------------
62
// ClassProxy/ImplEnd.vm
63
// ----------------------------------------------------------------------------
64
}
65
Popular Tags