📄 demosequencehelper.java
字号:
package Demo2.DemoInterface2Package;
/**
* <ul>
* <li> <b>IDL Source</b> "Demo3.idl"
* <li> <b>IDL Name</b> ::Demo2::DemoInterface2::DemoSequence
* <li> <b>Repository Id</b> IDL:Demo2/DemoInterface2/DemoSequence:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* typedef sequence<long> DemoSequence;
* </pre>
*/
public final class DemoSequenceHelper {
private static org.omg.CORBA.TypeCode _type;
private static boolean _initializing;
private static org.omg.CORBA.ORB _orb () {
return org.omg.CORBA.ORB.init();
}
public static int[] read (final org.omg.CORBA.portable.InputStream _input) {
int[] result;
final int $length0 = _input.read_long();
result = new int[$length0];
_input.read_long_array(result, 0, $length0);
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream _output, final int[] _vis_value) {
_output.write_long(_vis_value.length);
_output.write_long_array(_vis_value, 0, _vis_value.length);
}
public static void insert (final org.omg.CORBA.Any any, final int[] _vis_value) {
any.type(Demo2.DemoInterface2Package.DemoSequenceHelper.type());
any.insert_Streamable(new Demo2.DemoInterface2Package.DemoSequenceHolder(_vis_value));
}
public static int[] extract (final org.omg.CORBA.Any any) {
int[] _vis_value;
if (any instanceof com.inprise.vbroker.CORBA.Any) {
Demo2.DemoInterface2Package.DemoSequenceHolder _vis_holder = new Demo2.DemoInterface2Package.DemoSequenceHolder();
((com.inprise.vbroker.CORBA.Any)any).extract_Streamable(_vis_holder);
_vis_value = _vis_holder.value;
} else {
_vis_value = Demo2.DemoInterface2Package.DemoSequenceHelper.read(any.create_input_stream());
}
return _vis_value;
}
public static org.omg.CORBA.TypeCode type () {
if (_type == null) {
synchronized (org.omg.CORBA.TypeCode.class) {
if (_type == null) {
org.omg.CORBA.TypeCode originalType = _orb().create_sequence_tc(0, _orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_long));
_type = _orb().create_alias_tc(id(), "DemoSequence", originalType);
}
}
}
return _type;
}
public static java.lang.String id () {
return "IDL:Demo2/DemoInterface2/DemoSequence:1.0";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -