1 - ======================= IDL file xmltest_dep 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentDescHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "CharacteristicComponentDesc". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class CharacteristicComponentDescHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(CharacteristicComponentDescHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest_dep.CharacteristicComponentDescHelper.id(),"CharacteristicComponentDesc",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("characteristic_component_ref", org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/CharacteristicComponent:1.0", "CharacteristicComponent"), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.CharacteristicComponentDesc s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest_dep.CharacteristicComponentDesc extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/CharacteristicComponentDesc:1.0"; 1 - } 1 - public static alma.xmltest_dep.CharacteristicComponentDesc read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest_dep.CharacteristicComponentDesc result = new alma.xmltest_dep.CharacteristicComponentDesc(); 1 - result.characteristic_component_ref=alma.xmltest_dep.CharacteristicComponentHelper.read(in); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest_dep.CharacteristicComponentDesc s) 1 - { 1 - alma.xmltest_dep.CharacteristicComponentHelper.write(out,s.characteristic_component_ref); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentDescHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "CharacteristicComponentDesc". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class CharacteristicComponentDescHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest_dep.CharacteristicComponentDesc value; 1 - 1 - public CharacteristicComponentDescHolder () 1 - { 1 - } 1 - public CharacteristicComponentDescHolder(final alma.xmltest_dep.CharacteristicComponentDesc initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest_dep.CharacteristicComponentDescHelper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest_dep.CharacteristicComponentDescHelper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest_dep.CharacteristicComponentDescHelper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentDesc.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "CharacteristicComponentDesc". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class CharacteristicComponentDesc 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public CharacteristicComponentDesc(){} 1 - public alma.xmltest_dep.CharacteristicComponent characteristic_component_ref; 1 - public CharacteristicComponentDesc(alma.xmltest_dep.CharacteristicComponent characteristic_component_ref) 1 - { 1 - this.characteristic_component_ref = characteristic_component_ref; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "CharacteristicComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class CharacteristicComponentHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(CharacteristicComponentHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/CharacteristicComponent:1.0", "CharacteristicComponent"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.CharacteristicComponent s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest_dep.CharacteristicComponent extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/CharacteristicComponent:1.0"; 1 - } 1 - public static CharacteristicComponent read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest_dep._CharacteristicComponentStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest_dep.CharacteristicComponent s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest_dep.CharacteristicComponent narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.CharacteristicComponent) 1 - { 1 - return (alma.xmltest_dep.CharacteristicComponent)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest_dep/CharacteristicComponent:1.0")) 1 - { 1 - alma.xmltest_dep._CharacteristicComponentStub stub; 1 - stub = new alma.xmltest_dep._CharacteristicComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest_dep.CharacteristicComponent unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.CharacteristicComponent) 1 - { 1 - return (alma.xmltest_dep.CharacteristicComponent)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest_dep._CharacteristicComponentStub stub; 1 - stub = new alma.xmltest_dep._CharacteristicComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "CharacteristicComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class CharacteristicComponentHolder implements org.omg.CORBA.portable.Streamable{ 1 - public CharacteristicComponent value; 1 - public CharacteristicComponentHolder() 1 - { 1 - } 1 - public CharacteristicComponentHolder (final CharacteristicComponent initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return CharacteristicComponentHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = CharacteristicComponentHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - CharacteristicComponentHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponent.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "CharacteristicComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface CharacteristicComponent 1 - extends CharacteristicComponentOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentOperations.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "CharacteristicComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface CharacteristicComponentOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.xmltest_dep.CharacteristicComponentDesc descriptor(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentPOA.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "CharacteristicComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class CharacteristicComponentPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest_dep.CharacteristicComponentOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "descriptor", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest_dep/CharacteristicComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest_dep.CharacteristicComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.CharacteristicComponent __r = alma.xmltest_dep.CharacteristicComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.CharacteristicComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.CharacteristicComponent __r = alma.xmltest_dep.CharacteristicComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // descriptor 1 - { 1 - _out = handler.createReply(); 1 - alma.xmltest_dep.CharacteristicComponentDescHelper.write(_out,descriptor()); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/CharacteristicComponentPOATie.java 1 - package alma.xmltest_dep; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "CharacteristicComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class CharacteristicComponentPOATie 1 - extends CharacteristicComponentPOA 1 - { 1 - private CharacteristicComponentOperations _delegate; 1 - 1 - private POA _poa; 1 - public CharacteristicComponentPOATie(CharacteristicComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public CharacteristicComponentPOATie(CharacteristicComponentOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest_dep.CharacteristicComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.CharacteristicComponent __r = alma.xmltest_dep.CharacteristicComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.CharacteristicComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.CharacteristicComponent __r = alma.xmltest_dep.CharacteristicComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public CharacteristicComponentOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(CharacteristicComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public alma.xmltest_dep.CharacteristicComponentDesc descriptor() 1 - { 1 - return _delegate.descriptor(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/_CharacteristicComponentStub.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "CharacteristicComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _CharacteristicComponentStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest_dep.CharacteristicComponent 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest_dep/CharacteristicComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest_dep.CharacteristicComponentOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - CharacteristicComponentOperations _localServant = (CharacteristicComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.xmltest_dep.CharacteristicComponentDesc descriptor() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "descriptor", true); 1 - _is = _invoke(_os); 1 - alma.xmltest_dep.CharacteristicComponentDesc _result = alma.xmltest_dep.CharacteristicComponentDescHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "descriptor", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - CharacteristicComponentOperations _localServant = (CharacteristicComponentOperations)_so.servant; 1 - alma.xmltest_dep.CharacteristicComponentDesc _result; 1 - try 1 - { 1 - _result = _localServant.descriptor(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - CharacteristicComponentOperations _localServant = (CharacteristicComponentOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/ObsProposalHelper.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL alias "ObsProposal". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class ObsProposalHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.fakexmlentity.XmlEntityStruct s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.fakexmlentity.XmlEntityStruct extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(ObsProposalHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest_dep.ObsProposalHelper.id(), "ObsProposal",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/ObsProposal:1.0"; 1 - } 1 - public static alma.fakexmlentity.XmlEntityStruct read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - _result=alma.fakexmlentity.XmlEntityStructHelper.read(_in); 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.fakexmlentity.XmlEntityStruct _s) 1 - { 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,_s); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/ObsProposalHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Holder class for IDL typedef alma.xmltest_dep.ObsProposal 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class ObsProposalHolder 1 - { 1 - public dummyentities.ObsProposal value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithStructHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class OffshootWithStructHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(OffshootWithStructHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/OffshootWithStruct:1.0", "OffshootWithStruct"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.OffshootWithStruct s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest_dep.OffshootWithStruct extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/OffshootWithStruct:1.0"; 1 - } 1 - public static OffshootWithStruct read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest_dep._OffshootWithStructStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest_dep.OffshootWithStruct s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest_dep.OffshootWithStruct narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.OffshootWithStruct) 1 - { 1 - return (alma.xmltest_dep.OffshootWithStruct)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest_dep/OffshootWithStruct:1.0")) 1 - { 1 - alma.xmltest_dep._OffshootWithStructStub stub; 1 - stub = new alma.xmltest_dep._OffshootWithStructStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest_dep.OffshootWithStruct unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.OffshootWithStruct) 1 - { 1 - return (alma.xmltest_dep.OffshootWithStruct)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest_dep._OffshootWithStructStub stub; 1 - stub = new alma.xmltest_dep._OffshootWithStructStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithStructHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class OffshootWithStructHolder implements org.omg.CORBA.portable.Streamable{ 1 - public OffshootWithStruct value; 1 - public OffshootWithStructHolder() 1 - { 1 - } 1 - public OffshootWithStructHolder (final OffshootWithStruct initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return OffshootWithStructHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = OffshootWithStructHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - OffshootWithStructHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithStruct.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface OffshootWithStruct 1 - extends OffshootWithStructOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.OffShoot 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithStructOperations.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface OffshootWithStructOperations 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - void takeThatStruct(alma.xmltest_dep.StructWithOffshoot yourStruct); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithStructPOA.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class OffshootWithStructPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest_dep.OffshootWithStructOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "takeThatStruct", Integer.valueOf(0)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest_dep/OffshootWithStruct:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public alma.xmltest_dep.OffshootWithStruct _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.OffshootWithStruct __r = alma.xmltest_dep.OffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.OffshootWithStruct _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.OffshootWithStruct __r = alma.xmltest_dep.OffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // takeThatStruct 1 - { 1 - alma.xmltest_dep.StructWithOffshoot _arg0=alma.xmltest_dep.StructWithOffshootHelper.read(_input); 1 - _out = handler.createReply(); 1 - takeThatStruct(_arg0); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithStructPOATie.java 1 - package alma.xmltest_dep; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class OffshootWithStructPOATie 1 - extends OffshootWithStructPOA 1 - { 1 - private OffshootWithStructOperations _delegate; 1 - 1 - private POA _poa; 1 - public OffshootWithStructPOATie(OffshootWithStructOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public OffshootWithStructPOATie(OffshootWithStructOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest_dep.OffshootWithStruct _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.OffshootWithStruct __r = alma.xmltest_dep.OffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.OffshootWithStruct _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.OffshootWithStruct __r = alma.xmltest_dep.OffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public OffshootWithStructOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(OffshootWithStructOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public void takeThatStruct(alma.xmltest_dep.StructWithOffshoot yourStruct) 1 - { 1 - _delegate.takeThatStruct(yourStruct); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/_OffshootWithStructStub.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _OffshootWithStructStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest_dep.OffshootWithStruct 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest_dep/OffshootWithStruct:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest_dep.OffshootWithStructOperations.class; 1 - public void takeThatStruct(alma.xmltest_dep.StructWithOffshoot yourStruct) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "takeThatStruct", true); 1 - alma.xmltest_dep.StructWithOffshootHelper.write(_os,yourStruct); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "takeThatStruct", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - OffshootWithStructOperations _localServant = (OffshootWithStructOperations)_so.servant; 1 - try 1 - { 1 - _localServant.takeThatStruct(yourStruct); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithXmlStructHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class OffshootWithXmlStructHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(OffshootWithXmlStructHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/OffshootWithXmlStruct:1.0", "OffshootWithXmlStruct"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.OffshootWithXmlStruct s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest_dep.OffshootWithXmlStruct extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/OffshootWithXmlStruct:1.0"; 1 - } 1 - public static OffshootWithXmlStruct read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest_dep._OffshootWithXmlStructStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest_dep.OffshootWithXmlStruct s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest_dep.OffshootWithXmlStruct narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.OffshootWithXmlStruct) 1 - { 1 - return (alma.xmltest_dep.OffshootWithXmlStruct)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest_dep/OffshootWithXmlStruct:1.0")) 1 - { 1 - alma.xmltest_dep._OffshootWithXmlStructStub stub; 1 - stub = new alma.xmltest_dep._OffshootWithXmlStructStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest_dep.OffshootWithXmlStruct unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.OffshootWithXmlStruct) 1 - { 1 - return (alma.xmltest_dep.OffshootWithXmlStruct)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest_dep._OffshootWithXmlStructStub stub; 1 - stub = new alma.xmltest_dep._OffshootWithXmlStructStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithXmlStructHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class OffshootWithXmlStructHolder implements org.omg.CORBA.portable.Streamable{ 1 - public OffshootWithXmlStruct value; 1 - public OffshootWithXmlStructHolder() 1 - { 1 - } 1 - public OffshootWithXmlStructHolder (final OffshootWithXmlStruct initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return OffshootWithXmlStructHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = OffshootWithXmlStructHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - OffshootWithXmlStructHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithXmlStruct.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface OffshootWithXmlStruct 1 - extends OffshootWithXmlStructOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.OffShoot 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithXmlStructJ.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStructJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface OffshootWithXmlStructJ 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public void takeThatStruct(alma.xmltest_dep.XmlStructWithOffshootJ yourStruct); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithXmlStructOperations.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface OffshootWithXmlStructOperations 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - void takeThatStruct(alma.xmltest_dep.XmlStructWithOffshoot yourStruct); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithXmlStructPOA.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class OffshootWithXmlStructPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest_dep.OffshootWithXmlStructOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "takeThatStruct", Integer.valueOf(0)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest_dep/OffshootWithXmlStruct:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public alma.xmltest_dep.OffshootWithXmlStruct _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.OffshootWithXmlStruct __r = alma.xmltest_dep.OffshootWithXmlStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.OffshootWithXmlStruct _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.OffshootWithXmlStruct __r = alma.xmltest_dep.OffshootWithXmlStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // takeThatStruct 1 - { 1 - alma.xmltest_dep.XmlStructWithOffshoot _arg0=alma.xmltest_dep.XmlStructWithOffshootHelper.read(_input); 1 - _out = handler.createReply(); 1 - takeThatStruct(_arg0); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/OffshootWithXmlStructPOATie.java 1 - package alma.xmltest_dep; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class OffshootWithXmlStructPOATie 1 - extends OffshootWithXmlStructPOA 1 - { 1 - private OffshootWithXmlStructOperations _delegate; 1 - 1 - private POA _poa; 1 - public OffshootWithXmlStructPOATie(OffshootWithXmlStructOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public OffshootWithXmlStructPOATie(OffshootWithXmlStructOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest_dep.OffshootWithXmlStruct _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.OffshootWithXmlStruct __r = alma.xmltest_dep.OffshootWithXmlStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.OffshootWithXmlStruct _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.OffshootWithXmlStruct __r = alma.xmltest_dep.OffshootWithXmlStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public OffshootWithXmlStructOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(OffshootWithXmlStructOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public void takeThatStruct(alma.xmltest_dep.XmlStructWithOffshoot yourStruct) 1 - { 1 - _delegate.takeThatStruct(yourStruct); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/_OffshootWithXmlStructStub.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "OffshootWithXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _OffshootWithXmlStructStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest_dep.OffshootWithXmlStruct 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest_dep/OffshootWithXmlStruct:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest_dep.OffshootWithXmlStructOperations.class; 1 - public void takeThatStruct(alma.xmltest_dep.XmlStructWithOffshoot yourStruct) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "takeThatStruct", true); 1 - alma.xmltest_dep.XmlStructWithOffshootHelper.write(_os,yourStruct); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "takeThatStruct", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - OffshootWithXmlStructOperations _localServant = (OffshootWithXmlStructOperations)_so.servant; 1 - try 1 - { 1 - _localServant.takeThatStruct(yourStruct); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithOffshootHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "StructWithOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class StructWithOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(StructWithOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest_dep.StructWithOffshootHelper.id(),"StructWithOffshoot",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("myOffshoot", org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/OffshootWithStruct:1.0", "OffshootWithStruct"), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.StructWithOffshoot s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest_dep.StructWithOffshoot extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/StructWithOffshoot:1.0"; 1 - } 1 - public static alma.xmltest_dep.StructWithOffshoot read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest_dep.StructWithOffshoot result = new alma.xmltest_dep.StructWithOffshoot(); 1 - result.myOffshoot=alma.xmltest_dep.OffshootWithStructHelper.read(in); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest_dep.StructWithOffshoot s) 1 - { 1 - alma.xmltest_dep.OffshootWithStructHelper.write(out,s.myOffshoot); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithOffshootHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "StructWithOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructWithOffshootHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest_dep.StructWithOffshoot value; 1 - 1 - public StructWithOffshootHolder () 1 - { 1 - } 1 - public StructWithOffshootHolder(final alma.xmltest_dep.StructWithOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest_dep.StructWithOffshootHelper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest_dep.StructWithOffshootHelper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest_dep.StructWithOffshootHelper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithOffshoot.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "StructWithOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructWithOffshoot 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public StructWithOffshoot(){} 1 - public alma.xmltest_dep.OffshootWithStruct myOffshoot; 1 - public StructWithOffshoot(alma.xmltest_dep.OffshootWithStruct myOffshoot) 1 - { 1 - this.myOffshoot = myOffshoot; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithXmlOffshootHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "StructWithXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class StructWithXmlOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(StructWithXmlOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest_dep.StructWithXmlOffshootHelper.id(),"StructWithXmlOffshoot",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("myOffshoot", org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/XmlOffshootWithStruct:1.0", "XmlOffshootWithStruct"), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.StructWithXmlOffshoot s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest_dep.StructWithXmlOffshoot extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/StructWithXmlOffshoot:1.0"; 1 - } 1 - public static alma.xmltest_dep.StructWithXmlOffshoot read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest_dep.StructWithXmlOffshoot result = new alma.xmltest_dep.StructWithXmlOffshoot(); 1 - result.myOffshoot=alma.xmltest_dep.XmlOffshootWithStructHelper.read(in); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest_dep.StructWithXmlOffshoot s) 1 - { 1 - alma.xmltest_dep.XmlOffshootWithStructHelper.write(out,s.myOffshoot); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithXmlOffshootHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "StructWithXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructWithXmlOffshootHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest_dep.StructWithXmlOffshoot value; 1 - 1 - public StructWithXmlOffshootHolder () 1 - { 1 - } 1 - public StructWithXmlOffshootHolder(final alma.xmltest_dep.StructWithXmlOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest_dep.StructWithXmlOffshootHelper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest_dep.StructWithXmlOffshootHelper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest_dep.StructWithXmlOffshootHelper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithXmlOffshoot.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "StructWithXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructWithXmlOffshoot 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public StructWithXmlOffshoot(){} 1 - public alma.xmltest_dep.XmlOffshootWithStruct myOffshoot; 1 - public StructWithXmlOffshoot(alma.xmltest_dep.XmlOffshootWithStruct myOffshoot) 1 - { 1 - this.myOffshoot = myOffshoot; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithXmlOffshootJHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Holder class for IDL struct alma.xmltest_dep.StructWithXmlOffshoot 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class StructWithXmlOffshootJHolder 1 - { 1 - public alma.xmltest_dep.StructWithXmlOffshootJ value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/StructWithXmlOffshootJ.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Class for IDL struct alma.xmltest_dep.StructWithXmlOffshoot 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class StructWithXmlOffshootJ 1 - { 1 - public alma.xmltest_dep.XmlOffshootWithStructJ myOffshoot; 1 - 1 - public StructWithXmlOffshootJ() {} 1 - public StructWithXmlOffshootJ(alma.xmltest_dep.XmlOffshootWithStructJ myOffshoot) 1 - { 1 - this.myOffshoot = myOffshoot; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlOffshootWithStructHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshootWithStructHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlOffshootWithStructHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/XmlOffshootWithStruct:1.0", "XmlOffshootWithStruct"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.XmlOffshootWithStruct s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest_dep.XmlOffshootWithStruct extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/XmlOffshootWithStruct:1.0"; 1 - } 1 - public static XmlOffshootWithStruct read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest_dep._XmlOffshootWithStructStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest_dep.XmlOffshootWithStruct s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest_dep.XmlOffshootWithStruct narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.XmlOffshootWithStruct) 1 - { 1 - return (alma.xmltest_dep.XmlOffshootWithStruct)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest_dep/XmlOffshootWithStruct:1.0")) 1 - { 1 - alma.xmltest_dep._XmlOffshootWithStructStub stub; 1 - stub = new alma.xmltest_dep._XmlOffshootWithStructStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest_dep.XmlOffshootWithStruct unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest_dep.XmlOffshootWithStruct) 1 - { 1 - return (alma.xmltest_dep.XmlOffshootWithStruct)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest_dep._XmlOffshootWithStructStub stub; 1 - stub = new alma.xmltest_dep._XmlOffshootWithStructStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlOffshootWithStructHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlOffshootWithStructHolder implements org.omg.CORBA.portable.Streamable{ 1 - public XmlOffshootWithStruct value; 1 - public XmlOffshootWithStructHolder() 1 - { 1 - } 1 - public XmlOffshootWithStructHolder (final XmlOffshootWithStruct initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XmlOffshootWithStructHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XmlOffshootWithStructHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XmlOffshootWithStructHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlOffshootWithStruct.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootWithStruct 1 - extends XmlOffshootWithStructOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.OffShoot 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlOffshootWithStructJ.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStructJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootWithStructJ 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public void takeThatStruct(alma.xmltest_dep.StructWithXmlOffshootJ yourStruct); 1 - public dummyentities.ObsProposal getObsProposal(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlOffshootWithStructOperations.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootWithStructOperations 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - void takeThatStruct(alma.xmltest_dep.StructWithXmlOffshoot yourStruct); 1 - alma.fakexmlentity.XmlEntityStruct getObsProposal(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlOffshootWithStructPOA.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshootWithStructPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest_dep.XmlOffshootWithStructOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "takeThatStruct", Integer.valueOf(0)); 1 - m_opsHash.put ( "getObsProposal", Integer.valueOf(1)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest_dep/XmlOffshootWithStruct:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public alma.xmltest_dep.XmlOffshootWithStruct _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.XmlOffshootWithStruct __r = alma.xmltest_dep.XmlOffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.XmlOffshootWithStruct _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.XmlOffshootWithStruct __r = alma.xmltest_dep.XmlOffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // takeThatStruct 1 - { 1 - alma.xmltest_dep.StructWithXmlOffshoot _arg0=alma.xmltest_dep.StructWithXmlOffshootHelper.read(_input); 1 - _out = handler.createReply(); 1 - takeThatStruct(_arg0); 1 - break; 1 - } 1 - case 1: // getObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,getObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlOffshootWithStructPOATie.java 1 - package alma.xmltest_dep; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XmlOffshootWithStructPOATie 1 - extends XmlOffshootWithStructPOA 1 - { 1 - private XmlOffshootWithStructOperations _delegate; 1 - 1 - private POA _poa; 1 - public XmlOffshootWithStructPOATie(XmlOffshootWithStructOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XmlOffshootWithStructPOATie(XmlOffshootWithStructOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest_dep.XmlOffshootWithStruct _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest_dep.XmlOffshootWithStruct __r = alma.xmltest_dep.XmlOffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest_dep.XmlOffshootWithStruct _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest_dep.XmlOffshootWithStruct __r = alma.xmltest_dep.XmlOffshootWithStructHelper.narrow(__o); 1 - return __r; 1 - } 1 - public XmlOffshootWithStructOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XmlOffshootWithStructOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public void takeThatStruct(alma.xmltest_dep.StructWithXmlOffshoot yourStruct) 1 - { 1 - _delegate.takeThatStruct(yourStruct); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct getObsProposal() 1 - { 1 - return _delegate.getObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/_XmlOffshootWithStructStub.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootWithStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XmlOffshootWithStructStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest_dep.XmlOffshootWithStruct 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest_dep/XmlOffshootWithStruct:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest_dep.XmlOffshootWithStructOperations.class; 1 - public void takeThatStruct(alma.xmltest_dep.StructWithXmlOffshoot yourStruct) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "takeThatStruct", true); 1 - alma.xmltest_dep.StructWithXmlOffshootHelper.write(_os,yourStruct); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "takeThatStruct", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlOffshootWithStructOperations _localServant = (XmlOffshootWithStructOperations)_so.servant; 1 - try 1 - { 1 - _localServant.takeThatStruct(yourStruct); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct getObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlOffshootWithStructOperations _localServant = (XmlOffshootWithStructOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.getObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlStructWithOffshootHelper.java 1 - package alma.xmltest_dep; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "XmlStructWithOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlStructWithOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlStructWithOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest_dep.XmlStructWithOffshootHelper.id(),"XmlStructWithOffshoot",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("myOffshoot", org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest_dep/OffshootWithXmlStruct:1.0", "OffshootWithXmlStruct"), null),new org.omg.CORBA.StructMember("oopsProposal", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest_dep.ObsProposalHelper.id(), "ObsProposal",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest_dep.XmlStructWithOffshoot s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest_dep.XmlStructWithOffshoot extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest_dep/XmlStructWithOffshoot:1.0"; 1 - } 1 - public static alma.xmltest_dep.XmlStructWithOffshoot read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest_dep.XmlStructWithOffshoot result = new alma.xmltest_dep.XmlStructWithOffshoot(); 1 - result.myOffshoot=alma.xmltest_dep.OffshootWithXmlStructHelper.read(in); 1 - result.oopsProposal=alma.fakexmlentity.XmlEntityStructHelper.read(in); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest_dep.XmlStructWithOffshoot s) 1 - { 1 - alma.xmltest_dep.OffshootWithXmlStructHelper.write(out,s.myOffshoot); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(out,s.oopsProposal); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlStructWithOffshootHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "XmlStructWithOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlStructWithOffshootHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest_dep.XmlStructWithOffshoot value; 1 - 1 - public XmlStructWithOffshootHolder () 1 - { 1 - } 1 - public XmlStructWithOffshootHolder(final alma.xmltest_dep.XmlStructWithOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest_dep.XmlStructWithOffshootHelper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest_dep.XmlStructWithOffshootHelper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest_dep.XmlStructWithOffshootHelper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlStructWithOffshoot.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Generated from IDL struct "XmlStructWithOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlStructWithOffshoot 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public XmlStructWithOffshoot(){} 1 - public alma.xmltest_dep.OffshootWithXmlStruct myOffshoot; 1 - public alma.fakexmlentity.XmlEntityStruct oopsProposal; 1 - public XmlStructWithOffshoot(alma.xmltest_dep.OffshootWithXmlStruct myOffshoot, alma.fakexmlentity.XmlEntityStruct oopsProposal) 1 - { 1 - this.myOffshoot = myOffshoot; 1 - this.oopsProposal = oopsProposal; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlStructWithOffshootJHolder.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Holder class for IDL struct alma.xmltest_dep.XmlStructWithOffshoot 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class XmlStructWithOffshootJHolder 1 - { 1 - public alma.xmltest_dep.XmlStructWithOffshootJ value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest_dep/XmlStructWithOffshootJ.java 1 - package alma.xmltest_dep; 1 - 1 - /** 1 - * Class for IDL struct alma.xmltest_dep.XmlStructWithOffshoot 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class XmlStructWithOffshootJ 1 - { 1 - public alma.xmltest_dep.OffshootWithXmlStructJ myOffshoot; 1 - public dummyentities.ObsProposal oopsProposal; 1 - 1 - public XmlStructWithOffshootJ() {} 1 - public XmlStructWithOffshootJ(alma.xmltest_dep.OffshootWithXmlStructJ myOffshoot, dummyentities.ObsProposal oopsProposal) 1 - { 1 - this.myOffshoot = myOffshoot; 1 - this.oopsProposal = oopsProposal; 1 - } 1 - } 1 - 1 - ======================= IDL file xmltest 1 - 1 - ----------------------- Java file ./alma/xmltest/EvenMoreHiddenEntityClassHelper.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL alias "EvenMoreHiddenEntityClass". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class EvenMoreHiddenEntityClassHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.fakexmlentity.XmlEntityStruct[] s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.fakexmlentity.XmlEntityStruct[] extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(EvenMoreHiddenEntityClassHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.EvenMoreHiddenEntityClassHelper.id(), "EvenMoreHiddenEntityClass",org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.SchedBlockSeqHelper.id(), "SchedBlockSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, alma.xmltest.SchedBlockHelper.type()))); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/EvenMoreHiddenEntityClass:1.0"; 1 - } 1 - public static alma.fakexmlentity.XmlEntityStruct[] read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.fakexmlentity.XmlEntityStruct[] _result; 1 - _result = alma.xmltest.SchedBlockSeqHelper.read(_in); 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.fakexmlentity.XmlEntityStruct[] _s) 1 - { 1 - alma.xmltest.SchedBlockSeqHelper.write(_out,_s); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/EvenMoreHiddenEntityClassJHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Holder class for IDL typedef alma.xmltest.EvenMoreHiddenEntityClass 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class EvenMoreHiddenEntityClassJHolder 1 - { 1 - public dummyentities.SchedBlock[] value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/IFWithIndirectEntityUsageHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsage". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class IFWithIndirectEntityUsageHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(IFWithIndirectEntityUsageHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/IFWithIndirectEntityUsage:1.0", "IFWithIndirectEntityUsage"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.IFWithIndirectEntityUsage s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.IFWithIndirectEntityUsage extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/IFWithIndirectEntityUsage:1.0"; 1 - } 1 - public static IFWithIndirectEntityUsage read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._IFWithIndirectEntityUsageStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.IFWithIndirectEntityUsage s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.IFWithIndirectEntityUsage narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.IFWithIndirectEntityUsage) 1 - { 1 - return (alma.xmltest.IFWithIndirectEntityUsage)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/IFWithIndirectEntityUsage:1.0")) 1 - { 1 - alma.xmltest._IFWithIndirectEntityUsageStub stub; 1 - stub = new alma.xmltest._IFWithIndirectEntityUsageStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.IFWithIndirectEntityUsage unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.IFWithIndirectEntityUsage) 1 - { 1 - return (alma.xmltest.IFWithIndirectEntityUsage)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._IFWithIndirectEntityUsageStub stub; 1 - stub = new alma.xmltest._IFWithIndirectEntityUsageStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/IFWithIndirectEntityUsageHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsage". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class IFWithIndirectEntityUsageHolder implements org.omg.CORBA.portable.Streamable{ 1 - public IFWithIndirectEntityUsage value; 1 - public IFWithIndirectEntityUsageHolder() 1 - { 1 - } 1 - public IFWithIndirectEntityUsageHolder (final IFWithIndirectEntityUsage initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return IFWithIndirectEntityUsageHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = IFWithIndirectEntityUsageHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - IFWithIndirectEntityUsageHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/IFWithIndirectEntityUsage.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsage". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface IFWithIndirectEntityUsage 1 - extends IFWithIndirectEntityUsageOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/IFWithIndirectEntityUsageJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsageJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface IFWithIndirectEntityUsageJ 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public dummyentities.SchedBlock[] methodWithEntitySequence(); 1 - public void methodWithHiddenEntitySequence(EvenMoreHiddenEntityClassJHolder outThing); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/IFWithIndirectEntityUsageOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsage". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface IFWithIndirectEntityUsageOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.fakexmlentity.XmlEntityStruct[] methodWithEntitySequence(); 1 - void methodWithHiddenEntitySequence(alma.xmltest.SchedBlockSeqHolder outThing); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/IFWithIndirectEntityUsagePOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsage". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class IFWithIndirectEntityUsagePOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.IFWithIndirectEntityUsageOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "methodWithEntitySequence", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - m_opsHash.put ( "methodWithHiddenEntitySequence", Integer.valueOf(3)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/IFWithIndirectEntityUsage:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.IFWithIndirectEntityUsage _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.IFWithIndirectEntityUsage __r = alma.xmltest.IFWithIndirectEntityUsageHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.IFWithIndirectEntityUsage _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.IFWithIndirectEntityUsage __r = alma.xmltest.IFWithIndirectEntityUsageHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // methodWithEntitySequence 1 - { 1 - _out = handler.createReply(); 1 - alma.xmltest.SchedBlockSeqHelper.write(_out,methodWithEntitySequence()); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - case 3: // methodWithHiddenEntitySequence 1 - { 1 - alma.xmltest.SchedBlockSeqHolder _arg0= new alma.xmltest.SchedBlockSeqHolder(); 1 - _out = handler.createReply(); 1 - methodWithHiddenEntitySequence(_arg0); 1 - alma.xmltest.SchedBlockSeqHelper.write(_out,_arg0.value); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/IFWithIndirectEntityUsagePOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsage". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class IFWithIndirectEntityUsagePOATie 1 - extends IFWithIndirectEntityUsagePOA 1 - { 1 - private IFWithIndirectEntityUsageOperations _delegate; 1 - 1 - private POA _poa; 1 - public IFWithIndirectEntityUsagePOATie(IFWithIndirectEntityUsageOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public IFWithIndirectEntityUsagePOATie(IFWithIndirectEntityUsageOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.IFWithIndirectEntityUsage _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.IFWithIndirectEntityUsage __r = alma.xmltest.IFWithIndirectEntityUsageHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.IFWithIndirectEntityUsage _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.IFWithIndirectEntityUsage __r = alma.xmltest.IFWithIndirectEntityUsageHelper.narrow(__o); 1 - return __r; 1 - } 1 - public IFWithIndirectEntityUsageOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(IFWithIndirectEntityUsageOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct[] methodWithEntitySequence() 1 - { 1 - return _delegate.methodWithEntitySequence(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - public void methodWithHiddenEntitySequence(alma.xmltest.SchedBlockSeqHolder outThing) 1 - { 1 - _delegate.methodWithHiddenEntitySequence(outThing); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_IFWithIndirectEntityUsageStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "IFWithIndirectEntityUsage". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _IFWithIndirectEntityUsageStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.IFWithIndirectEntityUsage 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/IFWithIndirectEntityUsage:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.IFWithIndirectEntityUsageOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - IFWithIndirectEntityUsageOperations _localServant = (IFWithIndirectEntityUsageOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct[] methodWithEntitySequence() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "methodWithEntitySequence", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct[] _result = alma.xmltest.SchedBlockSeqHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "methodWithEntitySequence", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - IFWithIndirectEntityUsageOperations _localServant = (IFWithIndirectEntityUsageOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct[] _result; 1 - try 1 - { 1 - _result = _localServant.methodWithEntitySequence(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - IFWithIndirectEntityUsageOperations _localServant = (IFWithIndirectEntityUsageOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public void methodWithHiddenEntitySequence(alma.xmltest.SchedBlockSeqHolder outThing) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "methodWithHiddenEntitySequence", true); 1 - _is = _invoke(_os); 1 - outThing.value = alma.xmltest.SchedBlockSeqHelper.read(_is); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "methodWithHiddenEntitySequence", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - IFWithIndirectEntityUsageOperations _localServant = (IFWithIndirectEntityUsageOperations)_so.servant; 1 - try 1 - { 1 - _localServant.methodWithHiddenEntitySequence(outThing); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/MyBaseInterfaceHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "MyBaseInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class MyBaseInterfaceHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(MyBaseInterfaceHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/MyBaseInterface:1.0", "MyBaseInterface"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.MyBaseInterface s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.MyBaseInterface extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/MyBaseInterface:1.0"; 1 - } 1 - public static MyBaseInterface read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._MyBaseInterfaceStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.MyBaseInterface s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.MyBaseInterface narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.MyBaseInterface) 1 - { 1 - return (alma.xmltest.MyBaseInterface)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/MyBaseInterface:1.0")) 1 - { 1 - alma.xmltest._MyBaseInterfaceStub stub; 1 - stub = new alma.xmltest._MyBaseInterfaceStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.MyBaseInterface unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.MyBaseInterface) 1 - { 1 - return (alma.xmltest.MyBaseInterface)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._MyBaseInterfaceStub stub; 1 - stub = new alma.xmltest._MyBaseInterfaceStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/MyBaseInterfaceHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "MyBaseInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class MyBaseInterfaceHolder implements org.omg.CORBA.portable.Streamable{ 1 - public MyBaseInterface value; 1 - public MyBaseInterfaceHolder() 1 - { 1 - } 1 - public MyBaseInterfaceHolder (final MyBaseInterface initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return MyBaseInterfaceHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = MyBaseInterfaceHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - MyBaseInterfaceHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/MyBaseInterface.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "MyBaseInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface MyBaseInterface 1 - extends MyBaseInterfaceOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/MyBaseInterfaceOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "MyBaseInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface MyBaseInterfaceOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - float radius(); 1 - void radius(float arg); 1 - void someDumbMethod(java.lang.String stupidArg); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/MyBaseInterfacePOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "MyBaseInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class MyBaseInterfacePOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.MyBaseInterfaceOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_radius", Integer.valueOf(0)); 1 - m_opsHash.put ( "someDumbMethod", Integer.valueOf(1)); 1 - m_opsHash.put ( "_set_radius", Integer.valueOf(2)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/MyBaseInterface:1.0"}; 1 - public alma.xmltest.MyBaseInterface _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.MyBaseInterface __r = alma.xmltest.MyBaseInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.MyBaseInterface _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.MyBaseInterface __r = alma.xmltest.MyBaseInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_radius 1 - { 1 - _out = handler.createReply(); 1 - _out.write_float(radius()); 1 - break; 1 - } 1 - case 1: // someDumbMethod 1 - { 1 - java.lang.String _arg0=_input.read_string(); 1 - _out = handler.createReply(); 1 - someDumbMethod(_arg0); 1 - break; 1 - } 1 - case 2: // _set_radius 1 - { 1 - _out = handler.createReply(); 1 - radius(_input.read_float()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/MyBaseInterfacePOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "MyBaseInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class MyBaseInterfacePOATie 1 - extends MyBaseInterfacePOA 1 - { 1 - private MyBaseInterfaceOperations _delegate; 1 - 1 - private POA _poa; 1 - public MyBaseInterfacePOATie(MyBaseInterfaceOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public MyBaseInterfacePOATie(MyBaseInterfaceOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.MyBaseInterface _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.MyBaseInterface __r = alma.xmltest.MyBaseInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.MyBaseInterface _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.MyBaseInterface __r = alma.xmltest.MyBaseInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public MyBaseInterfaceOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(MyBaseInterfaceOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public float radius() 1 - { 1 - return _delegate.radius(); 1 - } 1 - 1 - public void someDumbMethod(java.lang.String stupidArg) 1 - { 1 - _delegate.someDumbMethod(stupidArg); 1 - } 1 - 1 - public void radius(float a) 1 - { 1 - _delegate.radius(a); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_MyBaseInterfaceStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "MyBaseInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _MyBaseInterfaceStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.MyBaseInterface 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/MyBaseInterface:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.MyBaseInterfaceOperations.class; 1 - public float radius() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_radius",true); 1 - _is = _invoke(_os); 1 - return _is.read_float(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_radius", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - MyBaseInterfaceOperations _localServant = (MyBaseInterfaceOperations)_so.servant; 1 - float _result; 1 - try 1 - { 1 - _result = _localServant.radius(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public void someDumbMethod(java.lang.String stupidArg) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "someDumbMethod", true); 1 - java.lang.String tmpResultxxx = stupidArg; 1 - _os.write_string( tmpResultxxx ); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "someDumbMethod", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - MyBaseInterfaceOperations _localServant = (MyBaseInterfaceOperations)_so.servant; 1 - try 1 - { 1 - _localServant.someDumbMethod(stupidArg); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public void radius(float a) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_set_radius",true); 1 - _os.write_float(a); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_set_radius", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - MyBaseInterfaceOperations _localServant = (MyBaseInterfaceOperations)_so.servant; 1 - try 1 - { 1 - _localServant.radius(a); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonComponentUsingXmlOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonComponentUsingXmlOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NonComponentUsingXmlOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/NonComponentUsingXmlOffshoot:1.0", "NonComponentUsingXmlOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.NonComponentUsingXmlOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.NonComponentUsingXmlOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/NonComponentUsingXmlOffshoot:1.0"; 1 - } 1 - public static NonComponentUsingXmlOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._NonComponentUsingXmlOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.NonComponentUsingXmlOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.NonComponentUsingXmlOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NonComponentUsingXmlOffshoot) 1 - { 1 - return (alma.xmltest.NonComponentUsingXmlOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/NonComponentUsingXmlOffshoot:1.0")) 1 - { 1 - alma.xmltest._NonComponentUsingXmlOffshootStub stub; 1 - stub = new alma.xmltest._NonComponentUsingXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.NonComponentUsingXmlOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NonComponentUsingXmlOffshoot) 1 - { 1 - return (alma.xmltest.NonComponentUsingXmlOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._NonComponentUsingXmlOffshootStub stub; 1 - stub = new alma.xmltest._NonComponentUsingXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonComponentUsingXmlOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NonComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NonComponentUsingXmlOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public NonComponentUsingXmlOffshoot value; 1 - public NonComponentUsingXmlOffshootHolder() 1 - { 1 - } 1 - public NonComponentUsingXmlOffshootHolder (final NonComponentUsingXmlOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return NonComponentUsingXmlOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = NonComponentUsingXmlOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - NonComponentUsingXmlOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonComponentUsingXmlOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NonComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NonComponentUsingXmlOffshoot 1 - extends NonComponentUsingXmlOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonComponentUsingXmlOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NonComponentUsingXmlOffshootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.xmltest.XmlOffshoot getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonComponentUsingXmlOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonComponentUsingXmlOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.NonComponentUsingXmlOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "getOffshoot", Integer.valueOf(0)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/NonComponentUsingXmlOffshoot:1.0"}; 1 - public alma.xmltest.NonComponentUsingXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NonComponentUsingXmlOffshoot __r = alma.xmltest.NonComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NonComponentUsingXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NonComponentUsingXmlOffshoot __r = alma.xmltest.NonComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // getOffshoot 1 - { 1 - _out = handler.createReply(); 1 - alma.xmltest.XmlOffshootHelper.write(_out,getOffshoot()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonComponentUsingXmlOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "NonComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class NonComponentUsingXmlOffshootPOATie 1 - extends NonComponentUsingXmlOffshootPOA 1 - { 1 - private NonComponentUsingXmlOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public NonComponentUsingXmlOffshootPOATie(NonComponentUsingXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public NonComponentUsingXmlOffshootPOATie(NonComponentUsingXmlOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.NonComponentUsingXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NonComponentUsingXmlOffshoot __r = alma.xmltest.NonComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NonComponentUsingXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NonComponentUsingXmlOffshoot __r = alma.xmltest.NonComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public NonComponentUsingXmlOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(NonComponentUsingXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public alma.xmltest.XmlOffshoot getOffshoot() 1 - { 1 - return _delegate.getOffshoot(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_NonComponentUsingXmlOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _NonComponentUsingXmlOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.NonComponentUsingXmlOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/NonComponentUsingXmlOffshoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.NonComponentUsingXmlOffshootOperations.class; 1 - public alma.xmltest.XmlOffshoot getOffshoot() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getOffshoot", true); 1 - _is = _invoke(_os); 1 - alma.xmltest.XmlOffshoot _result = alma.xmltest.XmlOffshootHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getOffshoot", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - NonComponentUsingXmlOffshootOperations _localServant = (NonComponentUsingXmlOffshootOperations)_so.servant; 1 - alma.xmltest.XmlOffshoot _result; 1 - try 1 - { 1 - _result = _localServant.getOffshoot(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLAcsComponentHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonXMLAcsComponentHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NonXMLAcsComponentHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/NonXMLAcsComponent:1.0", "NonXMLAcsComponent"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.NonXMLAcsComponent s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.NonXMLAcsComponent extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/NonXMLAcsComponent:1.0"; 1 - } 1 - public static NonXMLAcsComponent read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._NonXMLAcsComponentStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.NonXMLAcsComponent s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.NonXMLAcsComponent narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NonXMLAcsComponent) 1 - { 1 - return (alma.xmltest.NonXMLAcsComponent)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/NonXMLAcsComponent:1.0")) 1 - { 1 - alma.xmltest._NonXMLAcsComponentStub stub; 1 - stub = new alma.xmltest._NonXMLAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.NonXMLAcsComponent unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NonXMLAcsComponent) 1 - { 1 - return (alma.xmltest.NonXMLAcsComponent)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._NonXMLAcsComponentStub stub; 1 - stub = new alma.xmltest._NonXMLAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLAcsComponentHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NonXMLAcsComponentHolder implements org.omg.CORBA.portable.Streamable{ 1 - public NonXMLAcsComponent value; 1 - public NonXMLAcsComponentHolder() 1 - { 1 - } 1 - public NonXMLAcsComponentHolder (final NonXMLAcsComponent initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return NonXMLAcsComponentHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = NonXMLAcsComponentHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - NonXMLAcsComponentHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLAcsComponent.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NonXMLAcsComponent 1 - extends NonXMLAcsComponentOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLAcsComponentOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NonXMLAcsComponentOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - java.lang.String sayHello(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLAcsComponentPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonXMLAcsComponentPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.NonXMLAcsComponentOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "sayHello", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/NonXMLAcsComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.NonXMLAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NonXMLAcsComponent __r = alma.xmltest.NonXMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NonXMLAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NonXMLAcsComponent __r = alma.xmltest.NonXMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // sayHello 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = sayHello(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLAcsComponentPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class NonXMLAcsComponentPOATie 1 - extends NonXMLAcsComponentPOA 1 - { 1 - private NonXMLAcsComponentOperations _delegate; 1 - 1 - private POA _poa; 1 - public NonXMLAcsComponentPOATie(NonXMLAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public NonXMLAcsComponentPOATie(NonXMLAcsComponentOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.NonXMLAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NonXMLAcsComponent __r = alma.xmltest.NonXMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NonXMLAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NonXMLAcsComponent __r = alma.xmltest.NonXMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public NonXMLAcsComponentOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(NonXMLAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public java.lang.String sayHello() 1 - { 1 - return _delegate.sayHello(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_NonXMLAcsComponentStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _NonXMLAcsComponentStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.NonXMLAcsComponent 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/NonXMLAcsComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.NonXMLAcsComponentOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NonXMLAcsComponentOperations _localServant = (NonXMLAcsComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public java.lang.String sayHello() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "sayHello", true); 1 - _is = _invoke(_os); 1 - java.lang.String _result = _is.read_string(); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "sayHello", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - NonXMLAcsComponentOperations _localServant = (NonXMLAcsComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.sayHello(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NonXMLAcsComponentOperations _localServant = (NonXMLAcsComponentOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLIndirectAcsComponentHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLIndirectAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonXMLIndirectAcsComponentHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NonXMLIndirectAcsComponentHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/NonXMLIndirectAcsComponent:1.0", "NonXMLIndirectAcsComponent"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.NonXMLIndirectAcsComponent s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.NonXMLIndirectAcsComponent extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/NonXMLIndirectAcsComponent:1.0"; 1 - } 1 - public static NonXMLIndirectAcsComponent read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._NonXMLIndirectAcsComponentStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.NonXMLIndirectAcsComponent s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.NonXMLIndirectAcsComponent narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NonXMLIndirectAcsComponent) 1 - { 1 - return (alma.xmltest.NonXMLIndirectAcsComponent)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/NonXMLIndirectAcsComponent:1.0")) 1 - { 1 - alma.xmltest._NonXMLIndirectAcsComponentStub stub; 1 - stub = new alma.xmltest._NonXMLIndirectAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.NonXMLIndirectAcsComponent unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NonXMLIndirectAcsComponent) 1 - { 1 - return (alma.xmltest.NonXMLIndirectAcsComponent)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._NonXMLIndirectAcsComponentStub stub; 1 - stub = new alma.xmltest._NonXMLIndirectAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLIndirectAcsComponentHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLIndirectAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NonXMLIndirectAcsComponentHolder implements org.omg.CORBA.portable.Streamable{ 1 - public NonXMLIndirectAcsComponent value; 1 - public NonXMLIndirectAcsComponentHolder() 1 - { 1 - } 1 - public NonXMLIndirectAcsComponentHolder (final NonXMLIndirectAcsComponent initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return NonXMLIndirectAcsComponentHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = NonXMLIndirectAcsComponentHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - NonXMLIndirectAcsComponentHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLIndirectAcsComponent.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLIndirectAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NonXMLIndirectAcsComponent 1 - extends NonXMLIndirectAcsComponentOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.xmltest.NonXMLAcsComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLIndirectAcsComponentOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLIndirectAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NonXMLIndirectAcsComponentOperations 1 - extends alma.xmltest.NonXMLAcsComponentOperations 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLIndirectAcsComponentPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLIndirectAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonXMLIndirectAcsComponentPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.NonXMLIndirectAcsComponentOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "sayHello", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/NonXMLIndirectAcsComponent:1.0","IDL:alma/xmltest/NonXMLAcsComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.NonXMLIndirectAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NonXMLIndirectAcsComponent __r = alma.xmltest.NonXMLIndirectAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NonXMLIndirectAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NonXMLIndirectAcsComponent __r = alma.xmltest.NonXMLIndirectAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // sayHello 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = sayHello(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXMLIndirectAcsComponentPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLIndirectAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class NonXMLIndirectAcsComponentPOATie 1 - extends NonXMLIndirectAcsComponentPOA 1 - { 1 - private NonXMLIndirectAcsComponentOperations _delegate; 1 - 1 - private POA _poa; 1 - public NonXMLIndirectAcsComponentPOATie(NonXMLIndirectAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public NonXMLIndirectAcsComponentPOATie(NonXMLIndirectAcsComponentOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.NonXMLIndirectAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NonXMLIndirectAcsComponent __r = alma.xmltest.NonXMLIndirectAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NonXMLIndirectAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NonXMLIndirectAcsComponent __r = alma.xmltest.NonXMLIndirectAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public NonXMLIndirectAcsComponentOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(NonXMLIndirectAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public java.lang.String sayHello() 1 - { 1 - return _delegate.sayHello(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_NonXMLIndirectAcsComponentStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NonXMLIndirectAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _NonXMLIndirectAcsComponentStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.NonXMLIndirectAcsComponent 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/NonXMLIndirectAcsComponent:1.0","IDL:alma/xmltest/NonXMLAcsComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.NonXMLIndirectAcsComponentOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NonXMLIndirectAcsComponentOperations _localServant = (NonXMLIndirectAcsComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public java.lang.String sayHello() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "sayHello", true); 1 - _is = _invoke(_os); 1 - java.lang.String _result = _is.read_string(); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "sayHello", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - NonXMLIndirectAcsComponentOperations _localServant = (NonXMLIndirectAcsComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.sayHello(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NonXMLIndirectAcsComponentOperations _localServant = (NonXMLIndirectAcsComponentOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXmlStructHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "NonXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonXmlStructHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NonXmlStructHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.NonXmlStructHelper.id(),"NonXmlStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("mem1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("mem2", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(8)), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.NonXmlStruct s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest.NonXmlStruct extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/NonXmlStruct:1.0"; 1 - } 1 - public static alma.xmltest.NonXmlStruct read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest.NonXmlStruct result = new alma.xmltest.NonXmlStruct(); 1 - result.mem1=in.read_string(); 1 - result.mem2=in.read_boolean(); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest.NonXmlStruct s) 1 - { 1 - java.lang.String tmpResultxxx = s.mem1; 1 - out.write_string( tmpResultxxx ); 1 - out.write_boolean(s.mem2); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXmlStructHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL struct "NonXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NonXmlStructHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest.NonXmlStruct value; 1 - 1 - public NonXmlStructHolder () 1 - { 1 - } 1 - public NonXmlStructHolder(final alma.xmltest.NonXmlStruct initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest.NonXmlStructHelper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest.NonXmlStructHelper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest.NonXmlStructHelper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NonXmlStruct.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL struct "NonXmlStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NonXmlStruct 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public NonXmlStruct(){} 1 - public java.lang.String mem1 = ""; 1 - public boolean mem2; 1 - public NonXmlStruct(java.lang.String mem1, boolean mem2) 1 - { 1 - this.mem1 = mem1; 1 - this.mem2 = mem2; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingNormalOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NormalComponentUsingNormalOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NormalComponentUsingNormalOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/NormalComponentUsingNormalOffshoot:1.0", "NormalComponentUsingNormalOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.NormalComponentUsingNormalOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.NormalComponentUsingNormalOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/NormalComponentUsingNormalOffshoot:1.0"; 1 - } 1 - public static NormalComponentUsingNormalOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._NormalComponentUsingNormalOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.NormalComponentUsingNormalOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.NormalComponentUsingNormalOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NormalComponentUsingNormalOffshoot) 1 - { 1 - return (alma.xmltest.NormalComponentUsingNormalOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/NormalComponentUsingNormalOffshoot:1.0")) 1 - { 1 - alma.xmltest._NormalComponentUsingNormalOffshootStub stub; 1 - stub = new alma.xmltest._NormalComponentUsingNormalOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.NormalComponentUsingNormalOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NormalComponentUsingNormalOffshoot) 1 - { 1 - return (alma.xmltest.NormalComponentUsingNormalOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._NormalComponentUsingNormalOffshootStub stub; 1 - stub = new alma.xmltest._NormalComponentUsingNormalOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingNormalOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NormalComponentUsingNormalOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public NormalComponentUsingNormalOffshoot value; 1 - public NormalComponentUsingNormalOffshootHolder() 1 - { 1 - } 1 - public NormalComponentUsingNormalOffshootHolder (final NormalComponentUsingNormalOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return NormalComponentUsingNormalOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = NormalComponentUsingNormalOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - NormalComponentUsingNormalOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingNormalOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NormalComponentUsingNormalOffshoot 1 - extends NormalComponentUsingNormalOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingNormalOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NormalComponentUsingNormalOffshootOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.xmltest.NoXmlOffshoot getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingNormalOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NormalComponentUsingNormalOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.NormalComponentUsingNormalOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "getOffshoot", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/NormalComponentUsingNormalOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.NormalComponentUsingNormalOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NormalComponentUsingNormalOffshoot __r = alma.xmltest.NormalComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NormalComponentUsingNormalOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NormalComponentUsingNormalOffshoot __r = alma.xmltest.NormalComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // getOffshoot 1 - { 1 - _out = handler.createReply(); 1 - alma.xmltest.NoXmlOffshootHelper.write(_out,getOffshoot()); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingNormalOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class NormalComponentUsingNormalOffshootPOATie 1 - extends NormalComponentUsingNormalOffshootPOA 1 - { 1 - private NormalComponentUsingNormalOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public NormalComponentUsingNormalOffshootPOATie(NormalComponentUsingNormalOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public NormalComponentUsingNormalOffshootPOATie(NormalComponentUsingNormalOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.NormalComponentUsingNormalOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NormalComponentUsingNormalOffshoot __r = alma.xmltest.NormalComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NormalComponentUsingNormalOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NormalComponentUsingNormalOffshoot __r = alma.xmltest.NormalComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public NormalComponentUsingNormalOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(NormalComponentUsingNormalOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public alma.xmltest.NoXmlOffshoot getOffshoot() 1 - { 1 - return _delegate.getOffshoot(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_NormalComponentUsingNormalOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _NormalComponentUsingNormalOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.NormalComponentUsingNormalOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/NormalComponentUsingNormalOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.NormalComponentUsingNormalOffshootOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NormalComponentUsingNormalOffshootOperations _localServant = (NormalComponentUsingNormalOffshootOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.xmltest.NoXmlOffshoot getOffshoot() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getOffshoot", true); 1 - _is = _invoke(_os); 1 - alma.xmltest.NoXmlOffshoot _result = alma.xmltest.NoXmlOffshootHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getOffshoot", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - NormalComponentUsingNormalOffshootOperations _localServant = (NormalComponentUsingNormalOffshootOperations)_so.servant; 1 - alma.xmltest.NoXmlOffshoot _result; 1 - try 1 - { 1 - _result = _localServant.getOffshoot(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NormalComponentUsingNormalOffshootOperations _localServant = (NormalComponentUsingNormalOffshootOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingXmlOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NormalComponentUsingXmlOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NormalComponentUsingXmlOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/NormalComponentUsingXmlOffshoot:1.0", "NormalComponentUsingXmlOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.NormalComponentUsingXmlOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.NormalComponentUsingXmlOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/NormalComponentUsingXmlOffshoot:1.0"; 1 - } 1 - public static NormalComponentUsingXmlOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._NormalComponentUsingXmlOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.NormalComponentUsingXmlOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.NormalComponentUsingXmlOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NormalComponentUsingXmlOffshoot) 1 - { 1 - return (alma.xmltest.NormalComponentUsingXmlOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/NormalComponentUsingXmlOffshoot:1.0")) 1 - { 1 - alma.xmltest._NormalComponentUsingXmlOffshootStub stub; 1 - stub = new alma.xmltest._NormalComponentUsingXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.NormalComponentUsingXmlOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NormalComponentUsingXmlOffshoot) 1 - { 1 - return (alma.xmltest.NormalComponentUsingXmlOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._NormalComponentUsingXmlOffshootStub stub; 1 - stub = new alma.xmltest._NormalComponentUsingXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingXmlOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NormalComponentUsingXmlOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public NormalComponentUsingXmlOffshoot value; 1 - public NormalComponentUsingXmlOffshootHolder() 1 - { 1 - } 1 - public NormalComponentUsingXmlOffshootHolder (final NormalComponentUsingXmlOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return NormalComponentUsingXmlOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = NormalComponentUsingXmlOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - NormalComponentUsingXmlOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingXmlOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NormalComponentUsingXmlOffshoot 1 - extends NormalComponentUsingXmlOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingXmlOffshootJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshootJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NormalComponentUsingXmlOffshootJ 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public alma.xmltest.XmlOffshootJ getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingXmlOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NormalComponentUsingXmlOffshootOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.xmltest.XmlOffshoot getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingXmlOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NormalComponentUsingXmlOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.NormalComponentUsingXmlOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "getOffshoot", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/NormalComponentUsingXmlOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.NormalComponentUsingXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NormalComponentUsingXmlOffshoot __r = alma.xmltest.NormalComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NormalComponentUsingXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NormalComponentUsingXmlOffshoot __r = alma.xmltest.NormalComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // getOffshoot 1 - { 1 - _out = handler.createReply(); 1 - alma.xmltest.XmlOffshootHelper.write(_out,getOffshoot()); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NormalComponentUsingXmlOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class NormalComponentUsingXmlOffshootPOATie 1 - extends NormalComponentUsingXmlOffshootPOA 1 - { 1 - private NormalComponentUsingXmlOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public NormalComponentUsingXmlOffshootPOATie(NormalComponentUsingXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public NormalComponentUsingXmlOffshootPOATie(NormalComponentUsingXmlOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.NormalComponentUsingXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NormalComponentUsingXmlOffshoot __r = alma.xmltest.NormalComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NormalComponentUsingXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NormalComponentUsingXmlOffshoot __r = alma.xmltest.NormalComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public NormalComponentUsingXmlOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(NormalComponentUsingXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public alma.xmltest.XmlOffshoot getOffshoot() 1 - { 1 - return _delegate.getOffshoot(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_NormalComponentUsingXmlOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NormalComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _NormalComponentUsingXmlOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.NormalComponentUsingXmlOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/NormalComponentUsingXmlOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.NormalComponentUsingXmlOffshootOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NormalComponentUsingXmlOffshootOperations _localServant = (NormalComponentUsingXmlOffshootOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.xmltest.XmlOffshoot getOffshoot() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getOffshoot", true); 1 - _is = _invoke(_os); 1 - alma.xmltest.XmlOffshoot _result = alma.xmltest.XmlOffshootHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getOffshoot", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - NormalComponentUsingXmlOffshootOperations _localServant = (NormalComponentUsingXmlOffshootOperations)_so.servant; 1 - alma.xmltest.XmlOffshoot _result; 1 - try 1 - { 1 - _result = _localServant.getOffshoot(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - NormalComponentUsingXmlOffshootOperations _localServant = (NormalComponentUsingXmlOffshootOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NoXmlOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NoXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NoXmlOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NoXmlOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/NoXmlOffshoot:1.0", "NoXmlOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.NoXmlOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.NoXmlOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/NoXmlOffshoot:1.0"; 1 - } 1 - public static NoXmlOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._NoXmlOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.NoXmlOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.NoXmlOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NoXmlOffshoot) 1 - { 1 - return (alma.xmltest.NoXmlOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/NoXmlOffshoot:1.0")) 1 - { 1 - alma.xmltest._NoXmlOffshootStub stub; 1 - stub = new alma.xmltest._NoXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.NoXmlOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.NoXmlOffshoot) 1 - { 1 - return (alma.xmltest.NoXmlOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._NoXmlOffshootStub stub; 1 - stub = new alma.xmltest._NoXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NoXmlOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NoXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class NoXmlOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public NoXmlOffshoot value; 1 - public NoXmlOffshootHolder() 1 - { 1 - } 1 - public NoXmlOffshootHolder (final NoXmlOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return NoXmlOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = NoXmlOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - NoXmlOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NoXmlOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "NoXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NoXmlOffshoot 1 - extends NoXmlOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.OffShoot 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NoXmlOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NoXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface NoXmlOffshootOperations 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - void getNothing(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NoXmlOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NoXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NoXmlOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.NoXmlOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "getNothing", Integer.valueOf(0)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/NoXmlOffshoot:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public alma.xmltest.NoXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NoXmlOffshoot __r = alma.xmltest.NoXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NoXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NoXmlOffshoot __r = alma.xmltest.NoXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // getNothing 1 - { 1 - _out = handler.createReply(); 1 - getNothing(); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/NoXmlOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "NoXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class NoXmlOffshootPOATie 1 - extends NoXmlOffshootPOA 1 - { 1 - private NoXmlOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public NoXmlOffshootPOATie(NoXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public NoXmlOffshootPOATie(NoXmlOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.NoXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.NoXmlOffshoot __r = alma.xmltest.NoXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.NoXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.NoXmlOffshoot __r = alma.xmltest.NoXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public NoXmlOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(NoXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public void getNothing() 1 - { 1 - _delegate.getNothing(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_NoXmlOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "NoXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _NoXmlOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.NoXmlOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/NoXmlOffshoot:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.NoXmlOffshootOperations.class; 1 - public void getNothing() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getNothing", true); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getNothing", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - NoXmlOffshootOperations _localServant = (NoXmlOffshootOperations)_so.servant; 1 - try 1 - { 1 - _localServant.getNothing(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ObsProjectTreeHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "ObsProjectTree". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class ObsProjectTreeHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(ObsProjectTreeHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.ObsProjectTreeHelper.id(),"ObsProjectTree",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("prop", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ObsProposalHelper.id(), "ObsProposal",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})), null),new org.omg.CORBA.StructMember("schedBlocks", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.SchedBlockSeqHelper.id(), "SchedBlockSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, alma.xmltest.SchedBlockHelper.type())), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.ObsProjectTree s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest.ObsProjectTree extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/ObsProjectTree:1.0"; 1 - } 1 - public static alma.xmltest.ObsProjectTree read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest.ObsProjectTree result = new alma.xmltest.ObsProjectTree(); 1 - result.prop=alma.fakexmlentity.XmlEntityStructHelper.read(in); 1 - result.schedBlocks = alma.xmltest.SchedBlockSeqHelper.read(in); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest.ObsProjectTree s) 1 - { 1 - alma.fakexmlentity.XmlEntityStructHelper.write(out,s.prop); 1 - alma.xmltest.SchedBlockSeqHelper.write(out,s.schedBlocks); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ObsProjectTreeHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL struct "ObsProjectTree". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class ObsProjectTreeHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest.ObsProjectTree value; 1 - 1 - public ObsProjectTreeHolder () 1 - { 1 - } 1 - public ObsProjectTreeHolder(final alma.xmltest.ObsProjectTree initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest.ObsProjectTreeHelper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest.ObsProjectTreeHelper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest.ObsProjectTreeHelper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ObsProjectTree.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL struct "ObsProjectTree". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class ObsProjectTree 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public ObsProjectTree(){} 1 - public alma.fakexmlentity.XmlEntityStruct prop; 1 - public alma.fakexmlentity.XmlEntityStruct[] schedBlocks; 1 - public ObsProjectTree(alma.fakexmlentity.XmlEntityStruct prop, alma.fakexmlentity.XmlEntityStruct[] schedBlocks) 1 - { 1 - this.prop = prop; 1 - this.schedBlocks = schedBlocks; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ObsProjectTreeJHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Holder class for IDL struct alma.xmltest.ObsProjectTree 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class ObsProjectTreeJHolder 1 - { 1 - public alma.xmltest.ObsProjectTreeJ value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ObsProjectTreeJ.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Class for IDL struct alma.xmltest.ObsProjectTree 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class ObsProjectTreeJ 1 - { 1 - public dummyentities.ObsProposal prop; 1 - public dummyentities.SchedBlock[] schedBlocks; 1 - 1 - public ObsProjectTreeJ() {} 1 - public ObsProjectTreeJ(dummyentities.ObsProposal prop, dummyentities.SchedBlock[] schedBlocks) 1 - { 1 - this.prop = prop; 1 - this.schedBlocks = schedBlocks; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ObsProposalHelper.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL alias "ObsProposal". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class ObsProposalHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.fakexmlentity.XmlEntityStruct s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.fakexmlentity.XmlEntityStruct extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(ObsProposalHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ObsProposalHelper.id(), "ObsProposal",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/ObsProposal:1.0"; 1 - } 1 - public static alma.fakexmlentity.XmlEntityStruct read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - _result=alma.fakexmlentity.XmlEntityStructHelper.read(_in); 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.fakexmlentity.XmlEntityStruct _s) 1 - { 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,_s); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ObsProposalHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Holder class for IDL typedef alma.xmltest.ObsProposal 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class ObsProposalHolder 1 - { 1 - public dummyentities.ObsProposal value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfaceHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class ReturnInterfaceHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(ReturnInterfaceHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/ReturnInterface:1.0", "ReturnInterface"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.ReturnInterface s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.ReturnInterface extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/ReturnInterface:1.0"; 1 - } 1 - public static ReturnInterface read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._ReturnInterfaceStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.ReturnInterface s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.ReturnInterface narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.ReturnInterface) 1 - { 1 - return (alma.xmltest.ReturnInterface)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/ReturnInterface:1.0")) 1 - { 1 - alma.xmltest._ReturnInterfaceStub stub; 1 - stub = new alma.xmltest._ReturnInterfaceStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.ReturnInterface unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.ReturnInterface) 1 - { 1 - return (alma.xmltest.ReturnInterface)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._ReturnInterfaceStub stub; 1 - stub = new alma.xmltest._ReturnInterfaceStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfaceHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class ReturnInterfaceHolder implements org.omg.CORBA.portable.Streamable{ 1 - public ReturnInterface value; 1 - public ReturnInterfaceHolder() 1 - { 1 - } 1 - public ReturnInterfaceHolder (final ReturnInterface initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return ReturnInterfaceHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = ReturnInterfaceHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - ReturnInterfaceHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterface.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface ReturnInterface 1 - extends ReturnInterfaceOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfaceJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterfaceJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface ReturnInterfaceJ 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public dummyentities.ObsProposal createObsProposal(); 1 - public alma.xmltest.MyBaseInterface createBaseInterface(int pippo); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfaceOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface ReturnInterfaceOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.fakexmlentity.XmlEntityStruct createObsProposal(); 1 - alma.xmltest.MyBaseInterface createBaseInterface(int pippo); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/NonXmlStructTypedefHelper.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Generated from IDL alias "NonXmlStructTypedef". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class NonXmlStructTypedefHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.xmltest.NonXmlStruct s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.xmltest.NonXmlStruct extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(NonXmlStructTypedefHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ReturnInterfacePackage.NonXmlStructTypedefHelper.id(), "NonXmlStructTypedef",org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.NonXmlStructHelper.id(),"NonXmlStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("mem1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("mem2", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(8)), null)})); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/ReturnInterface/NonXmlStructTypedef:1.0"; 1 - } 1 - public static alma.xmltest.NonXmlStruct read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.xmltest.NonXmlStruct _result; 1 - _result=alma.xmltest.NonXmlStructHelper.read(_in); 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.xmltest.NonXmlStruct _s) 1 - { 1 - alma.xmltest.NonXmlStructHelper.write(_out,_s); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/ProjectTreeSeqHelper.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Generated from IDL alias "ProjectTreeSeq". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class ProjectTreeSeqHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.xmltest.ObsProjectTree[] s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.xmltest.ObsProjectTree[] extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(ProjectTreeSeqHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ReturnInterfacePackage.ProjectTreeSeqHelper.id(), "ProjectTreeSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.ObsProjectTreeHelper.id(),"ObsProjectTree",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("prop", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ObsProposalHelper.id(), "ObsProposal",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})), null),new org.omg.CORBA.StructMember("schedBlocks", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.SchedBlockSeqHelper.id(), "SchedBlockSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, alma.xmltest.SchedBlockHelper.type())), null)}))); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/ReturnInterface/ProjectTreeSeq:1.0"; 1 - } 1 - public static alma.xmltest.ObsProjectTree[] read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.xmltest.ObsProjectTree[] _result; 1 - int _l_result1 = _in.read_long(); 1 - try 1 - { 1 - int x = _in.available(); 1 - if ( x > 0 && _l_result1 > x ) 1 - { 1 - throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result1); 1 - } 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - } 1 - _result = new alma.xmltest.ObsProjectTree[_l_result1]; 1 - for (int i=0;i<_result.length;i++) 1 - { 1 - _result[i]=alma.xmltest.ObsProjectTreeHelper.read(_in); 1 - } 1 - 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.xmltest.ObsProjectTree[] _s) 1 - { 1 - 1 - _out.write_long(_s.length); 1 - for (int i=0; i<_s.length;i++) 1 - { 1 - alma.xmltest.ObsProjectTreeHelper.write(_out,_s[i]); 1 - } 1 - 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/ProjectTreeSeqHolder.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Generated from IDL alias "ProjectTreeSeq". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class ProjectTreeSeqHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest.ObsProjectTree[] value; 1 - 1 - public ProjectTreeSeqHolder () 1 - { 1 - } 1 - public ProjectTreeSeqHolder (final alma.xmltest.ObsProjectTree[] initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return ProjectTreeSeqHelper.type (); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = ProjectTreeSeqHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream out) 1 - { 1 - ProjectTreeSeqHelper.write (out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/ProjectTreeSeqJHolder.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Holder class for IDL typedef alma.xmltest.ReturnInterfacePackage.ProjectTreeSeq 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class ProjectTreeSeqJHolder 1 - { 1 - public alma.xmltest.ObsProjectTreeJ[] value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStruct2Helper.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "StructInsideInterfaceWithXmlViaMemberStruct2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class StructInsideInterfaceWithXmlViaMemberStruct2Helper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(StructInsideInterfaceWithXmlViaMemberStruct2Helper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2Helper.id(),"StructInsideInterfaceWithXmlViaMemberStruct2",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("normalStruct", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ReturnInterfacePackage.NonXmlStructTypedefHelper.id(), "NonXmlStructTypedef",org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.NonXmlStructHelper.id(),"NonXmlStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("mem1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("mem2", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(8)), null)})), null),new org.omg.CORBA.StructMember("projectTree", org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.ObsProjectTreeHelper.id(),"ObsProjectTree",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("prop", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ObsProposalHelper.id(), "ObsProposal",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})), null),new org.omg.CORBA.StructMember("schedBlocks", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.SchedBlockSeqHelper.id(), "SchedBlockSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, alma.xmltest.SchedBlockHelper.type())), null)}), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/ReturnInterface/StructInsideInterfaceWithXmlViaMemberStruct2:1.0"; 1 - } 1 - public static alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 result = new alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2(); 1 - result.normalStruct=alma.xmltest.NonXmlStructHelper.read(in); 1 - result.projectTree=alma.xmltest.ObsProjectTreeHelper.read(in); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 s) 1 - { 1 - alma.xmltest.NonXmlStructHelper.write(out,s.normalStruct); 1 - alma.xmltest.ObsProjectTreeHelper.write(out,s.projectTree); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStruct2Holder.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Generated from IDL struct "StructInsideInterfaceWithXmlViaMemberStruct2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructInsideInterfaceWithXmlViaMemberStruct2Holder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 value; 1 - 1 - public StructInsideInterfaceWithXmlViaMemberStruct2Holder () 1 - { 1 - } 1 - public StructInsideInterfaceWithXmlViaMemberStruct2Holder(final alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2Helper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2Helper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2Helper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStruct2.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Generated from IDL struct "StructInsideInterfaceWithXmlViaMemberStruct2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructInsideInterfaceWithXmlViaMemberStruct2 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public StructInsideInterfaceWithXmlViaMemberStruct2(){} 1 - public alma.xmltest.NonXmlStruct normalStruct; 1 - public alma.xmltest.ObsProjectTree projectTree; 1 - public StructInsideInterfaceWithXmlViaMemberStruct2(alma.xmltest.NonXmlStruct normalStruct, alma.xmltest.ObsProjectTree projectTree) 1 - { 1 - this.normalStruct = normalStruct; 1 - this.projectTree = projectTree; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStruct2JHolder.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Holder class for IDL struct alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class StructInsideInterfaceWithXmlViaMemberStruct2JHolder 1 - { 1 - public alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2J value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStruct2J.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Class for IDL struct alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct2 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class StructInsideInterfaceWithXmlViaMemberStruct2J 1 - { 1 - public alma.xmltest.NonXmlStruct normalStruct; 1 - public alma.xmltest.ObsProjectTreeJ projectTree; 1 - 1 - public StructInsideInterfaceWithXmlViaMemberStruct2J() {} 1 - public StructInsideInterfaceWithXmlViaMemberStruct2J(alma.xmltest.NonXmlStruct normalStruct, alma.xmltest.ObsProjectTreeJ projectTree) 1 - { 1 - this.normalStruct = normalStruct; 1 - this.projectTree = projectTree; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStructHelper.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - 1 - /** 1 - * Generated from IDL struct "StructInsideInterfaceWithXmlViaMemberStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class StructInsideInterfaceWithXmlViaMemberStructHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(StructInsideInterfaceWithXmlViaMemberStructHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStructHelper.id(),"StructInsideInterfaceWithXmlViaMemberStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("normalStruct", org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.NonXmlStructHelper.id(),"NonXmlStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("mem1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("mem2", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(8)), null)}), null),new org.omg.CORBA.StructMember("projectTrees", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ReturnInterfacePackage.ProjectTreeSeqHelper.id(), "ProjectTreeSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_struct_tc(alma.xmltest.ObsProjectTreeHelper.id(),"ObsProjectTree",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("prop", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.ObsProposalHelper.id(), "ObsProposal",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})), null),new org.omg.CORBA.StructMember("schedBlocks", org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.SchedBlockSeqHelper.id(), "SchedBlockSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, alma.xmltest.SchedBlockHelper.type())), null)}))), null)}); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct s) 1 - { 1 - any.type(type()); 1 - write( any.create_output_stream(),s); 1 - } 1 - 1 - public static alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct extract (final org.omg.CORBA.Any any) 1 - { 1 - org.omg.CORBA.portable.InputStream in = any.create_input_stream(); 1 - try 1 - { 1 - return read (in); 1 - } 1 - finally 1 - { 1 - try 1 - { 1 - in.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/ReturnInterface/StructInsideInterfaceWithXmlViaMemberStruct:1.0"; 1 - } 1 - public static alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct result = new alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct(); 1 - result.normalStruct=alma.xmltest.NonXmlStructHelper.read(in); 1 - result.projectTrees = alma.xmltest.ReturnInterfacePackage.ProjectTreeSeqHelper.read(in); 1 - return result; 1 - } 1 - public static void write (final org.omg.CORBA.portable.OutputStream out, final alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct s) 1 - { 1 - alma.xmltest.NonXmlStructHelper.write(out,s.normalStruct); 1 - alma.xmltest.ReturnInterfacePackage.ProjectTreeSeqHelper.write(out,s.projectTrees); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStructHolder.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Generated from IDL struct "StructInsideInterfaceWithXmlViaMemberStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructInsideInterfaceWithXmlViaMemberStructHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct value; 1 - 1 - public StructInsideInterfaceWithXmlViaMemberStructHolder () 1 - { 1 - } 1 - public StructInsideInterfaceWithXmlViaMemberStructHolder(final alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStructHelper.type (); 1 - } 1 - public void _read(final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - value = alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStructHelper.read(_in); 1 - } 1 - public void _write(final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStructHelper.write(_out, value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStruct.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Generated from IDL struct "StructInsideInterfaceWithXmlViaMemberStruct". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class StructInsideInterfaceWithXmlViaMemberStruct 1 - implements org.omg.CORBA.portable.IDLEntity 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - public StructInsideInterfaceWithXmlViaMemberStruct(){} 1 - public alma.xmltest.NonXmlStruct normalStruct; 1 - public alma.xmltest.ObsProjectTree[] projectTrees; 1 - public StructInsideInterfaceWithXmlViaMemberStruct(alma.xmltest.NonXmlStruct normalStruct, alma.xmltest.ObsProjectTree[] projectTrees) 1 - { 1 - this.normalStruct = normalStruct; 1 - this.projectTrees = projectTrees; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStructJHolder.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Holder class for IDL struct alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class StructInsideInterfaceWithXmlViaMemberStructJHolder 1 - { 1 - public alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStructJ value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePackage/StructInsideInterfaceWithXmlViaMemberStructJ.java 1 - package alma.xmltest.ReturnInterfacePackage; 1 - 1 - /** 1 - * Class for IDL struct alma.xmltest.ReturnInterfacePackage.StructInsideInterfaceWithXmlViaMemberStruct 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class StructInsideInterfaceWithXmlViaMemberStructJ 1 - { 1 - public alma.xmltest.NonXmlStruct normalStruct; 1 - public alma.xmltest.ObsProjectTreeJ[] projectTrees; 1 - 1 - public StructInsideInterfaceWithXmlViaMemberStructJ() {} 1 - public StructInsideInterfaceWithXmlViaMemberStructJ(alma.xmltest.NonXmlStruct normalStruct, alma.xmltest.ObsProjectTreeJ[] projectTrees) 1 - { 1 - this.normalStruct = normalStruct; 1 - this.projectTrees = projectTrees; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class ReturnInterfacePOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.ReturnInterfaceOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "createBaseInterface", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - m_opsHash.put ( "createObsProposal", Integer.valueOf(3)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/ReturnInterface:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.ReturnInterface _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.ReturnInterface __r = alma.xmltest.ReturnInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.ReturnInterface _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.ReturnInterface __r = alma.xmltest.ReturnInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // createBaseInterface 1 - { 1 - int _arg0=_input.read_long(); 1 - _out = handler.createReply(); 1 - alma.xmltest.MyBaseInterfaceHelper.write(_out,createBaseInterface(_arg0)); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - case 3: // createObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,createObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/ReturnInterfacePOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class ReturnInterfacePOATie 1 - extends ReturnInterfacePOA 1 - { 1 - private ReturnInterfaceOperations _delegate; 1 - 1 - private POA _poa; 1 - public ReturnInterfacePOATie(ReturnInterfaceOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public ReturnInterfacePOATie(ReturnInterfaceOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.ReturnInterface _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.ReturnInterface __r = alma.xmltest.ReturnInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.ReturnInterface _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.ReturnInterface __r = alma.xmltest.ReturnInterfaceHelper.narrow(__o); 1 - return __r; 1 - } 1 - public ReturnInterfaceOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(ReturnInterfaceOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public alma.xmltest.MyBaseInterface createBaseInterface(int pippo) 1 - { 1 - return _delegate.createBaseInterface(pippo); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - return _delegate.createObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_ReturnInterfaceStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "ReturnInterface". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _ReturnInterfaceStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.ReturnInterface 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/ReturnInterface:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.ReturnInterfaceOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - ReturnInterfaceOperations _localServant = (ReturnInterfaceOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.xmltest.MyBaseInterface createBaseInterface(int pippo) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "createBaseInterface", true); 1 - _os.write_long(pippo); 1 - _is = _invoke(_os); 1 - alma.xmltest.MyBaseInterface _result = alma.xmltest.MyBaseInterfaceHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "createBaseInterface", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - ReturnInterfaceOperations _localServant = (ReturnInterfaceOperations)_so.servant; 1 - alma.xmltest.MyBaseInterface _result; 1 - try 1 - { 1 - _result = _localServant.createBaseInterface(pippo); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - ReturnInterfaceOperations _localServant = (ReturnInterfaceOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "createObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "createObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - ReturnInterfaceOperations _localServant = (ReturnInterfaceOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.createObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/SchedBlockHelper.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL alias "SchedBlock". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class SchedBlockHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.fakexmlentity.XmlEntityStruct s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.fakexmlentity.XmlEntityStruct extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(SchedBlockHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.SchedBlockHelper.id(), "SchedBlock",org.omg.CORBA.ORB.init().create_struct_tc(alma.fakexmlentity.XmlEntityStructHelper.id(),"XmlEntityStruct",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("xmlString", org.omg.CORBA.ORB.init().create_wstring_tc(0), null)})); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/SchedBlock:1.0"; 1 - } 1 - public static alma.fakexmlentity.XmlEntityStruct read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - _result=alma.fakexmlentity.XmlEntityStructHelper.read(_in); 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.fakexmlentity.XmlEntityStruct _s) 1 - { 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,_s); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/SchedBlockHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Holder class for IDL typedef alma.xmltest.SchedBlock 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class SchedBlockHolder 1 - { 1 - public dummyentities.SchedBlock value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/SchedBlockSeqHelper.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL alias "SchedBlockSeq". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class SchedBlockSeqHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.fakexmlentity.XmlEntityStruct[] s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.fakexmlentity.XmlEntityStruct[] extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(SchedBlockSeqHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.SchedBlockSeqHelper.id(), "SchedBlockSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, alma.xmltest.SchedBlockHelper.type())); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/SchedBlockSeq:1.0"; 1 - } 1 - public static alma.fakexmlentity.XmlEntityStruct[] read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.fakexmlentity.XmlEntityStruct[] _result; 1 - int _l_result0 = _in.read_long(); 1 - try 1 - { 1 - int x = _in.available(); 1 - if ( x > 0 && _l_result0 > x ) 1 - { 1 - throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result0); 1 - } 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - } 1 - _result = new alma.fakexmlentity.XmlEntityStruct[_l_result0]; 1 - for (int i=0;i<_result.length;i++) 1 - { 1 - _result[i]=alma.fakexmlentity.XmlEntityStructHelper.read(_in); 1 - } 1 - 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.fakexmlentity.XmlEntityStruct[] _s) 1 - { 1 - 1 - _out.write_long(_s.length); 1 - for (int i=0; i<_s.length;i++) 1 - { 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,_s[i]); 1 - } 1 - 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/SchedBlockSeqHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL alias "SchedBlockSeq". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class SchedBlockSeqHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.fakexmlentity.XmlEntityStruct[] value; 1 - 1 - public SchedBlockSeqHolder () 1 - { 1 - } 1 - public SchedBlockSeqHolder (final alma.fakexmlentity.XmlEntityStruct[] initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return SchedBlockSeqHelper.type (); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = SchedBlockSeqHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream out) 1 - { 1 - SchedBlockSeqHelper.write (out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/SchedBlockSeqJHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Holder class for IDL typedef alma.xmltest.SchedBlockSeq 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class SchedBlockSeqJHolder 1 - { 1 - public dummyentities.SchedBlock[] value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLAcsComponentHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XMLAcsComponentHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XMLAcsComponentHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XMLAcsComponent:1.0", "XMLAcsComponent"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.XMLAcsComponent s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.XMLAcsComponent extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XMLAcsComponent:1.0"; 1 - } 1 - public static XMLAcsComponent read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._XMLAcsComponentStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.XMLAcsComponent s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.XMLAcsComponent narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XMLAcsComponent) 1 - { 1 - return (alma.xmltest.XMLAcsComponent)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/XMLAcsComponent:1.0")) 1 - { 1 - alma.xmltest._XMLAcsComponentStub stub; 1 - stub = new alma.xmltest._XMLAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.XMLAcsComponent unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XMLAcsComponent) 1 - { 1 - return (alma.xmltest.XMLAcsComponent)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._XMLAcsComponentStub stub; 1 - stub = new alma.xmltest._XMLAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLAcsComponentHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XMLAcsComponentHolder implements org.omg.CORBA.portable.Streamable{ 1 - public XMLAcsComponent value; 1 - public XMLAcsComponentHolder() 1 - { 1 - } 1 - public XMLAcsComponentHolder (final XMLAcsComponent initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XMLAcsComponentHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XMLAcsComponentHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XMLAcsComponentHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLAcsComponent.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XMLAcsComponent 1 - extends XMLAcsComponentOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLAcsComponentJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponentJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XMLAcsComponentJ 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public java.lang.String sayHello(); 1 - public dummyentities.ObsProposal createObsProposal(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLAcsComponentOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XMLAcsComponentOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - java.lang.String sayHello(); 1 - alma.fakexmlentity.XmlEntityStruct createObsProposal(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLAcsComponentPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XMLAcsComponentPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.XMLAcsComponentOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "sayHello", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - m_opsHash.put ( "createObsProposal", Integer.valueOf(3)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/XMLAcsComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.XMLAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XMLAcsComponent __r = alma.xmltest.XMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XMLAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XMLAcsComponent __r = alma.xmltest.XMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // sayHello 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = sayHello(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - case 3: // createObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,createObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLAcsComponentPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XMLAcsComponentPOATie 1 - extends XMLAcsComponentPOA 1 - { 1 - private XMLAcsComponentOperations _delegate; 1 - 1 - private POA _poa; 1 - public XMLAcsComponentPOATie(XMLAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XMLAcsComponentPOATie(XMLAcsComponentOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.XMLAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XMLAcsComponent __r = alma.xmltest.XMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XMLAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XMLAcsComponent __r = alma.xmltest.XMLAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public XMLAcsComponentOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XMLAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public java.lang.String sayHello() 1 - { 1 - return _delegate.sayHello(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - return _delegate.createObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_XMLAcsComponentStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XMLAcsComponentStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.XMLAcsComponent 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/XMLAcsComponent:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.XMLAcsComponentOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - XMLAcsComponentOperations _localServant = (XMLAcsComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public java.lang.String sayHello() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "sayHello", true); 1 - _is = _invoke(_os); 1 - java.lang.String _result = _is.read_string(); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "sayHello", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XMLAcsComponentOperations _localServant = (XMLAcsComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.sayHello(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - XMLAcsComponentOperations _localServant = (XMLAcsComponentOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "createObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "createObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XMLAcsComponentOperations _localServant = (XMLAcsComponentOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.createObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingNormalOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlComponentUsingNormalOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlComponentUsingNormalOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XmlComponentUsingNormalOffshoot:1.0", "XmlComponentUsingNormalOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.XmlComponentUsingNormalOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.XmlComponentUsingNormalOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XmlComponentUsingNormalOffshoot:1.0"; 1 - } 1 - public static XmlComponentUsingNormalOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._XmlComponentUsingNormalOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.XmlComponentUsingNormalOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.XmlComponentUsingNormalOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlComponentUsingNormalOffshoot) 1 - { 1 - return (alma.xmltest.XmlComponentUsingNormalOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/XmlComponentUsingNormalOffshoot:1.0")) 1 - { 1 - alma.xmltest._XmlComponentUsingNormalOffshootStub stub; 1 - stub = new alma.xmltest._XmlComponentUsingNormalOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.XmlComponentUsingNormalOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlComponentUsingNormalOffshoot) 1 - { 1 - return (alma.xmltest.XmlComponentUsingNormalOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._XmlComponentUsingNormalOffshootStub stub; 1 - stub = new alma.xmltest._XmlComponentUsingNormalOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingNormalOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlComponentUsingNormalOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public XmlComponentUsingNormalOffshoot value; 1 - public XmlComponentUsingNormalOffshootHolder() 1 - { 1 - } 1 - public XmlComponentUsingNormalOffshootHolder (final XmlComponentUsingNormalOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XmlComponentUsingNormalOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XmlComponentUsingNormalOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XmlComponentUsingNormalOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingNormalOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlComponentUsingNormalOffshoot 1 - extends XmlComponentUsingNormalOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingNormalOffshootJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshootJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlComponentUsingNormalOffshootJ 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public dummyentities.ObsProposal createObsProposal(); 1 - public alma.xmltest.NoXmlOffshoot getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingNormalOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlComponentUsingNormalOffshootOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.fakexmlentity.XmlEntityStruct createObsProposal(); 1 - alma.xmltest.NoXmlOffshoot getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingNormalOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlComponentUsingNormalOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.XmlComponentUsingNormalOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "getOffshoot", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - m_opsHash.put ( "createObsProposal", Integer.valueOf(3)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/XmlComponentUsingNormalOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.XmlComponentUsingNormalOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlComponentUsingNormalOffshoot __r = alma.xmltest.XmlComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlComponentUsingNormalOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlComponentUsingNormalOffshoot __r = alma.xmltest.XmlComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // getOffshoot 1 - { 1 - _out = handler.createReply(); 1 - alma.xmltest.NoXmlOffshootHelper.write(_out,getOffshoot()); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - case 3: // createObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,createObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingNormalOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XmlComponentUsingNormalOffshootPOATie 1 - extends XmlComponentUsingNormalOffshootPOA 1 - { 1 - private XmlComponentUsingNormalOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public XmlComponentUsingNormalOffshootPOATie(XmlComponentUsingNormalOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XmlComponentUsingNormalOffshootPOATie(XmlComponentUsingNormalOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.XmlComponentUsingNormalOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlComponentUsingNormalOffshoot __r = alma.xmltest.XmlComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlComponentUsingNormalOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlComponentUsingNormalOffshoot __r = alma.xmltest.XmlComponentUsingNormalOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public XmlComponentUsingNormalOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XmlComponentUsingNormalOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public alma.xmltest.NoXmlOffshoot getOffshoot() 1 - { 1 - return _delegate.getOffshoot(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - return _delegate.createObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_XmlComponentUsingNormalOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingNormalOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XmlComponentUsingNormalOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.XmlComponentUsingNormalOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/XmlComponentUsingNormalOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.XmlComponentUsingNormalOffshootOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingNormalOffshootOperations _localServant = (XmlComponentUsingNormalOffshootOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.xmltest.NoXmlOffshoot getOffshoot() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getOffshoot", true); 1 - _is = _invoke(_os); 1 - alma.xmltest.NoXmlOffshoot _result = alma.xmltest.NoXmlOffshootHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getOffshoot", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingNormalOffshootOperations _localServant = (XmlComponentUsingNormalOffshootOperations)_so.servant; 1 - alma.xmltest.NoXmlOffshoot _result; 1 - try 1 - { 1 - _result = _localServant.getOffshoot(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingNormalOffshootOperations _localServant = (XmlComponentUsingNormalOffshootOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "createObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "createObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingNormalOffshootOperations _localServant = (XmlComponentUsingNormalOffshootOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.createObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingXmlOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlComponentUsingXmlOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlComponentUsingXmlOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XmlComponentUsingXmlOffshoot:1.0", "XmlComponentUsingXmlOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.XmlComponentUsingXmlOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.XmlComponentUsingXmlOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XmlComponentUsingXmlOffshoot:1.0"; 1 - } 1 - public static XmlComponentUsingXmlOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._XmlComponentUsingXmlOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.XmlComponentUsingXmlOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.XmlComponentUsingXmlOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlComponentUsingXmlOffshoot) 1 - { 1 - return (alma.xmltest.XmlComponentUsingXmlOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/XmlComponentUsingXmlOffshoot:1.0")) 1 - { 1 - alma.xmltest._XmlComponentUsingXmlOffshootStub stub; 1 - stub = new alma.xmltest._XmlComponentUsingXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.XmlComponentUsingXmlOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlComponentUsingXmlOffshoot) 1 - { 1 - return (alma.xmltest.XmlComponentUsingXmlOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._XmlComponentUsingXmlOffshootStub stub; 1 - stub = new alma.xmltest._XmlComponentUsingXmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingXmlOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlComponentUsingXmlOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public XmlComponentUsingXmlOffshoot value; 1 - public XmlComponentUsingXmlOffshootHolder() 1 - { 1 - } 1 - public XmlComponentUsingXmlOffshootHolder (final XmlComponentUsingXmlOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XmlComponentUsingXmlOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XmlComponentUsingXmlOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XmlComponentUsingXmlOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingXmlOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlComponentUsingXmlOffshoot 1 - extends XmlComponentUsingXmlOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.ACSComponent 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingXmlOffshootJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshootJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlComponentUsingXmlOffshootJ 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public dummyentities.ObsProposal createObsProposal(); 1 - public alma.xmltest.XmlOffshootJ getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingXmlOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlComponentUsingXmlOffshootOperations 1 - extends alma.ACS.ACSComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.fakexmlentity.XmlEntityStruct createObsProposal(); 1 - alma.xmltest.XmlOffshoot getOffshoot(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingXmlOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlComponentUsingXmlOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.XmlComponentUsingXmlOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "_get_name", Integer.valueOf(0)); 1 - m_opsHash.put ( "getOffshoot", Integer.valueOf(1)); 1 - m_opsHash.put ( "_get_componentState", Integer.valueOf(2)); 1 - m_opsHash.put ( "createObsProposal", Integer.valueOf(3)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/XmlComponentUsingXmlOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public alma.xmltest.XmlComponentUsingXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlComponentUsingXmlOffshoot __r = alma.xmltest.XmlComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlComponentUsingXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlComponentUsingXmlOffshoot __r = alma.xmltest.XmlComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // _get_name 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = name(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // getOffshoot 1 - { 1 - _out = handler.createReply(); 1 - alma.xmltest.XmlOffshootHelper.write(_out,getOffshoot()); 1 - break; 1 - } 1 - case 2: // _get_componentState 1 - { 1 - _out = handler.createReply(); 1 - alma.ACS.ComponentStatesHelper.write(_out,componentState()); 1 - break; 1 - } 1 - case 3: // createObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,createObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlComponentUsingXmlOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XmlComponentUsingXmlOffshootPOATie 1 - extends XmlComponentUsingXmlOffshootPOA 1 - { 1 - private XmlComponentUsingXmlOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public XmlComponentUsingXmlOffshootPOATie(XmlComponentUsingXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XmlComponentUsingXmlOffshootPOATie(XmlComponentUsingXmlOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.XmlComponentUsingXmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlComponentUsingXmlOffshoot __r = alma.xmltest.XmlComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlComponentUsingXmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlComponentUsingXmlOffshoot __r = alma.xmltest.XmlComponentUsingXmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public XmlComponentUsingXmlOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XmlComponentUsingXmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String name() 1 - { 1 - return _delegate.name(); 1 - } 1 - 1 - public alma.xmltest.XmlOffshoot getOffshoot() 1 - { 1 - return _delegate.getOffshoot(); 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - return _delegate.componentState(); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - return _delegate.createObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_XmlComponentUsingXmlOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlComponentUsingXmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XmlComponentUsingXmlOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.XmlComponentUsingXmlOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/XmlComponentUsingXmlOffshoot:1.0","IDL:alma/ACS/ACSComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.XmlComponentUsingXmlOffshootOperations.class; 1 - public java.lang.String name() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_name",true); 1 - _is = _invoke(_os); 1 - return _is.read_string(); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_name", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingXmlOffshootOperations _localServant = (XmlComponentUsingXmlOffshootOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.name(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.xmltest.XmlOffshoot getOffshoot() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getOffshoot", true); 1 - _is = _invoke(_os); 1 - alma.xmltest.XmlOffshoot _result = alma.xmltest.XmlOffshootHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getOffshoot", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingXmlOffshootOperations _localServant = (XmlComponentUsingXmlOffshootOperations)_so.servant; 1 - alma.xmltest.XmlOffshoot _result; 1 - try 1 - { 1 - _result = _localServant.getOffshoot(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.ACS.ComponentStates componentState() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request("_get_componentState",true); 1 - _is = _invoke(_os); 1 - return alma.ACS.ComponentStatesHelper.read(_is); 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "_get_componentState", _opsClass); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingXmlOffshootOperations _localServant = (XmlComponentUsingXmlOffshootOperations)_so.servant; 1 - alma.ACS.ComponentStates _result; 1 - try 1 - { 1 - _result = _localServant.componentState(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "createObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "createObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlComponentUsingXmlOffshootOperations _localServant = (XmlComponentUsingXmlOffshootOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.createObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLNonAcsComponentHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLNonAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XMLNonAcsComponentHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XMLNonAcsComponentHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XMLNonAcsComponent:1.0", "XMLNonAcsComponent"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.XMLNonAcsComponent s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.XMLNonAcsComponent extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XMLNonAcsComponent:1.0"; 1 - } 1 - public static XMLNonAcsComponent read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._XMLNonAcsComponentStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.XMLNonAcsComponent s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.XMLNonAcsComponent narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XMLNonAcsComponent) 1 - { 1 - return (alma.xmltest.XMLNonAcsComponent)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/XMLNonAcsComponent:1.0")) 1 - { 1 - alma.xmltest._XMLNonAcsComponentStub stub; 1 - stub = new alma.xmltest._XMLNonAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.XMLNonAcsComponent unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XMLNonAcsComponent) 1 - { 1 - return (alma.xmltest.XMLNonAcsComponent)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._XMLNonAcsComponentStub stub; 1 - stub = new alma.xmltest._XMLNonAcsComponentStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLNonAcsComponentHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XMLNonAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XMLNonAcsComponentHolder implements org.omg.CORBA.portable.Streamable{ 1 - public XMLNonAcsComponent value; 1 - public XMLNonAcsComponentHolder() 1 - { 1 - } 1 - public XMLNonAcsComponentHolder (final XMLNonAcsComponent initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XMLNonAcsComponentHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XMLNonAcsComponentHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XMLNonAcsComponentHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLNonAcsComponent.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XMLNonAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XMLNonAcsComponent 1 - extends XMLNonAcsComponentOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLNonAcsComponentOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLNonAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XMLNonAcsComponentOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - java.lang.String sayHello(); 1 - alma.fakexmlentity.XmlEntityStruct createObsProposal(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLNonAcsComponentPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLNonAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XMLNonAcsComponentPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.XMLNonAcsComponentOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "sayHello", Integer.valueOf(0)); 1 - m_opsHash.put ( "createObsProposal", Integer.valueOf(1)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/XMLNonAcsComponent:1.0"}; 1 - public alma.xmltest.XMLNonAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XMLNonAcsComponent __r = alma.xmltest.XMLNonAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XMLNonAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XMLNonAcsComponent __r = alma.xmltest.XMLNonAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // sayHello 1 - { 1 - _out = handler.createReply(); 1 - java.lang.String tmpResultxxx = sayHello(); 1 - _out.write_string( tmpResultxxx ); 1 - break; 1 - } 1 - case 1: // createObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,createObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XMLNonAcsComponentPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XMLNonAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XMLNonAcsComponentPOATie 1 - extends XMLNonAcsComponentPOA 1 - { 1 - private XMLNonAcsComponentOperations _delegate; 1 - 1 - private POA _poa; 1 - public XMLNonAcsComponentPOATie(XMLNonAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XMLNonAcsComponentPOATie(XMLNonAcsComponentOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.XMLNonAcsComponent _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XMLNonAcsComponent __r = alma.xmltest.XMLNonAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XMLNonAcsComponent _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XMLNonAcsComponent __r = alma.xmltest.XMLNonAcsComponentHelper.narrow(__o); 1 - return __r; 1 - } 1 - public XMLNonAcsComponentOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XMLNonAcsComponentOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public java.lang.String sayHello() 1 - { 1 - return _delegate.sayHello(); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - return _delegate.createObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_XMLNonAcsComponentStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XMLNonAcsComponent". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XMLNonAcsComponentStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.XMLNonAcsComponent 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/XMLNonAcsComponent:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.XMLNonAcsComponentOperations.class; 1 - public java.lang.String sayHello() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "sayHello", true); 1 - _is = _invoke(_os); 1 - java.lang.String _result = _is.read_string(); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "sayHello", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XMLNonAcsComponentOperations _localServant = (XMLNonAcsComponentOperations)_so.servant; 1 - java.lang.String _result; 1 - try 1 - { 1 - _result = _localServant.sayHello(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct createObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "createObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "createObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XMLNonAcsComponentOperations _localServant = (XMLNonAcsComponentOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.createObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot2Helper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshoot2Helper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlOffshoot2Helper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XmlOffshoot2:1.0", "XmlOffshoot2"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.XmlOffshoot2 s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.XmlOffshoot2 extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XmlOffshoot2:1.0"; 1 - } 1 - public static XmlOffshoot2 read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._XmlOffshoot2Stub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.XmlOffshoot2 s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.XmlOffshoot2 narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlOffshoot2) 1 - { 1 - return (alma.xmltest.XmlOffshoot2)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/XmlOffshoot2:1.0")) 1 - { 1 - alma.xmltest._XmlOffshoot2Stub stub; 1 - stub = new alma.xmltest._XmlOffshoot2Stub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.XmlOffshoot2 unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlOffshoot2) 1 - { 1 - return (alma.xmltest.XmlOffshoot2)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._XmlOffshoot2Stub stub; 1 - stub = new alma.xmltest._XmlOffshoot2Stub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot2Holder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlOffshoot2Holder implements org.omg.CORBA.portable.Streamable{ 1 - public XmlOffshoot2 value; 1 - public XmlOffshoot2Holder() 1 - { 1 - } 1 - public XmlOffshoot2Holder (final XmlOffshoot2 initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XmlOffshoot2Helper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XmlOffshoot2Helper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XmlOffshoot2Helper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot2.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshoot2 1 - extends XmlOffshoot2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.OffShoot 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot2J.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2J". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshoot2J 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public dummyentities.ObsProposal getObsProposal(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot2Operations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshoot2Operations 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.fakexmlentity.XmlEntityStruct getObsProposal(); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot2POA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshoot2POA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.XmlOffshoot2Operations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "getObsProposal", Integer.valueOf(0)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/XmlOffshoot2:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public alma.xmltest.XmlOffshoot2 _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlOffshoot2 __r = alma.xmltest.XmlOffshoot2Helper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlOffshoot2 _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlOffshoot2 __r = alma.xmltest.XmlOffshoot2Helper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // getObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,getObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot2POATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XmlOffshoot2POATie 1 - extends XmlOffshoot2POA 1 - { 1 - private XmlOffshoot2Operations _delegate; 1 - 1 - private POA _poa; 1 - public XmlOffshoot2POATie(XmlOffshoot2Operations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XmlOffshoot2POATie(XmlOffshoot2Operations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.XmlOffshoot2 _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlOffshoot2 __r = alma.xmltest.XmlOffshoot2Helper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlOffshoot2 _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlOffshoot2 __r = alma.xmltest.XmlOffshoot2Helper.narrow(__o); 1 - return __r; 1 - } 1 - public XmlOffshoot2Operations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XmlOffshoot2Operations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public alma.fakexmlentity.XmlEntityStruct getObsProposal() 1 - { 1 - return _delegate.getObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_XmlOffshoot2Stub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot2". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XmlOffshoot2Stub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.XmlOffshoot2 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/XmlOffshoot2:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.XmlOffshoot2Operations.class; 1 - public alma.fakexmlentity.XmlEntityStruct getObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlOffshoot2Operations _localServant = (XmlOffshoot2Operations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.getObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XmlOffshoot:1.0", "XmlOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.XmlOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.XmlOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XmlOffshoot:1.0"; 1 - } 1 - public static XmlOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._XmlOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.XmlOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.XmlOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlOffshoot) 1 - { 1 - return (alma.xmltest.XmlOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/XmlOffshoot:1.0")) 1 - { 1 - alma.xmltest._XmlOffshootStub stub; 1 - stub = new alma.xmltest._XmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.XmlOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlOffshoot) 1 - { 1 - return (alma.xmltest.XmlOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._XmlOffshootStub stub; 1 - stub = new alma.xmltest._XmlOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public XmlOffshoot value; 1 - public XmlOffshootHolder() 1 - { 1 - } 1 - public XmlOffshootHolder (final XmlOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XmlOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XmlOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XmlOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshoot 1 - extends XmlOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.OffShoot 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootJ 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public dummyentities.ObsProposal getObsProposal(); 1 - public void setPreferedProposal(dummyentities.ObsProposal proposal); 1 - public void setProjectTree(alma.xmltest.ObsProjectTreeJ tree); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootOperations 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - alma.fakexmlentity.XmlEntityStruct getObsProposal(); 1 - void setPreferedProposal(alma.fakexmlentity.XmlEntityStruct proposal); 1 - void setProjectTree(alma.xmltest.ObsProjectTree tree); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.XmlOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "setPreferedProposal", Integer.valueOf(0)); 1 - m_opsHash.put ( "setProjectTree", Integer.valueOf(1)); 1 - m_opsHash.put ( "getObsProposal", Integer.valueOf(2)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/XmlOffshoot:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public alma.xmltest.XmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlOffshoot __r = alma.xmltest.XmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlOffshoot __r = alma.xmltest.XmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // setPreferedProposal 1 - { 1 - alma.fakexmlentity.XmlEntityStruct _arg0=alma.fakexmlentity.XmlEntityStructHelper.read(_input); 1 - _out = handler.createReply(); 1 - setPreferedProposal(_arg0); 1 - break; 1 - } 1 - case 1: // setProjectTree 1 - { 1 - alma.xmltest.ObsProjectTree _arg0=alma.xmltest.ObsProjectTreeHelper.read(_input); 1 - _out = handler.createReply(); 1 - setProjectTree(_arg0); 1 - break; 1 - } 1 - case 2: // getObsProposal 1 - { 1 - _out = handler.createReply(); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_out,getObsProposal()); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XmlOffshootPOATie 1 - extends XmlOffshootPOA 1 - { 1 - private XmlOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public XmlOffshootPOATie(XmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XmlOffshootPOATie(XmlOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.XmlOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlOffshoot __r = alma.xmltest.XmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlOffshoot __r = alma.xmltest.XmlOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public XmlOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XmlOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public void setPreferedProposal(alma.fakexmlentity.XmlEntityStruct proposal) 1 - { 1 - _delegate.setPreferedProposal(proposal); 1 - } 1 - 1 - public void setProjectTree(alma.xmltest.ObsProjectTree tree) 1 - { 1 - _delegate.setProjectTree(tree); 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct getObsProposal() 1 - { 1 - return _delegate.getObsProposal(); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootReferencingOffshootHelper.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshootReferencingOffshootHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlOffshootReferencingOffshootHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XmlOffshootReferencingOffshoot:1.0", "XmlOffshootReferencingOffshoot"); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static void insert (final org.omg.CORBA.Any any, final alma.xmltest.XmlOffshootReferencingOffshoot s) 1 - { 1 - any.insert_Object(s); 1 - } 1 - public static alma.xmltest.XmlOffshootReferencingOffshoot extract(final org.omg.CORBA.Any any) 1 - { 1 - return narrow(any.extract_Object()) ; 1 - } 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XmlOffshootReferencingOffshoot:1.0"; 1 - } 1 - public static XmlOffshootReferencingOffshoot read(final org.omg.CORBA.portable.InputStream in) 1 - { 1 - return narrow(in.read_Object(alma.xmltest._XmlOffshootReferencingOffshootStub.class)); 1 - } 1 - public static void write(final org.omg.CORBA.portable.OutputStream _out, final alma.xmltest.XmlOffshootReferencingOffshoot s) 1 - { 1 - _out.write_Object(s); 1 - } 1 - public static alma.xmltest.XmlOffshootReferencingOffshoot narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlOffshootReferencingOffshoot) 1 - { 1 - return (alma.xmltest.XmlOffshootReferencingOffshoot)obj; 1 - } 1 - else if (obj._is_a("IDL:alma/xmltest/XmlOffshootReferencingOffshoot:1.0")) 1 - { 1 - alma.xmltest._XmlOffshootReferencingOffshootStub stub; 1 - stub = new alma.xmltest._XmlOffshootReferencingOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - else 1 - { 1 - throw new org.omg.CORBA.BAD_PARAM("Narrow failed"); 1 - } 1 - } 1 - public static alma.xmltest.XmlOffshootReferencingOffshoot unchecked_narrow(final org.omg.CORBA.Object obj) 1 - { 1 - if (obj == null) 1 - { 1 - return null; 1 - } 1 - else if (obj instanceof alma.xmltest.XmlOffshootReferencingOffshoot) 1 - { 1 - return (alma.xmltest.XmlOffshootReferencingOffshoot)obj; 1 - } 1 - else 1 - { 1 - alma.xmltest._XmlOffshootReferencingOffshootStub stub; 1 - stub = new alma.xmltest._XmlOffshootReferencingOffshootStub(); 1 - stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()); 1 - return stub; 1 - } 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootReferencingOffshootHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlOffshootReferencingOffshootHolder implements org.omg.CORBA.portable.Streamable{ 1 - public XmlOffshootReferencingOffshoot value; 1 - public XmlOffshootReferencingOffshootHolder() 1 - { 1 - } 1 - public XmlOffshootReferencingOffshootHolder (final XmlOffshootReferencingOffshoot initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type() 1 - { 1 - return XmlOffshootReferencingOffshootHelper.type(); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XmlOffshootReferencingOffshootHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream _out) 1 - { 1 - XmlOffshootReferencingOffshootHelper.write (_out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootReferencingOffshoot.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootReferencingOffshoot 1 - extends XmlOffshootReferencingOffshootOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, alma.ACS.OffShoot 1 - { 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootReferencingOffshootJ.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshootJ". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootReferencingOffshootJ 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - public void setOtherOffshoot(alma.xmltest.XmlOffshoot2J off2); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootReferencingOffshootOperations.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public interface XmlOffshootReferencingOffshootOperations 1 - extends alma.ACS.OffShootOperations 1 - { 1 - /* constants */ 1 - /* operations */ 1 - void setOtherOffshoot(alma.xmltest.XmlOffshoot2 off2); 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootReferencingOffshootPOA.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshootReferencingOffshootPOA 1 - extends org.omg.PortableServer.Servant 1 - implements org.omg.CORBA.portable.InvokeHandler, alma.xmltest.XmlOffshootReferencingOffshootOperations 1 - { 1 - static private final java.util.HashMap m_opsHash = new java.util.HashMap(); 1 - static 1 - { 1 - m_opsHash.put ( "setOtherOffshoot", Integer.valueOf(0)); 1 - } 1 - private String[] ids = {"IDL:alma/xmltest/XmlOffshootReferencingOffshoot:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public alma.xmltest.XmlOffshootReferencingOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlOffshootReferencingOffshoot __r = alma.xmltest.XmlOffshootReferencingOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlOffshootReferencingOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlOffshootReferencingOffshoot __r = alma.xmltest.XmlOffshootReferencingOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 1 - throws org.omg.CORBA.SystemException 1 - { 1 - org.omg.CORBA.portable.OutputStream _out = null; 1 - // do something 1 - // quick lookup of operation 1 - java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method ); 1 - if ( null == opsIndex ) 1 - throw new org.omg.CORBA.BAD_OPERATION(method + " not found"); 1 - switch ( opsIndex.intValue() ) 1 - { 1 - case 0: // setOtherOffshoot 1 - { 1 - alma.xmltest.XmlOffshoot2 _arg0=alma.xmltest.XmlOffshoot2Helper.read(_input); 1 - _out = handler.createReply(); 1 - setOtherOffshoot(_arg0); 1 - break; 1 - } 1 - } 1 - return _out; 1 - } 1 - 1 - public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 1 - { 1 - return ids; 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootReferencingOffshootPOATie.java 1 - package alma.xmltest; 1 - 1 - import org.omg.PortableServer.POA; 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class XmlOffshootReferencingOffshootPOATie 1 - extends XmlOffshootReferencingOffshootPOA 1 - { 1 - private XmlOffshootReferencingOffshootOperations _delegate; 1 - 1 - private POA _poa; 1 - public XmlOffshootReferencingOffshootPOATie(XmlOffshootReferencingOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public XmlOffshootReferencingOffshootPOATie(XmlOffshootReferencingOffshootOperations delegate, POA poa) 1 - { 1 - _delegate = delegate; 1 - _poa = poa; 1 - } 1 - public alma.xmltest.XmlOffshootReferencingOffshoot _this() 1 - { 1 - org.omg.CORBA.Object __o = _this_object() ; 1 - alma.xmltest.XmlOffshootReferencingOffshoot __r = alma.xmltest.XmlOffshootReferencingOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public alma.xmltest.XmlOffshootReferencingOffshoot _this(org.omg.CORBA.ORB orb) 1 - { 1 - org.omg.CORBA.Object __o = _this_object(orb) ; 1 - alma.xmltest.XmlOffshootReferencingOffshoot __r = alma.xmltest.XmlOffshootReferencingOffshootHelper.narrow(__o); 1 - return __r; 1 - } 1 - public XmlOffshootReferencingOffshootOperations _delegate() 1 - { 1 - return _delegate; 1 - } 1 - public void _delegate(XmlOffshootReferencingOffshootOperations delegate) 1 - { 1 - _delegate = delegate; 1 - } 1 - public POA _default_POA() 1 - { 1 - if (_poa != null) 1 - { 1 - return _poa; 1 - } 1 - return super._default_POA(); 1 - } 1 - public void setOtherOffshoot(alma.xmltest.XmlOffshoot2 off2) 1 - { 1 - _delegate.setOtherOffshoot(off2); 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_XmlOffshootReferencingOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshootReferencingOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XmlOffshootReferencingOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.XmlOffshootReferencingOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/XmlOffshootReferencingOffshoot:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.XmlOffshootReferencingOffshootOperations.class; 1 - public void setOtherOffshoot(alma.xmltest.XmlOffshoot2 off2) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "setOtherOffshoot", true); 1 - alma.xmltest.XmlOffshoot2Helper.write(_os,off2); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "setOtherOffshoot", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlOffshootReferencingOffshootOperations _localServant = (XmlOffshootReferencingOffshootOperations)_so.servant; 1 - try 1 - { 1 - _localServant.setOtherOffshoot(off2); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootSeqHelper.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL alias "XmlOffshootSeq". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public abstract class XmlOffshootSeqHelper 1 - { 1 - private volatile static org.omg.CORBA.TypeCode _type; 1 - 1 - public static void insert (org.omg.CORBA.Any any, alma.xmltest.XmlOffshoot[] s) 1 - { 1 - any.type (type ()); 1 - write (any.create_output_stream (), s); 1 - } 1 - 1 - public static alma.xmltest.XmlOffshoot[] extract (final org.omg.CORBA.Any any) 1 - { 1 - if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null) 1 - { 1 - throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type."); 1 - } 1 - return read (any.create_input_stream ()); 1 - } 1 - 1 - public static org.omg.CORBA.TypeCode type () 1 - { 1 - if (_type == null) 1 - { 1 - synchronized(XmlOffshootSeqHelper.class) 1 - { 1 - if (_type == null) 1 - { 1 - _type = org.omg.CORBA.ORB.init().create_alias_tc(alma.xmltest.XmlOffshootSeqHelper.id(), "XmlOffshootSeq",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_interface_tc("IDL:alma/xmltest/XmlOffshoot:1.0", "XmlOffshoot"))); 1 - } 1 - } 1 - } 1 - return _type; 1 - } 1 - 1 - public static String id() 1 - { 1 - return "IDL:alma/xmltest/XmlOffshootSeq:1.0"; 1 - } 1 - public static alma.xmltest.XmlOffshoot[] read (final org.omg.CORBA.portable.InputStream _in) 1 - { 1 - alma.xmltest.XmlOffshoot[] _result; 1 - int _l_result2 = _in.read_long(); 1 - try 1 - { 1 - int x = _in.available(); 1 - if ( x > 0 && _l_result2 > x ) 1 - { 1 - throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _l_result2); 1 - } 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - } 1 - _result = new alma.xmltest.XmlOffshoot[_l_result2]; 1 - for (int i=0;i<_result.length;i++) 1 - { 1 - _result[i]=alma.xmltest.XmlOffshootHelper.read(_in); 1 - } 1 - 1 - return _result; 1 - } 1 - 1 - public static void write (final org.omg.CORBA.portable.OutputStream _out, alma.xmltest.XmlOffshoot[] _s) 1 - { 1 - 1 - _out.write_long(_s.length); 1 - for (int i=0; i<_s.length;i++) 1 - { 1 - alma.xmltest.XmlOffshootHelper.write(_out,_s[i]); 1 - } 1 - 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootSeqHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Generated from IDL alias "XmlOffshootSeq". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public final class XmlOffshootSeqHolder 1 - implements org.omg.CORBA.portable.Streamable 1 - { 1 - public alma.xmltest.XmlOffshoot[] value; 1 - 1 - public XmlOffshootSeqHolder () 1 - { 1 - } 1 - public XmlOffshootSeqHolder (final alma.xmltest.XmlOffshoot[] initial) 1 - { 1 - value = initial; 1 - } 1 - public org.omg.CORBA.TypeCode _type () 1 - { 1 - return XmlOffshootSeqHelper.type (); 1 - } 1 - public void _read (final org.omg.CORBA.portable.InputStream in) 1 - { 1 - value = XmlOffshootSeqHelper.read (in); 1 - } 1 - public void _write (final org.omg.CORBA.portable.OutputStream out) 1 - { 1 - XmlOffshootSeqHelper.write (out,value); 1 - } 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/XmlOffshootSeqJHolder.java 1 - package alma.xmltest; 1 - 1 - /** 1 - * Holder class for IDL typedef alma.xmltest.XmlOffshootSeq 1 - * 1 - * @author ACS xml transparency layer generator 1 - */ 1 - public final class XmlOffshootSeqJHolder 1 - { 1 - public alma.xmltest.XmlOffshootJ[] value; 1 - 1 - } 1 - 1 - ----------------------- Java file ./alma/xmltest/_XmlOffshootStub.java 1 - package alma.xmltest; 1 - 1 - 1 - /** 1 - * Generated from IDL interface "XmlOffshoot". 1 - * 1 - * @author JacORB IDL compiler... 1 - * @version generated at xxx 1 - */ 1 - 1 - public class _XmlOffshootStub 1 - extends org.omg.CORBA.portable.ObjectImpl 1 - implements alma.xmltest.XmlOffshoot 1 - { 1 - /** Serial version UID. */ 1 - private static final long serialVersionUID = 1L; 1 - private String[] ids = {"IDL:alma/xmltest/XmlOffshoot:1.0","IDL:alma/ACS/OffShoot:1.0"}; 1 - public String[] _ids() 1 - { 1 - return ids; 1 - } 1 - 1 - public final static java.lang.Class _opsClass = alma.xmltest.XmlOffshootOperations.class; 1 - public void setPreferedProposal(alma.fakexmlentity.XmlEntityStruct proposal) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "setPreferedProposal", true); 1 - alma.fakexmlentity.XmlEntityStructHelper.write(_os,proposal); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "setPreferedProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlOffshootOperations _localServant = (XmlOffshootOperations)_so.servant; 1 - try 1 - { 1 - _localServant.setPreferedProposal(proposal); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public void setProjectTree(alma.xmltest.ObsProjectTree tree) 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "setProjectTree", true); 1 - alma.xmltest.ObsProjectTreeHelper.write(_os,tree); 1 - _is = _invoke(_os); 1 - return; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "setProjectTree", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlOffshootOperations _localServant = (XmlOffshootOperations)_so.servant; 1 - try 1 - { 1 - _localServant.setProjectTree(tree); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - public alma.fakexmlentity.XmlEntityStruct getObsProposal() 1 - { 1 - while(true) 1 - { 1 - if(! this._is_local()) 1 - { 1 - org.omg.CORBA.portable.InputStream _is = null; 1 - org.omg.CORBA.portable.OutputStream _os = null; 1 - try 1 - { 1 - _os = _request( "getObsProposal", true); 1 - _is = _invoke(_os); 1 - alma.fakexmlentity.XmlEntityStruct _result = alma.fakexmlentity.XmlEntityStructHelper.read(_is); 1 - return _result; 1 - } 1 - catch( org.omg.CORBA.portable.RemarshalException _rx ) 1 - { 1 - continue; 1 - } 1 - catch( org.omg.CORBA.portable.ApplicationException _ax ) 1 - { 1 - String _id = _ax.getId(); 1 - try 1 - { 1 - _ax.getInputStream().close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - throw new RuntimeException("Unexpected exception " + _id ); 1 - } 1 - finally 1 - { 1 - if (_os != null) 1 - { 1 - try 1 - { 1 - _os.close(); 1 - } 1 - catch (java.io.IOException e) 1 - { 1 - throw new RuntimeException("Unexpected exception " + e.toString() ); 1 - } 1 - } 1 - this._releaseReply(_is); 1 - } 1 - } 1 - else 1 - { 1 - org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "getObsProposal", _opsClass ); 1 - if( _so == null ) 1 - continue; 1 - XmlOffshootOperations _localServant = (XmlOffshootOperations)_so.servant; 1 - alma.fakexmlentity.XmlEntityStruct _result; 1 - try 1 - { 1 - _result = _localServant.getObsProposal(); 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).normalCompletion(); 1 - return _result; 1 - } 1 - catch (RuntimeException re) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(re); 1 - throw re; 1 - } 1 - catch (java.lang.Error err) 1 - { 1 - if ( _so instanceof org.omg.CORBA.portable.ServantObjectExt) 1 - ((org.omg.CORBA.portable.ServantObjectExt)_so).exceptionalCompletion(err); 1 - throw err; 1 - } 1 - finally 1 - { 1 - _servant_postinvoke(_so); 1 - } 1 - } 1 - 1 - } 1 - 1 - } 1 - 1 - } 1 -