/** {@inheritDoc} */ public void setPropertyValue(final int index) throws HostException { ICobolBinding child = getChildrenList().get(index); /* Children that are not bound to a value object are ignored. * This includes Choices and dynamically generated counters * for instance. */ if (!child.isBound()) { return; } /* Set the Value object property value from binding object */ Object bindingValue = null; switch (index) { case 0: bindingValue = child.getObjectValue(LsUnsignedPackedDecimal.class); mValueObject.setLsUnsignedPackedDecimal((LsUnsignedPackedDecimal) bindingValue); break; default: break; } if (_log.isDebugEnabled()) { _log.debug( "Setting value of Value object property " + child.getJaxbName() + " value=" + bindingValue); } }
/** {@inheritDoc} */ public void setChildrenValues() throws HostException { /* Make sure there is an associated Value object*/ if (mValueObject == null) { createValueObject(); } /* Get Value object property _lsUnsignedPackedDecimal */ if (_log.isDebugEnabled()) { _log.debug( "Getting value from Value object property " + "_lsUnsignedPackedDecimal" + " value=" + mValueObject.getLsUnsignedPackedDecimal()); } _lsUnsignedPackedDecimal.setObjectValue(mValueObject.getLsUnsignedPackedDecimal()); }