KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)DynEnum.java 1.13 04/05/18
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8
9 package org.omg.CORBA;
10
11 /** Represents a <tt>DynAny</tt> object associated
12  * with an IDL enum.
13  * @deprecated Use the new <a HREF="../DynamicAny/DynEnum.html">DynEnum</a> instead
14  */

15 @Deprecated JavaDoc
16 public interface DynEnum extends org.omg.CORBA.Object JavaDoc, org.omg.CORBA.DynAny JavaDoc
17 {
18     /**
19      * Return the value of the IDL enum stored in this
20      * <code>DynEnum</code> as a string.
21      *
22      * @return the stringified value.
23      */

24     public String JavaDoc value_as_string();
25
26     /**
27      * Set a particular enum in this <code>DynEnum</code>.
28      *
29      * @param arg the string corresponding to the value.
30      */

31     public void value_as_string(String JavaDoc arg);
32
33     /**
34      * Return the value of the IDL enum as a Java int.
35      *
36      * @return the integer value.
37      */

38     public int value_as_ulong();
39
40     /**
41      * Set the value of the IDL enum.
42      *
43      * @param arg the int value of the enum.
44      */

45     public void value_as_ulong(int arg);
46 }
47
Popular Tags