// javastubs/Test1/TheOOStub.java
// Stubs for "Test1"
//
// This file was automatically generated with ILU (version 2.0beta1) tools
// at Tue Sep 21 11:45:19 1999 by `nobody'
// running "c:/iluwin/bin/java-stubber.exe" of Tue Sep 21 10:50:42 1999
// on "C:/iluwin/examples/test1/Test1.isl" of Mon Sep 20 15:53:47 1999,
// and "c:/iluwin/interfaces/ilu.isl" of Mon Sep 20 15:51:47 1999.
//
// ILU is Copyright 1991-1999 Xerox Corporation, All Rights Reserved.
// ILU information:  ftp://ftp.parc.xerox.com/pub/ilu/ilu.html.



package Test1;


/** 
 * Helper class for an ILU otional type.
 */
public final class TheOOStub { //ilu-otional

    public static int _szFunc(xerox.ilu.IluCall _call, TheO1 _a) 
        throws org.omg.CORBA.SystemException
    {
        if (_a==null) {
            return _call.szOptional(false);
        } else {
            return _call.szOptional(true) + _call.szObject(((TheO1)_a), false, TheO1Stub.iluClass());
        }
    } //_szFunc

    public static void _outFunc(xerox.ilu.IluCall _call, TheO1 _a) 
        throws org.omg.CORBA.SystemException
    {
        if (_a==null) {
            _call.outOptional(false);
        } else {
            _call.outOptional(true);
            _call.outObject(((TheO1)_a), false, TheO1Stub.iluClass());
        }
    } //_outFunc

    public static TheO1 _inFunc(xerox.ilu.IluCall _call) 
        throws org.omg.CORBA.SystemException
    {
        if (_call.inOptional()) {
            return (TheO1) _call.inObject(false, TheO1Stub.iluClass());
        } else {
            return (null);
        }
    } //_inFunc

    static {
        xerox.ilu.IluTypeRep __t = xerox.ilu.IluTypeRep.registerOptionalType(
            "TheOO", //name
            "Test1", //islIfName
            null, //islIfBrand
            "ilut:kBkIIR2Z0knBf7vayO5kAr5l4Vu", //uid
            "ilut:bGjdcettshy6cm6YOP2TDh6IVF4"); //baseUID
    } //static
} //TheOOStub
