All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.DynamicAny.DynUnionHolder Maven / Gradle / Ivy

package org.omg.DynamicAny;

/**
* org/omg/DynamicAny/DynUnionHolder.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /home/tomek/workspace/openjdk-orb/src/share/classes/org/omg/DynamicAny/DynamicAny.idl
* Thursday, June 22, 2023 7:19:19 PM CEST
*/


/**
    * 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. */ public final class DynUnionHolder implements org.omg.CORBA.portable.Streamable { public org.omg.DynamicAny.DynUnion value = null; public DynUnionHolder () { } public DynUnionHolder (org.omg.DynamicAny.DynUnion initialValue) { value = initialValue; } public void _read (org.omg.CORBA.portable.InputStream i) { value = org.omg.DynamicAny.DynUnionHelper.read (i); } public void _write (org.omg.CORBA.portable.OutputStream o) { org.omg.DynamicAny.DynUnionHelper.write (o, value); } public org.omg.CORBA.TypeCode _type () { return org.omg.DynamicAny.DynUnionHelper.type (); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy