KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.CORBA;
2
3 /**
4  * CORBA V2.3 - 1.3 July 1998 (merged version)
5  * last modified: 02/03/99 RT
6  */

7 abstract public class Any {
8
9     abstract public boolean equal(Any JavaDoc rhs);
10
11     abstract public TypeCode JavaDoc type();
12     abstract public void type(TypeCode JavaDoc type);
13
14     /**
15      * throw excep when typecode inconsist with value
16      */

17     abstract public void read_value(org.omg.CORBA.portable.InputStream JavaDoc in, TypeCode JavaDoc type) throws org.omg.CORBA.MARSHAL JavaDoc;
18     abstract public void write_value(org.omg.CORBA.portable.OutputStream JavaDoc out);
19
20     abstract public org.omg.CORBA.portable.OutputStream JavaDoc create_output_stream();
21     abstract public org.omg.CORBA.portable.InputStream JavaDoc create_input_stream();
22
23     abstract public short extract_short() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
24     abstract public void insert_short(short value);
25
26     abstract public int extract_long() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
27     abstract public void insert_long(int value);
28
29     abstract public long extract_longlong() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
30     abstract public void insert_longlong(long value);
31
32     abstract public short extract_ushort() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
33     abstract public void insert_ushort(short value);
34
35     abstract public int extract_ulong() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
36     abstract public void insert_ulong(int value);
37
38     abstract public long extract_ulonglong() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
39     abstract public void insert_ulonglong(long value);
40
41     abstract public float extract_float() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
42     abstract public void insert_float(float value);
43
44     abstract public double extract_double() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
45     abstract public void insert_double(double value);
46
47     abstract public boolean extract_boolean() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
48     abstract public void insert_boolean(boolean value);
49
50     abstract public char extract_char() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
51     abstract public void insert_char(char value) throws org.omg.CORBA.DATA_CONVERSION JavaDoc;
52
53     abstract public char extract_wchar() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
54     abstract public void insert_wchar(char value);
55
56     abstract public byte extract_octet() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
57     abstract public void insert_octet(byte value);
58
59     abstract public Any JavaDoc extract_any() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
60     abstract public void insert_any(Any JavaDoc value);
61
62     abstract public org.omg.CORBA.Object JavaDoc extract_Object() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
63     abstract public void insert_Object(org.omg.CORBA.Object JavaDoc value);
64     abstract public void insert_Object(org.omg.CORBA.Object JavaDoc value, org.omg.CORBA.TypeCode JavaDoc type) throws org.omg.CORBA.BAD_PARAM JavaDoc;
65
66     abstract public java.io.Serializable JavaDoc extract_Value() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
67     abstract public void insert_Value(java.io.Serializable JavaDoc value);
68     abstract public void insert_Value(java.io.Serializable JavaDoc value, org.omg.CORBA.TypeCode JavaDoc type) throws org.omg.CORBA.MARSHAL JavaDoc;
69
70     abstract public String JavaDoc extract_string() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
71     abstract public void insert_string(String JavaDoc value) throws org.omg.CORBA.DATA_CONVERSION JavaDoc, org.omg.CORBA.MARSHAL JavaDoc;
72
73     abstract public String JavaDoc extract_wstring() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
74     abstract public void insert_wstring(String JavaDoc value) throws org.omg.CORBA.MARSHAL JavaDoc;
75
76     abstract public TypeCode JavaDoc extract_TypeCode() throws org.omg.CORBA.BAD_OPERATION JavaDoc;
77     abstract public void insert_TypeCode(TypeCode JavaDoc value);
78
79     /**
80      * @deprecated
81      */

82     public org.omg.CORBA.Principal JavaDoc extract_Principal() throws org.omg.CORBA.BAD_OPERATION JavaDoc {
83         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
84     }
85     /**
86      * @deprecated
87      */

88     public void insert_Principal(Principal JavaDoc value) {
89         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
90     }
91
92     /**
93      * attempting to insert a native type into an Any using this method shall
94      * throw a org.omg.CORBA.MARSHAL exep
95      */

96     public void insert_Streamable(org.omg.CORBA.portable.Streamable JavaDoc value) throws org.omg.CORBA.BAD_INV_ORDER JavaDoc {
97         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
98     }
99     public org.omg.CORBA.portable.Streamable JavaDoc extract_Streamable() {
100         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
101     }
102
103     public java.math.BigDecimal JavaDoc extract_fixed() {
104         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
105     }
106
107     public void insert_fixed(java.math.BigDecimal JavaDoc value) {
108         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
109     }
110     public void insert_fixed(java.math.BigDecimal JavaDoc value, org.omg.CORBA.TypeCode JavaDoc type) throws org.omg.CORBA.BAD_INV_ORDER JavaDoc {
111         throw new org.omg.CORBA.NO_IMPLEMENT JavaDoc();
112     }
113 }
114
115
116
Popular Tags