/** * The obsolete invocation using server request. Implemented for * compatibility reasons, but is it more effectinve to use * {@link #_invoke}. * * @param request a server request. */ public void invoke(ServerRequest request) { // "destroy" has a void return type, the two other methods - boolean. Streamable result = request.operation().equals("destroy") ? null : new BooleanHolder(); gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result); }
/** {@inheritDoc} */ public boolean get_boolean() throws TypeMismatch { try { return ((BooleanHolder) holder).value; } catch (ClassCastException cex) { TypeMismatch m = new TypeMismatch(); m.initCause(cex); throw m; } }
/** {@inheritDoc} */ public void insert_boolean(boolean a_x) throws InvalidValue, TypeMismatch { try { ((BooleanHolder) holder).value = a_x; valueChanged(); } catch (ClassCastException cex) { TypeMismatch t = new TypeMismatch(); t.initCause(cex); throw t; } }
/** {@inheritDoc} */ public boolean extract_boolean() throws BAD_OPERATION { check(TCKind._tk_boolean); return ((BooleanHolder) has).value; }
private int animate(int value, int target, double animFactor, BooleanHolder animNeeded) { int newValue = animate(value, target, animFactor); if (newValue != value) { animNeeded.value = true; } return newValue; }
private int animateShrinkingOnly(int value, int target, double animFactor, BooleanHolder animNeeded) { int newValue = value < target ? target : animate(value, target, animFactor); if (newValue != value) { animNeeded.value = true; } return newValue; }