/** * 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 otherOperationalLimitSet * the instance to copy */ public void copyBase(final OperationalLimitSet otherOperationalLimitSet) { // 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. if (otherOperationalLimitSet.currentBitset.get(1)) { Terminal terminalAssociation = otherOperationalLimitSet.getTerminal(); //this.idTerminal = (terminalAssociation != null) ? terminalAssociation.getId() : ""; if (terminalAssociation != null) { this.idTerminal = terminalAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idTerminal = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherOperationalLimitSet); }