KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > ir > FixedDef


1 package org.jacorb.ir;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2004 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22
23 public class FixedDef
24     extends IDLType
25     implements org.omg.CORBA.FixedDefOperations JavaDoc
26 {
27     private short digits;
28     private short scale;
29
30     public FixedDef(org.omg.CORBA.TypeCode JavaDoc tc)
31     {
32         def_kind = org.omg.CORBA.DefinitionKind.dk_Fixed;
33         type = tc;
34         try
35         {
36             digits = tc.fixed_digits();
37             scale = tc.fixed_scale();
38         }
39         catch( Exception JavaDoc e )
40         {
41             e.printStackTrace(); // should not happen
42
}
43     }
44
45     public short digits()
46     {
47         return digits;
48     }
49
50     public void digits(short arg)
51     {
52         digits = arg;
53     }
54
55     public short scale()
56     {
57         return scale;
58     }
59
60     public void scale(short arg)
61     {
62         scale = arg;
63     }
64
65
66     public void define()
67     {
68     }
69
70     public void destroy()
71     {
72     }
73
74 }
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Popular Tags