1 package org.opencrx.kernel.product1.cci; 14 15 public class AbstractProductPriceImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements AbstractProductPrice { 18 19 public AbstractProductPriceImpl( 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 public String getDescription ( 30 ) { 31 return (String )this.refGetValue("description", 0); 32 } 33 public void setDescription( 37 String newValue 38 ) { 39 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:description", 0, newValue); 40 } 41 42 public java.math.BigDecimal getDiscount ( 46 ) { 47 return (java.math.BigDecimal )this.refGetValue("discount", 0); 48 } 49 public void setDiscount( 53 java.math.BigDecimal newValue 54 ) { 55 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:discount", 0, newValue); 56 } 57 58 public Boolean isDiscountIsPercentage ( 62 ) { 63 return (Boolean )this.refGetValue("discountIsPercentage", 0); 64 } 65 public void setDiscountIsPercentage( 69 Boolean newValue 70 ) { 71 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:discountIsPercentage", 0, newValue); 72 } 73 74 public java.math.BigDecimal getPrice ( 78 ) { 79 return (java.math.BigDecimal )this.refGetValue("price", 0); 80 } 81 public void setPrice( 85 java.math.BigDecimal newValue 86 ) { 87 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:price", 0, newValue); 88 } 89 90 public short getPriceCurrency( 94 ) { 95 return getPriceCurrency(0); 96 } 97 98 protected short getPriceCurrency( 99 int index 100 ) { 101 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceCurrency", index)).shortValue(); 102 } 103 104 public void setPriceCurrency( 108 short newValue 109 ) { 110 setPriceCurrency(0, newValue); 111 } 112 113 protected void setPriceCurrency( 114 int index, 115 short newValue 116 ) { 117 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceCurrency", index, new Short (newValue)); 118 } 119 public void setPriceLevel( 123 java.util.List newValue 124 ) { 125 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", newValue); 126 } 127 128 public void setPriceLevel( 129 org.opencrx.kernel.product1.cci.PriceLevel[] newValue 130 ) { 131 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", newValue); 132 } 133 134 public org.opencrx.kernel.product1.cci.PriceLevel getPriceLevel( 138 int index 139 ) { 140 return (org.opencrx.kernel.product1.cci.PriceLevel)refGetValue( 141 "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", 142 new Integer (index) 143 ); 144 } 145 146 public java.util.Collection getPriceLevel( 150 ) { 151 return (java.util.Collection )refGetValue( 152 "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel" 153 ); 154 } 155 156 public void addPriceLevel ( 160 int index, 161 org.opencrx.kernel.product1.cci.PriceLevel newValue 162 ) { 163 refAddValue( 164 "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", 165 new Integer (index), 166 newValue 167 ); 168 } 169 170 public void addPriceLevel ( 174 org.opencrx.kernel.product1.cci.PriceLevel newValue 175 ) { 176 refAddValue( 177 "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", 178 newValue 179 ); 180 } 181 182 public void removePriceLevel ( 186 int index 187 ) { 188 refRemoveValue( 189 "org:opencrx:kernel:product1:AbstractProductPrice:priceLevel", 190 new Integer (index) 191 ); 192 } 193 194 public java.math.BigDecimal getQuantityFrom ( 198 ) { 199 return (java.math.BigDecimal )this.refGetValue("quantityFrom", 0); 200 } 201 public void setQuantityFrom( 205 java.math.BigDecimal newValue 206 ) { 207 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:quantityFrom", 0, newValue); 208 } 209 210 public java.math.BigDecimal getQuantityTo ( 214 ) { 215 return (java.math.BigDecimal )this.refGetValue("quantityTo", 0); 216 } 217 public void setQuantityTo( 221 java.math.BigDecimal newValue 222 ) { 223 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:quantityTo", 0, newValue); 224 } 225 226 public org.opencrx.kernel.uom1.cci.Uom getUom( 230 ) { 231 return (org.opencrx.kernel.uom1.cci.Uom)refGetValue( 232 "org:opencrx:kernel:product1:AbstractProductPrice:uom" 233 ); 234 } 235 236 public void setUom( 240 org.opencrx.kernel.uom1.cci.Uom newValue 241 ) { 242 refSetValue( 243 "org:opencrx:kernel:product1:AbstractProductPrice:uom", 244 newValue 245 ); 246 } 247 248 public java.util.List getUsage ( 252 ) { 253 return (java.util.List )this.refGetValue("usage"); 254 } 255 public short getUsage( 256 int index 257 ) { 258 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:product1:AbstractProductPrice:usage", index)).shortValue(); 259 } 260 261 public void setUsage( 265 java.util.List newValue 266 ) { 267 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:usage", newValue); 268 } 269 270 public void setUsage( 271 short[] newValue 272 ) { 273 refSetValue("org:opencrx:kernel:product1:AbstractProductPrice:usage", newValue); 274 } 275 276 } 280 | Popular Tags |