synchronized void _OB_marshal(OutputStream out) { try { out.write_fixed(value_.movePointRight(origType_.fixed_scale())); } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } }
public FixedDef(org.omg.CORBA.TypeCode tc) { def_kind = org.omg.CORBA.DefinitionKind.dk_Fixed; type = tc; try { digits = tc.fixed_digits(); scale = tc.fixed_scale(); } catch( Exception e ) { throw new INTERNAL(e.toString()); } }
try { origDigits = origType_.fixed_digits(); origScale = origType_.fixed_scale(); } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex);
int extra = fixed.scale() - type.fixed_scale(); if ( extra > 0 )
public void _write(org.omg.CORBA.portable.OutputStream out) { if (value == null) { throw new MARSHAL("value may not be null"); } TypeCode typeCode = _type(); try { out.write_fixed(value, typeCode.fixed_digits(), typeCode.fixed_scale()); } catch (BadKind e) { throw new RuntimeException("should never happen", e); } } }
public String toString() { int digits = 0; int scale = 0; try { digits = any.type().fixed_digits(); scale = any.type().fixed_scale(); } catch (BadKind ex) { // impossible } return "DynFixed with value=" + this.get_value() + ", digits=" + digits + ", scale=" + scale; } }
public void _write(org.omg.CORBA.portable.OutputStream out) { if (value == null) { throw new MARSHAL("value may not be null"); } TypeCode typeCode = _type(); try { out.write_fixed(value, typeCode.fixed_digits(), typeCode.fixed_scale()); } catch (BadKind e) { throw new RuntimeException("should never happen", e); } } }
synchronized void _OB_unmarshal(InputStream in) { try { value_ = in.read_fixed().movePointLeft(origType_.fixed_scale()); } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } notifyParent(); }
try { digits = any.type().fixed_digits(); scale = any.type().fixed_scale(); } catch (BadKind ex) { // impossible
try int extra = fixed_value.scale() - type().fixed_scale(); if ( extra > 0 )
public void insert_fixed(java.math.BigDecimal value, org.omg.CORBA.TypeCode type) { try { if (TypeCodeImpl.digits(value) > type.fixed_digits() || TypeCodeImpl.scale(value) > type.fixed_scale()) { throw wrapper.fixedNotMatch() ; } } catch (org.omg.CORBA.TypeCodePackage.BadKind bk) { // type isn't even of kind fixed throw wrapper.fixedBadTypecode( bk ) ; } typeCode = TypeCodeImpl.convertToNative(orb, type); object = value; isInitialized = true; }
out.write_short( typeCode.fixed_scale() ); break;
public void insert_fixed(java.math.BigDecimal value, org.omg.CORBA.TypeCode type) { try { if (TypeCodeImpl.digits(value) > type.fixed_digits() || TypeCodeImpl.scale(value) > type.fixed_scale()) { throw wrapper.fixedNotMatch(); } } catch (org.omg.CORBA.TypeCodePackage.BadKind bk) { // type isn't even of kind fixed throw wrapper.fixedBadTypecode(bk); } typeCode = TypeCodeImpl.convertToNative(orb, type); object = value; isInitialized = true; }
public void insert_fixed(java.math.BigDecimal value, org.omg.CORBA.TypeCode type) { try { if (TypeCodeImpl.digits(value) > type.fixed_digits() || TypeCodeImpl.scale(value) > type.fixed_scale()) { throw wrapper.fixedNotMatch(); } } catch (org.omg.CORBA.TypeCodePackage.BadKind bk) { // type isn't even of kind fixed throw wrapper.fixedBadTypecode(bk); } typeCode = TypeCodeImpl.convertToNative(orb, type); object = value; isInitialized = true; }
try return inputStream.read_fixed(typeCode.fixed_digits(), typeCode.fixed_scale());
java.math.BigDecimal f = val.extract_fixed(); if (f == null || f.scale() > origType_.fixed_scale()) throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue(); value_ = f;
o = ((CDRInputStream) s).read_fixed(typeCode.fixed_digits(), typeCode.fixed_scale()); o = bigDecimal.movePointLeft(typeCode.fixed_scale());
typeCode.fixed_scale()); } else { BigDecimal bigDecimal = s.read_fixed(); o = bigDecimal.movePointLeft((int)typeCode.fixed_scale());
|| myRealType.fixed_scale() != otherRealType.fixed_scale()) return false;