📄 simpletexthelper.java
字号:
package CorbaServer;
/**
<p>
<ul>
<li> <b>Java Class</b> CorbaServer.SimpleTextHelper
<li> <b>Source File</b> CorbaServer/SimpleTextHelper.java
<li> <b>IDL Source File</b> C://ICON99//MultiLanguage//myprojects//CorbaServer//SimpleText.idl
<li> <b>IDL Absolute Name</b> ::CorbaServer::SimpleText
<li> <b>Repository Identifier</b> IDL:CorbaServer/SimpleText:1.0
</ul>
<b>IDL definition:</b>
<pre>
#pragma prefix "CorbaServer"
interface SimpleText {
string setText(
in string txt
);
};
</pre>
</p>
*/
abstract public class SimpleTextHelper {
public static CorbaServer.SimpleText narrow(org.omg.CORBA.Object object) {
return narrow(object, false);
}
private static CorbaServer.SimpleText narrow(org.omg.CORBA.Object object, boolean is_a) {
if(object == null) {
return null;
}
if(object instanceof CorbaServer.SimpleText) {
return (CorbaServer.SimpleText) object;
}
if(is_a || object._is_a(id())) {
CorbaServer._st_SimpleText result = (CorbaServer._st_SimpleText)new CorbaServer._st_SimpleText();
((org.omg.CORBA.portable.ObjectImpl) result)._set_delegate
(((org.omg.CORBA.portable.ObjectImpl) object)._get_delegate());
((org.omg.CORBA.portable.ObjectImpl) result._this())._set_delegate
(((org.omg.CORBA.portable.ObjectImpl) object)._get_delegate());
return (CorbaServer.SimpleText) result._this();
}
return null;
}
public static CorbaServer.SimpleText bind(org.omg.CORBA.ORB orb) {
return bind(orb, null, null, null);
}
public static CorbaServer.SimpleText bind(org.omg.CORBA.ORB orb, java.lang.String name) {
return bind(orb, name, null, null);
}
public static CorbaServer.SimpleText bind(org.omg.CORBA.ORB orb, java.lang.String name, java.lang.String host, org.omg.CORBA.BindOptions options) {
return narrow(orb.bind(id(), name, host, options), true);
}
private static org.omg.CORBA.ORB _orb() {
return org.omg.CORBA.ORB.init();
}
public static CorbaServer.SimpleText read(org.omg.CORBA.portable.InputStream _input) {
return CorbaServer.SimpleTextHelper.narrow(_input.read_Object(), true);
}
public static void write(org.omg.CORBA.portable.OutputStream _output, CorbaServer.SimpleText value) {
_output.write_Object(value);
}
public static void insert(org.omg.CORBA.Any any, CorbaServer.SimpleText value) {
org.omg.CORBA.portable.OutputStream output = any.create_output_stream();
write(output, value);
any.read_value(output.create_input_stream(), type());
}
public static CorbaServer.SimpleText extract(org.omg.CORBA.Any any) {
if(!any.type().equal(type())) {
throw new org.omg.CORBA.BAD_TYPECODE();
}
return read(any.create_input_stream());
}
private static org.omg.CORBA.TypeCode _type;
public static org.omg.CORBA.TypeCode type() {
if(_type == null) {
_type = _orb().create_interface_tc(id(), "SimpleText");
}
return _type;
}
public static java.lang.String id() {
return "IDL:CorbaServer/SimpleText:1.0";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -