org.omg.DynamicAny
Class DynUnionHelper
java.lang.Object
|
+--org.omg.DynamicAny.DynUnionHelper
- public abstract class DynUnionHelper
- extends Object
DynUnion objects support the manipulation of IDL unions.
A union can have only two valid current positions:
- zero, which denotes the discriminator
- one, which denotes the active member
The component_count value for a union depends on the current discriminator:
it is 2 for a union whose discriminator indicates a named member, and 1 otherwise.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynUnionHelper
public DynUnionHelper()
insert
public static void insert(Any a,
DynUnion that)
extract
public static DynUnion extract(Any a)
type
public static TypeCode type()
id
public static String id()
read
public static DynUnion read(InputStream istream)
write
public static void write(OutputStream ostream,
DynUnion value)
narrow
public static DynUnion narrow(Object obj)
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.