KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > contract1 > cci > ShippingDetailImpl


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:01 CEST 2006
9
//
10
// GENERATED - DO NOT CHANGE MANUALLY
11
//
12
//////////////////////////////////////////////////////////////////////////////
13
package org.opencrx.kernel.contract1.cci;
14
15 public class ShippingDetailImpl
16   extends org.openmdx.base.accessor.jmi.spi.RefObject_1
17   implements ShippingDetail {
18
19   public ShippingDetailImpl(
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/ImplReferenceGet1_1NoQualifier
28
// ----------------------------------------------------------------------------
29
public org.opencrx.kernel.account1.cci.Account getCarrier(
30   ) {
31     return (org.opencrx.kernel.account1.cci.Account)refGetValue(
32       "org:opencrx:kernel:contract1:ShippingDetail:carrier"
33     );
34   }
35
36 // ----------------------------------------------------------------------------
37
// Instance/ImplReferenceSetNoQualifier
38
// ----------------------------------------------------------------------------
39
public void setCarrier(
40     org.opencrx.kernel.account1.cci.Account newValue
41   ) {
42     refSetValue(
43       "org:opencrx:kernel:contract1:ShippingDetail:carrier",
44       newValue
45     );
46   }
47
48 // ----------------------------------------------------------------------------
49
// Instance/ImplAttributeGet0_1
50
// ----------------------------------------------------------------------------
51
public String JavaDoc getGiftMessage (
52   ) {
53     return (String JavaDoc)this.refGetValue("giftMessage", 0);
54   }
55 // ----------------------------------------------------------------------------
56
// Instance/ImplAttributeSet0_1
57
// ----------------------------------------------------------------------------
58
public void setGiftMessage(
59     String JavaDoc newValue
60   ) {
61     refSetValue("org:opencrx:kernel:contract1:ShippingDetail:giftMessage", 0, newValue);
62   }
63
64 // ----------------------------------------------------------------------------
65
// Instance/ImplAttributeGet1_1
66
// ----------------------------------------------------------------------------
67
public boolean isGift(
68   ) {
69     return isGift(0);
70   }
71
72   protected boolean isGift(
73     int index
74   ) {
75     return ((Boolean JavaDoc)this.refGetValue("org:opencrx:kernel:contract1:ShippingDetail:isGift", index)).booleanValue();
76   }
77
78 // ----------------------------------------------------------------------------
79
// Instance/ImplAttributeSet1_1
80
// ----------------------------------------------------------------------------
81
public void setGift(
82     boolean newValue
83   ) {
84     setGift(0, newValue);
85   }
86
87   protected void setGift(
88     int index,
89     boolean newValue
90   ) {
91     refSetValue("org:opencrx:kernel:contract1:ShippingDetail:isGift", index, new Boolean JavaDoc(newValue));
92   }
93 // ----------------------------------------------------------------------------
94
// Instance/ImplAttributeGet0_1
95
// ----------------------------------------------------------------------------
96
public String JavaDoc getShippingInstructions (
97   ) {
98     return (String JavaDoc)this.refGetValue("shippingInstructions", 0);
99   }
100 // ----------------------------------------------------------------------------
101
// Instance/ImplAttributeSet0_1
102
// ----------------------------------------------------------------------------
103
public void setShippingInstructions(
104     String JavaDoc newValue
105   ) {
106     refSetValue("org:opencrx:kernel:contract1:ShippingDetail:shippingInstructions", 0, newValue);
107   }
108
109 // ----------------------------------------------------------------------------
110
// Instance/ImplAttributeGet1_1
111
// ----------------------------------------------------------------------------
112
public short getShippingMethod(
113   ) {
114     return getShippingMethod(0);
115   }
116
117   protected short getShippingMethod(
118     int index
119   ) {
120     return ((java.lang.Number JavaDoc)this.refGetValue("org:opencrx:kernel:contract1:ShippingDetail:shippingMethod", index)).shortValue();
121   }
122
123 // ----------------------------------------------------------------------------
124
// Instance/ImplAttributeSet1_1
125
// ----------------------------------------------------------------------------
126
public void setShippingMethod(
127     short newValue
128   ) {
129     setShippingMethod(0, newValue);
130   }
131
132   protected void setShippingMethod(
133     int index,
134     short newValue
135   ) {
136     refSetValue("org:opencrx:kernel:contract1:ShippingDetail:shippingMethod", index, new Short JavaDoc(newValue));
137   }
138 // ----------------------------------------------------------------------------
139
// Instance/ImplAttributeGet0_1
140
// ----------------------------------------------------------------------------
141
public String JavaDoc getShippingTrackingNumber (
142   ) {
143     return (String JavaDoc)this.refGetValue("shippingTrackingNumber", 0);
144   }
145 // ----------------------------------------------------------------------------
146
// Instance/ImplAttributeSet0_1
147
// ----------------------------------------------------------------------------
148
public void setShippingTrackingNumber(
149     String JavaDoc newValue
150   ) {
151     refSetValue("org:opencrx:kernel:contract1:ShippingDetail:shippingTrackingNumber", 0, newValue);
152   }
153
154 // ----------------------------------------------------------------------------
155
// Instance/ImplEnd
156
// ----------------------------------------------------------------------------
157
}
158
Popular Tags