this.setAcceptableDuration(typedValue); return; } else {
/** * Utility to copy the "base" of an other instance of the same class * This utility does not copy the associations with other instances from * the instance to copy * * @param otherOperationalLimitType * the instance to copy */ public void copyBase(final OperationalLimitType otherOperationalLimitType) { // assigning enum type : OperationalLimitDirectionKind newdirection; if (otherOperationalLimitType.currentBitset.get(1)) { newdirection = otherOperationalLimitType.getDirection(); this.setDirection(newdirection); } float newacceptableDuration; // assigning primitive type : if (otherOperationalLimitType.currentBitset.get(2)) { newacceptableDuration = otherOperationalLimitType.getAcceptableDuration(); this.setAcceptableDuration(newacceptableDuration); } // Memory allocation has done successfully ! // Dropping "old" objects... // This part may change : we do nothing to allow the user to access // object by their id from the global model. // TODO : Call the parent copy constructor instead ? super.copyBase(otherOperationalLimitType); }