PurchaseOrder o = (PurchaseOrder) x;
o.setDate( Calendar.getInstance() );
}
else if (x instanceof XmlCustomerBean)
{
XmlCustomerBean o = (XmlCustomerBean) x;
o.setName( "Bob" );
if (rnd( 2 ) == 0)
o.setAge( 23 );
if (rnd( 2 ) == 0)
o.setMoo( 24 );
if (rnd( 2 ) == 0)
o.setPoo( 200 );
}
else if (x instanceof XmlLineItemBean)
{
XmlLineItemBean o = (XmlLineItemBean) x;
o.setPerUnitOunces( new BigDecimal( 122.44 ) );
o.setPrice( new BigDecimal( 555.33 ) );
o.setQuantity( BigInteger.valueOf( 111 ) );
}
else if (x instanceof XmlShipperBean)
{
XmlShipperBean o = (XmlShipperBean) x;
o.setPerOunceRate( new BigDecimal( 3.14159 ) );
o.setName( "Eric" );
}
}