01: package org.jacorb.ir;
02:
03: import org.omg.CORBA.INTERNAL;
04:
05: /*
06: * JacORB - a free Java ORB
07: *
08: * Copyright (C) 1997-2004 Gerald Brose.
09: *
10: * This library is free software; you can redistribute it and/or
11: * modify it under the terms of the GNU Library General Public
12: * License as published by the Free Software Foundation; either
13: * version 2 of the License, or (at your option) any later version.
14: *
15: * This library is distributed in the hope that it will be useful,
16: * but WITHOUT ANY WARRANTY; without even the implied warranty of
17: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18: * Library General Public License for more details.
19: *
20: * You should have received a copy of the GNU Library General Public
21: * License along with this library; if not, write to the Free
22: * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23: */
24:
25: public class FixedDef extends IDLType implements
26: org.omg.CORBA.FixedDefOperations {
27: private short digits;
28: private short scale;
29:
30: public FixedDef(org.omg.CORBA.TypeCode tc) {
31: def_kind = org.omg.CORBA.DefinitionKind.dk_Fixed;
32: type = tc;
33: try {
34: digits = tc.fixed_digits();
35: scale = tc.fixed_scale();
36: } catch (Exception e) {
37: throw new INTERNAL(e.toString());
38: }
39: }
40:
41: public short digits() {
42: return digits;
43: }
44:
45: public void digits(short arg) {
46: digits = arg;
47: }
48:
49: public short scale() {
50: return scale;
51: }
52:
53: public void scale(short arg) {
54: scale = arg;
55: }
56:
57: public void define() {
58: }
59:
60: public void destroy() {
61: }
62: }
|