38 |
|
|
39 |
package org.omg.CORBA; |
package org.omg.CORBA; |
40 |
|
|
|
import java.io.Serializable; |
|
|
|
|
41 |
import org.omg.CORBA.TypeCodePackage.BadKind; |
import org.omg.CORBA.TypeCodePackage.BadKind; |
42 |
import org.omg.CORBA.portable.IDLEntity; |
import org.omg.CORBA.portable.IDLEntity; |
43 |
|
|
44 |
|
import java.io.Serializable; |
45 |
|
|
46 |
/** |
/** |
47 |
* An information about a CORBA data type. |
* An information about a CORBA data type. |
48 |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
57 |
private static final long serialVersionUID = -6521025782489515676L; |
private static final long serialVersionUID = -6521025782489515676L; |
58 |
|
|
59 |
/** |
/** |
60 |
* Returns the concrete base type for this TypeCode. |
* For value types that support inheritance this method returns the |
61 |
* @return a TypeCode, defining the concrete base type for this |
* of the ancestor type code. |
62 |
* Typecode. |
* |
63 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind |
* @return the ancestor TypeCode. |
64 |
|
* |
65 |
|
* @throws BadKind for all typecodes except the value type typecodes. |
66 |
*/ |
*/ |
67 |
public abstract TypeCode concrete_base_type() |
public abstract TypeCode concrete_base_type() |
68 |
throws BadKind; |
throws BadKind; |
71 |
* For sequences, arrays, aliases and value boxes, returns the IDL type for |
* For sequences, arrays, aliases and value boxes, returns the IDL type for |
72 |
* the members of the object. |
* the members of the object. |
73 |
* @return a TypeCode of the memebers of this type. |
* @return a TypeCode of the memebers of this type. |
74 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind for types other than |
* @throws BadKind for types other than |
75 |
* sequences, arrays, aliases and value boxes. |
* sequences, arrays, aliases and value boxes. |
76 |
*/ |
*/ |
77 |
public abstract TypeCode content_type() |
public abstract TypeCode content_type() |
81 |
* For unions, returs the index of the default member. |
* For unions, returs the index of the default member. |
82 |
* @return the index of the default member, -1 if there is |
* @return the index of the default member, -1 if there is |
83 |
* no default member. |
* no default member. |
84 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this type is not |
* @throws BadKind if this type is not |
85 |
* a union. |
* a union. |
86 |
*/ |
*/ |
87 |
public abstract int default_index() |
public abstract int default_index() |
90 |
/** |
/** |
91 |
* Returs definition of member labels for untions |
* Returs definition of member labels for untions |
92 |
* @return a TypeCode, describing all non-default member labels. |
* @return a TypeCode, describing all non-default member labels. |
93 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this type is not a |
* @throws BadKind if this type is not a |
94 |
* union. |
* union. |
95 |
*/ |
*/ |
96 |
public abstract TypeCode discriminator_type() |
public abstract TypeCode discriminator_type() |
97 |
throws BadKind; |
throws BadKind; |
98 |
|
|
99 |
/** |
/** |
100 |
* Test two types for equality. The default implementation |
* Test two types for equality. |
101 |
* returs true of the types of the same kind. |
* |
102 |
* @param other the other type to compere with |
* @param other the other type to compere with |
103 |
* @return true if the types are interchangeable. |
* @return true if the types are interchangeable. |
104 |
*/ |
*/ |
114 |
/** |
/** |
115 |
* For the fixed type, returns the number of digits. |
* For the fixed type, returns the number of digits. |
116 |
* @return the number of digits for the fixed type |
* @return the number of digits for the fixed type |
117 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this is not a fixed |
* @throws BadKind if this is not a fixed |
118 |
* type. |
* type. |
119 |
*/ |
*/ |
120 |
public abstract short fixed_digits() |
public abstract short fixed_digits() |
125 |
* positive (the number of digits to the right of the decimal point) or |
* positive (the number of digits to the right of the decimal point) or |
126 |
* negative (adds zeros to the left of the decimal point). |
* negative (adds zeros to the left of the decimal point). |
127 |
* @return the scale. |
* @return the scale. |
128 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this is not a fixed |
* @throws BadKind if this is not a fixed |
129 |
* type. |
* type. |
130 |
*/ |
*/ |
131 |
public abstract short fixed_scale() |
public abstract short fixed_scale() |
142 |
* Returns the RepositoryId globally identifying the type, defined by |
* Returns the RepositoryId globally identifying the type, defined by |
143 |
* this TypeCode. |
* this TypeCode. |
144 |
* @return tje RepositoryId. In some cases, it may be an empty string. |
* @return tje RepositoryId. In some cases, it may be an empty string. |
145 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind if the type is other than |
* @throws BadKind if the type is other than |
146 |
* reference, structure, union, enumeration, alias, exception, valuetype, |
* reference, structure, union, enumeration, alias, exception, valuetype, |
147 |
* boxed valuetype and also native and abstract interfaces. |
* boxed valuetype and also native and abstract interfaces. |
148 |
*/ |
*/ |
163 |
* |
* |
164 |
* @return length or bound |
* @return length or bound |
165 |
* |
* |
166 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind for types other than |
* @throws BadKind for types other than |
167 |
* string, sequence and array. |
* string, sequence and array. |
168 |
*/ |
*/ |
169 |
public abstract int length() |
public abstract int length() |
173 |
* Returns the number of type memebers. |
* Returns the number of type memebers. |
174 |
* |
* |
175 |
* @return the number of memebers |
* @return the number of memebers |
176 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind for types other than |
* @throws BadKind for types other than |
177 |
* structure, union, enumeration or exception. |
* structure, union, enumeration or exception. |
178 |
*/ |
*/ |
179 |
public abstract int member_count() |
public abstract int member_count() |
187 |
* |
* |
188 |
* @return the label |
* @return the label |
189 |
* |
* |
190 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this is not a union |
* @throws BadKind if this is not a union |
191 |
* type. |
* type. |
192 |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
193 |
* valid bounds. |
* valid bounds. |
194 |
*/ |
*/ |
195 |
public abstract Any member_label(int index) |
public abstract Any member_label(int index) |
196 |
throws BadKind, |
throws BadKind, |
197 |
org.omg.CORBA.TypeCodePackage.Bounds; |
org.omg.CORBA.TypeCodePackage.Bounds; |
198 |
|
|
199 |
/** |
/** |
200 |
* Retrieves the simple name of the member identified by the given index. |
* Retrieves the simple name of the member identified by the given index. |
203 |
* |
* |
204 |
* @return the member name that in some cases can be an empty string. |
* @return the member name that in some cases can be an empty string. |
205 |
* |
* |
206 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind for types other than |
* @throws BadKind for types other than |
207 |
* structure, union or enumeration. |
* structure, union or enumeration. |
208 |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
209 |
* valid bounds. |
* valid bounds. |
210 |
*/ |
*/ |
211 |
public abstract String member_name(int index) |
public abstract String member_name(int index) |
212 |
throws BadKind, |
throws BadKind, |
213 |
org.omg.CORBA.TypeCodePackage.Bounds; |
org.omg.CORBA.TypeCodePackage.Bounds; |
214 |
|
|
215 |
/** |
/** |
216 |
* Retrieves the member type of the member identified by the given index. |
* Retrieves the member type of the member identified by the given index. |
219 |
* |
* |
220 |
* @return the member type. |
* @return the member type. |
221 |
* |
* |
222 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind for types other than |
* @throws BadKind for types other than |
223 |
* structure, union, enumeration or exception. |
* structure, union, enumeration or exception. |
224 |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
225 |
* valid bounds. |
* valid bounds. |
226 |
*/ |
*/ |
227 |
public abstract TypeCode member_type(int index) |
public abstract TypeCode member_type(int index) |
228 |
throws BadKind, |
throws BadKind, |
229 |
org.omg.CORBA.TypeCodePackage.Bounds; |
org.omg.CORBA.TypeCodePackage.Bounds; |
230 |
|
|
231 |
/** |
/** |
232 |
* Returns the visibility scope of the member at the given index. |
* Returns the visibility scope of the member at the given index. |
236 |
* |
* |
237 |
* @return either PRIVATE_MEMBER.value or PUBLIC_MEMBER.value |
* @return either PRIVATE_MEMBER.value or PUBLIC_MEMBER.value |
238 |
* |
* |
239 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind if this is not a non boxed |
* @throws BadKind if this is not a non boxed |
240 |
* value type. |
* value type. |
241 |
* |
* |
242 |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
* @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is out of |
243 |
* valid bounds. |
* valid bounds. |
244 |
*/ |
*/ |
245 |
public abstract short member_visibility(int index) |
public abstract short member_visibility(int index) |
246 |
throws BadKind, |
throws BadKind, |
247 |
org.omg.CORBA.TypeCodePackage.Bounds; |
org.omg.CORBA.TypeCodePackage.Bounds; |
|
|
|
248 |
|
|
249 |
/** |
/** |
250 |
* Retrieves the simple name identifying this TypeCode object |
* Retrieves the simple name identifying this TypeCode object |
251 |
* within its enclosing scope. |
* within its enclosing scope. |
252 |
* @return the name, can be an empty string. |
* @return the name, can be an empty string. |
253 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind for typer other than |
* @throws BadKind for typer other than |
254 |
* reference, structure, union, enumeration, alias, exception, |
* reference, structure, union, enumeration, alias, exception, |
255 |
* valuetype, boxed valuetype, native, and abstract interface |
* valuetype, boxed valuetype, native, and abstract interface |
256 |
*/ |
*/ |
264 |
* VM_NONE.value, VM_ABSTRACT.value, VM_CUSTOM.value, or |
* VM_NONE.value, VM_ABSTRACT.value, VM_CUSTOM.value, or |
265 |
* VM_TRUNCATABLE.value, |
* VM_TRUNCATABLE.value, |
266 |
* |
* |
267 |
* @throws org.omg.CORBA.TypeCodePackage.BadKind for types other than |
* @throws BadKind for all types other than value type. |
|
* value type. |
|
268 |
*/ |
*/ |
269 |
public abstract short type_modifier() |
public abstract short type_modifier() |
270 |
throws BadKind; |
throws BadKind; |
271 |
} |
} |