KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > address1 > cci > AddressableImpl


1 // ----------------------------------------------------------------------------
2
// Instance/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:06 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.address1.cci;
14
15 public class AddressableImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements Addressable {
18
19   public AddressableImpl(
20     org.openmdx.base.accessor.generic.cci.Object_1_0 object,
21     javax.jmi.reflect.RefClass refClass
22   ) {
23     super(object, refClass);
24   }
25
26 // ----------------------------------------------------------------------------
27
// Instance/ImplReferenceGet0_1NoQualifier
28
// ----------------------------------------------------------------------------
29
public org.opencrx.kernel.building1.cci.Building getBuilding(
30   ) {
31     return (org.opencrx.kernel.building1.cci.Building)refGetValue(
32       "org:opencrx:kernel:address1:Addressable:building"
33     );
34   }
35
36 // ----------------------------------------------------------------------------
37
// Instance/ImplReferenceSetNoQualifier
38
// ----------------------------------------------------------------------------
39
public void setBuilding(
40     org.opencrx.kernel.building1.cci.Building newValue
41   ) {
42     refSetValue(
43       "org:opencrx:kernel:address1:Addressable:building",
44       newValue
45     );
46   }
47
48 // ----------------------------------------------------------------------------
49
// Instance/ImplReferenceRemoveOptional
50
// ----------------------------------------------------------------------------
51
public void removeBuilding (
52   ) {
53     refRemoveValue(
54       "org:opencrx:kernel:address1:Addressable:building"
55     );
56   }
57 // ----------------------------------------------------------------------------
58
// Instance/ImplAttributeGet1_1
59
// ----------------------------------------------------------------------------
60
public boolean isMain(
61   ) {
62     return isMain(0);
63   }
64
65   protected boolean isMain(
66     int index
67   ) {
68     return ((Boolean JavaDoc)this.refGetValue("org:opencrx:kernel:address1:Addressable:isMain", index)).booleanValue();
69   }
70
71 // ----------------------------------------------------------------------------
72
// Instance/ImplAttributeSet1_1
73
// ----------------------------------------------------------------------------
74
public void setMain(
75     boolean newValue
76   ) {
77     setMain(0, newValue);
78   }
79
80   protected void setMain(
81     int index,
82     boolean newValue
83   ) {
84     refSetValue("org:opencrx:kernel:address1:Addressable:isMain", index, new Boolean JavaDoc(newValue));
85   }
86 // ----------------------------------------------------------------------------
87
// Instance/ImplAttributeGetList
88
// ----------------------------------------------------------------------------
89
public java.util.List JavaDoc getUsage (
90   ) {
91     return (java.util.List JavaDoc)this.refGetValue("usage");
92   }
93   public short getUsage(
94     int index
95   ) {
96     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:address1:Addressable:usage", index)).shortValue();
97   }
98
99 // ----------------------------------------------------------------------------
100
// Instance/ImplAttributeSetList
101
// ----------------------------------------------------------------------------
102
public void setUsage(
103     java.util.List JavaDoc newValue
104   ) {
105     refSetValue("org:opencrx:kernel:address1:Addressable:usage", newValue);
106   }
107
108   public void setUsage(
109     short[] newValue
110   ) {
111     refSetValue("org:opencrx:kernel:address1:Addressable:usage", newValue);
112   }
113
114 // ----------------------------------------------------------------------------
115
// Instance/ImplEnd
116
// ----------------------------------------------------------------------------
117
}
118
Popular Tags