# OpenORB 1.3.1: Class UnionDefHolder

## org.omg.CORBA
Class UnionDefHolder

    java.lang.Object
      |
      +--org.omg.CORBA.UnionDefHolder

All Implemented Interfaces:
  Streamable

public final class UnionDefHolder
extends java.lang.Object
implements Streamable

Holder class for : UnionDef

Author:
  OpenORB Compiler

Field Summary
`UnionDef` `value` Internal UnionDef value

Constructor Summary
`UnionDefHolder()` Default constructor
`UnionDefHolder(UnionDef initial)` Constructor with value initialisation

Method Summary
`void` `_read(InputStream istream)` Read UnionDef from a marshalled stream
`TypeCode` `_type()` Return the UnionDef TypeCode
`void` `_write(OutputStream ostream)` Write UnionDef into a marshalled stream

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### value

    public UnionDef value

  Internal UnionDef value

Constructor Detail

### UnionDefHolder

    public UnionDefHolder()

  Default constructor

### UnionDefHolder

    public UnionDefHolder(UnionDef initial)

  Constructor with value initialisation
  Parameters:
    `initial` - the initial value

Method Detail

### _read

    public void _read(InputStream istream)

  Read UnionDef from a marshalled stream
  Specified by:
    `_read` in interface `Streamable`
  Parameters:
    `istream` - the input stream

### _write

    public void _write(OutputStream ostream)

  Write UnionDef into a marshalled stream
  Specified by:
    `_write` in interface `Streamable`
  Parameters:
    `ostream` - the output stream

### _type

    public TypeCode _type()

  Return the UnionDef TypeCode
  Specified by:
    `_type` in interface `Streamable`
  Returns:
    a TypeCode