KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > DynamicAny > DynEnumOperations


1 package org.omg.DynamicAny;
2
3
4 /**
5 * org/omg/DynamicAny/DynEnumOperations.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
8 * Saturday, February 9, 2008 9:40:12 AM GMT
9 */

10
11
12 /**
13     * DynEnum objects support the manipulation of IDL enumerated values.
14     * The current position of a DynEnum is always -1.
15     */

16 public interface DynEnumOperations extends org.omg.DynamicAny.DynAnyOperations JavaDoc
17 {
18
19   /**
20         * Returns the value of the DynEnum as an IDL identifier.
21         */

22   String JavaDoc get_as_string ();
23
24   /**
25         * Sets the value of the DynEnum to the enumerated value whose IDL identifier is passed in the value parameter.
26         *
27         * @exception InvalidValue If value contains a string that is not a valid IDL identifier
28         * for the corresponding enumerated type
29         */

30   void set_as_string (String JavaDoc value) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc;
31
32   /**
33         * Returns the value of the DynEnum as the enumerated value's ordinal value.
34         * Enumerators have ordinal values 0 to n-1, as they appear from left to right
35         * in the corresponding IDL definition.
36         */

37   int get_as_ulong ();
38
39   /**
40         * Sets the value of the DynEnum as the enumerated value's ordinal value.
41         *
42         * @exception InvalidValue If value contains a value that is outside the range of ordinal values
43         * for the corresponding enumerated type
44         */

45   void set_as_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue JavaDoc;
46 } // interface DynEnumOperations
47
Popular Tags