📄 asequencehelper.java
字号:
package Demo5.DemoInterfacePackage;
/**
* <ul>
* <li> <b>IDL Source</b> "Demo5.idl"
* <li> <b>IDL Name</b> ::Demo5::DemoInterface::aSequence
* <li> <b>Repository Id</b> IDL:Demo5/DemoInterface/aSequence:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* typedef sequence<short,10> aSequence;
* </pre>
*/
public final class aSequenceHelper {
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 short[] read (final org.omg.CORBA.portable.InputStream _input) {
short[] result;
final int $length0 = _input.read_long();
result = new short[$length0];
_input.read_short_array(result, 0, $length0);
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream _output, final short[] _vis_value) {
if (_vis_value.length > 10) {
throw new org.omg.CORBA.BAD_PARAM("Invalid sequence length");
}
_output.write_long(_vis_value.length);
_output.write_short_array(_vis_value, 0, _vis_value.length);
}
public static void insert (final org.omg.CORBA.Any any, final short[] _vis_value) {
any.type(Demo5.DemoInterfacePackage.aSequenceHelper.type());
any.insert_Streamable(new Demo5.DemoInterfacePackage.aSequenceHolder(_vis_value));
}
public static short[] extract (final org.omg.CORBA.Any any) {
short[] _vis_value;
if (any instanceof com.inprise.vbroker.CORBA.Any) {
Demo5.DemoInterfacePackage.aSequenceHolder _vis_holder = new Demo5.DemoInterfacePackage.aSequenceHolder();
((com.inprise.vbroker.CORBA.Any)any).extract_Streamable(_vis_holder);
_vis_value = _vis_holder.value;
} else {
_vis_value = Demo5.DemoInterfacePackage.aSequenceHelper.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(10, _orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_short));
_type = _orb().create_alias_tc(id(), "aSequence", originalType);
}
}
}
return _type;
}
public static java.lang.String id () {
return "IDL:Demo5/DemoInterface/aSequence:1.0";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -