public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
public static long extract (final org.omg.CORBA.Any any) { return any.extract_ulonglong(); }
/** * Constructs a new RelativeRequestTimeoutPolicy object from * an Any value. This is the official CORBA way of constructing * this policy (via orb.create_policy()), but JacORB also has a * convenience constructor that directly takes the timeout value * as a parameter. * * @param value an Any that contains the timeout as a CORBA * "unsigned long long" value (use Any.insert_ulonglong()). * The timeout is specified in CORBA time units (100 nanosecond resolution). * If you have a value in milliseconds, multiply that by 10,000. */ public RelativeRequestTimeoutPolicy (org.omg.CORBA.Any value) { super(); this.relative_expiry = value.extract_ulonglong(); }
/** * Constructs a new RelativeRoundtripTimeoutPolicy object from * an Any value. This is the official CORBA way of constructing * this policy (via orb.create_policy()), but JacORB also has a * convenience constructor that directly takes the timeout value * as a parameter. * * @param value an Any that contains the timeout as a CORBA * "unsigned long long" value (use Any.insert_ulonglong()). * The timeout is specified in CORBA time units (100 nanosecond resolution). * If you have a value in milliseconds, multiply that by 10,000. */ public RelativeRoundtripTimeoutPolicy (org.omg.CORBA.Any value) { super(); this.relative_expiry = value.extract_ulonglong(); }
public long get_ulonglong() throws TypeMismatch { checkDestroyed (); org.omg.CORBA.Any any = getRepresentation(); try { return any.extract_ulonglong(); } catch( org.omg.CORBA.BAD_OPERATION b ) { throw new TypeMismatch(); } }
public long get_ulonglong() throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulonglong) throw new TypeMismatch(); return any.extract_ulonglong(); }
result = any.extract_ulonglong(); break;
private static boolean compareLabels(org.omg.CORBA.TCKind kind, org.omg.CORBA.Any a1, org.omg.CORBA.Any a2) { switch (kind.value()) { case org.omg.CORBA.TCKind._tk_short: return a1.extract_short() == a2.extract_short(); case org.omg.CORBA.TCKind._tk_ushort: return a1.extract_ushort() == a2.extract_ushort(); case org.omg.CORBA.TCKind._tk_long: return a1.extract_long() == a2.extract_long(); case org.omg.CORBA.TCKind._tk_ulong: return a1.extract_ulong() == a2.extract_ulong(); case org.omg.CORBA.TCKind._tk_longlong: return a1.extract_longlong() == a2.extract_longlong(); case org.omg.CORBA.TCKind._tk_ulonglong: return a1.extract_ulonglong() == a2.extract_ulonglong(); case org.omg.CORBA.TCKind._tk_char: return a1.extract_char() == a2.extract_char(); case org.omg.CORBA.TCKind._tk_boolean: return a1.extract_boolean() == a2.extract_boolean(); case org.omg.CORBA.TCKind._tk_wchar: return a1.extract_wchar() == a2.extract_wchar(); case org.omg.CORBA.TCKind._tk_enum: return a1.create_input_stream().read_ulong() == a2 .create_input_stream().read_ulong(); default: Assert._OB_assert("Unsupported typecode for compare"); } return false; }
private static void extractIntoEvaluationResult(EvaluationResult result, Any any) { switch (any.type().kind().value()) { case TCKind._tk_boolean: result.setBool(any.extract_boolean()); break; case TCKind._tk_string: result.setString(any.extract_string()); break; case TCKind._tk_long: result.setLong(any.extract_long()); break; case TCKind._tk_short: result.setLong(any.extract_short()); break; case TCKind._tk_ulonglong: result.setLongLong(any.extract_ulonglong()); break; case TCKind._tk_float: result.setFloat(any.extract_float()); break; case TCKind._tk_double: result.setDouble(any.extract_double()); break; default: result.setAny(any); break; } } }