org.apache.yoko.orb.OB.Assert._OB_assert(length_ > 0);
}
protected void getValue(int index, org.omg.CORBA.Any a) {
Any any = (Any) a;
//
// Get the value from the primitive array at the given index
// and insert it into the any
//
org.apache.yoko.orb.OB.Assert._OB_assert(index < length_ && primitive_);
switch (contentKind_.value()) {
case org.omg.CORBA.TCKind._tk_short: {
short[] buf = (short[]) buf_;
any.replace(contentType_, new Integer(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_long: {
int[] buf = (int[]) buf_;
any.replace(contentType_, new Integer(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_ushort: {
short[] buf = (short[]) buf_;
any.replace(contentType_, new Integer(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_ulong: {
int[] buf = (int[]) buf_;
any.replace(contentType_, new Integer(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_float: {
float[] buf = (float[]) buf_;
any.replace(contentType_, new Float(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_double: {
double[] buf = (double[]) buf_;
any.replace(contentType_, new Double(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_boolean: {
boolean[] buf = (boolean[]) buf_;
any.replace(contentType_, Boolean.valueOf(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_char: {
char[] buf = (char[]) buf_;
any.replace(contentType_, new Character(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_octet: {
byte[] buf = (byte[]) buf_;
any.replace(contentType_, new Byte(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_string: {
String[] buf = (String[]) buf_;
any.replace(contentType_, new String(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_longlong: {
long[] buf = (long[]) buf_;
any.replace(contentType_, new Long(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_ulonglong: {
long[] buf = (long[]) buf_;
any.replace(contentType_, new Long(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_wchar: {
char[] buf = (char[]) buf_;
any.replace(contentType_, new Character(buf[index]));
break;
}
case org.omg.CORBA.TCKind._tk_wstring: {
String[] buf = (String[]) buf_;
any.replace(contentType_, new String(buf[index]));
break;
}
default:
org.apache.yoko.orb.OB.Assert._OB_assert(false);