mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
625 lines
27 KiB
Java
625 lines
27 KiB
Java
package FoamXServer.CaseServer;
|
|
|
|
|
|
/**
|
|
* FoamXServer/CaseServer/_IApplicationStub.java .
|
|
* Generated by the IDL-to-Java compiler (portable), version "3.1"
|
|
* from FoamX.idl
|
|
* 02 April 2007 09:53:40 o'clock BST
|
|
*/
|
|
|
|
|
|
// ---------------------------------------------------------------------
|
|
public class _IApplicationStub extends org.omg.CORBA.portable.ObjectImpl implements FoamXServer.CaseServer.IApplication
|
|
{
|
|
|
|
|
|
//- Short name for this application class.
|
|
public String name ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_name", true);
|
|
$in = _invoke ($out);
|
|
String $result = $in.read_string ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return name ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // name
|
|
|
|
|
|
//- Short name for this application class.
|
|
public void name (String newName)
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_set_name", true);
|
|
$out.write_string (newName);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
name (newName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // name
|
|
|
|
|
|
//- Application class description.
|
|
public String description ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_description", true);
|
|
$in = _invoke ($out);
|
|
String $result = $in.read_string ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return description ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // description
|
|
|
|
|
|
//- Application class description.
|
|
public void description (String newDescription)
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_set_description", true);
|
|
$out.write_string (newDescription);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
description (newDescription );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // description
|
|
|
|
|
|
//- Application class category.
|
|
public String category ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_category", true);
|
|
$in = _invoke ($out);
|
|
String $result = $in.read_string ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return category ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // category
|
|
|
|
|
|
//- Application class category.
|
|
public void category (String newCategory)
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_set_category", true);
|
|
$out.write_string (newCategory);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
category (newCategory );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // category
|
|
|
|
|
|
//- List of modules required to pre-process this application class.
|
|
public String[] modules ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_modules", true);
|
|
$in = _invoke ($out);
|
|
String $result[] = FoamXServer.StringListHelper.read ($in);
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return modules ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // modules
|
|
|
|
|
|
//- List of modules required to pre-process this application class.
|
|
public void modules (String[] newModules)
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_set_modules", true);
|
|
FoamXServer.StringListHelper.write ($out, newModules);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
modules (newModules );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // modules
|
|
|
|
|
|
//- System or user defined application class.
|
|
public boolean systemClass ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_systemClass", true);
|
|
$in = _invoke ($out);
|
|
boolean $result = $in.read_boolean ();
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return systemClass ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // systemClass
|
|
|
|
|
|
//- List of defined fields.
|
|
public String[] fields ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_fields", true);
|
|
$in = _invoke ($out);
|
|
String $result[] = FoamXServer.StringListHelper.read ($in);
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return fields ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // fields
|
|
|
|
public void getField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getField", true);
|
|
$out.write_string (fieldName);
|
|
$in = _invoke ($out);
|
|
fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
getField (fieldName, fieldDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getField
|
|
|
|
public void findField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("findField", true);
|
|
$out.write_string (fieldName);
|
|
$in = _invoke ($out);
|
|
fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
findField (fieldName, fieldDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // findField
|
|
|
|
public void addField (String fieldName, FoamXServer.CaseServer.IGeometricFieldDescriptorHolder fieldDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("addField", true);
|
|
$out.write_string (fieldName);
|
|
$in = _invoke ($out);
|
|
fieldDescriptor.value = FoamXServer.CaseServer.IGeometricFieldDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
addField (fieldName, fieldDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // addField
|
|
|
|
public void deleteField (String fieldName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("deleteField", true);
|
|
$out.write_string (fieldName);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
deleteField (fieldName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // deleteField
|
|
|
|
|
|
// Patch physical types.
|
|
public String[] patchPhysicalTypes ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_patchPhysicalTypes", true);
|
|
$in = _invoke ($out);
|
|
String $result[] = FoamXServer.StringListHelper.read ($in);
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return patchPhysicalTypes ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // patchPhysicalTypes
|
|
|
|
|
|
// List of defined patch physical types.
|
|
public void getPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getPatchPhysicalType", true);
|
|
$out.write_string (patchPhysicalTypeName);
|
|
$in = _invoke ($out);
|
|
patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
getPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getPatchPhysicalType
|
|
|
|
public void findPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("findPatchPhysicalType", true);
|
|
$out.write_string (patchPhysicalTypeName);
|
|
$in = _invoke ($out);
|
|
patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
findPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // findPatchPhysicalType
|
|
|
|
public void addPatchPhysicalType (String patchPhysicalTypeName, FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHolder patchPhysicalTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("addPatchPhysicalType", true);
|
|
$out.write_string (patchPhysicalTypeName);
|
|
$in = _invoke ($out);
|
|
patchPhysicalTypeDescriptor.value = FoamXServer.CaseServer.IPatchPhysicalTypeDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
addPatchPhysicalType (patchPhysicalTypeName, patchPhysicalTypeDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // addPatchPhysicalType
|
|
|
|
public void deletePatchPhysicalType (String patchPhysicalTypeName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("deletePatchPhysicalType", true);
|
|
$out.write_string (patchPhysicalTypeName);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
deletePatchPhysicalType (patchPhysicalTypeName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // deletePatchPhysicalType
|
|
|
|
|
|
// Dictionaries.
|
|
public String[] dictionaries ()
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("_get_dictionaries", true);
|
|
$in = _invoke ($out);
|
|
String $result[] = FoamXServer.StringListHelper.read ($in);
|
|
return $result;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
return dictionaries ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // dictionaries
|
|
|
|
|
|
// List of defined dictionaries.
|
|
public void getDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("getDictionary", true);
|
|
$out.write_string (dictName);
|
|
$in = _invoke ($out);
|
|
dictTypeDescriptor.value = FoamXServer.ITypeDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
getDictionary (dictName, dictTypeDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // getDictionary
|
|
|
|
public void addDictionary (String dictName, FoamXServer.ITypeDescriptorHolder dictTypeDescriptor) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("addDictionary", true);
|
|
$out.write_string (dictName);
|
|
$in = _invoke ($out);
|
|
dictTypeDescriptor.value = FoamXServer.ITypeDescriptorHelper.read ($in);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
addDictionary (dictName, dictTypeDescriptor );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // addDictionary
|
|
|
|
public void deleteDictionary (String dictName) throws FoamXServer.FoamXError, FoamXServer.FoamXIOError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("deleteDictionary", true);
|
|
$out.write_string (dictName);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
deleteDictionary (dictName );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // deleteDictionary
|
|
|
|
|
|
// Validation.
|
|
public void validate () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("validate", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
|
throw FoamXServer.ValidationErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
validate ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // validate
|
|
|
|
|
|
// Persistence.
|
|
public void save () throws FoamXServer.FoamXError, FoamXServer.FoamXIOError, FoamXServer.ValidationError
|
|
{
|
|
org.omg.CORBA.portable.InputStream $in = null;
|
|
try {
|
|
org.omg.CORBA.portable.OutputStream $out = _request ("save", true);
|
|
$in = _invoke ($out);
|
|
return;
|
|
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
|
$in = $ex.getInputStream ();
|
|
String _id = $ex.getId ();
|
|
if (_id.equals ("IDL:FoamXServer/FoamXError:1.0"))
|
|
throw FoamXServer.FoamXErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/FoamXIOError:1.0"))
|
|
throw FoamXServer.FoamXIOErrorHelper.read ($in);
|
|
else if (_id.equals ("IDL:FoamXServer/ValidationError:1.0"))
|
|
throw FoamXServer.ValidationErrorHelper.read ($in);
|
|
else
|
|
throw new org.omg.CORBA.MARSHAL (_id);
|
|
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
|
save ( );
|
|
} finally {
|
|
_releaseReply ($in);
|
|
}
|
|
} // save
|
|
|
|
// Type-specific CORBA::Object operations
|
|
private static String[] __ids = {
|
|
"IDL:FoamXServer/CaseServer/IApplication:1.0"};
|
|
|
|
public String[] _ids ()
|
|
{
|
|
return (String[])__ids.clone ();
|
|
}
|
|
|
|
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
|
{
|
|
String str = s.readUTF ();
|
|
String[] args = null;
|
|
java.util.Properties props = null;
|
|
org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
|
|
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
|
_set_delegate (delegate);
|
|
}
|
|
|
|
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
|
{
|
|
String[] args = null;
|
|
java.util.Properties props = null;
|
|
String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
|
|
s.writeUTF (str);
|
|
}
|
|
} // class _IApplicationStub
|