KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > TypeCode


1 package org.omg.CORBA;
2
3 /**
4  * CORBA V2.3 - 1.3 July 1998 (merged version)
5  *
6  * TypeCode has a holder and a helper class.
7  * The helper class shall be in the same Java package as the implementation class
8  * for TypeCode.
9  *
10  * last modified: 10/09/99 GB
11  */

12 abstract public class TypeCode implements org.omg.CORBA.portable.IDLEntity JavaDoc {
13
14     //for all TypeCode kinds
15
abstract public boolean equal( org.omg.CORBA.TypeCode JavaDoc tc );
16     abstract public org.omg.CORBA.TCKind JavaDoc kind();
17     
18     //for objref, struct, union, enum, alias and except
19
abstract public java.lang.String JavaDoc id() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
20     abstract public java.lang.String JavaDoc name() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
21
22     //for struct, union, enum and except
23
abstract public int member_count() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
24     abstract public java.lang.String JavaDoc member_name( int index) throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc, org.omg.CORBA.TypeCodePackage.Bounds JavaDoc;
25
26     //for struct, union and except
27
abstract public org.omg.CORBA.TypeCode JavaDoc member_type( int index) throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc, org.omg.CORBA.TypeCodePackage.Bounds JavaDoc;
28
29     //for union
30
abstract public org.omg.CORBA.Any JavaDoc member_label( int index) throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc, org.omg.CORBA.TypeCodePackage.Bounds JavaDoc;
31     abstract public org.omg.CORBA.TypeCode JavaDoc discriminator_type() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
32     abstract public int default_index() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
33
34     //for string, sequence and array
35
abstract public int length() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
36     abstract public org.omg.CORBA.TypeCode JavaDoc content_type() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
37
38     // for fixed
39
public abstract short fixed_digits() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
40     public abstract short fixed_scale() throws org.omg.CORBA.TypeCodePackage.BadKind JavaDoc;
41
42 }
43
44
45
Popular Tags