message.append(this.getId()); message.append("\" is not consistent in this context:\n");
/** * 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 otherConductingEquipment * the instance to copy */ public void copyBase(final ConductingEquipment otherConductingEquipment) { // 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 (otherConductingEquipment.currentBitset.get(1)) { BaseVoltage baseVoltageAssociation = otherConductingEquipment.getBaseVoltage(); //this.idBaseVoltage = (baseVoltageAssociation != null) ? baseVoltageAssociation.getId() : ""; if (baseVoltageAssociation != null) { this.idBaseVoltage = baseVoltageAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idBaseVoltage = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherConductingEquipment); }
errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment");
this.idBaseVoltage = baseVoltageAssociation.getId();
xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); try { xmlsw.writeStartElement(CIMURI.CIMURI, "BaseVoltage"); xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("BaseVoltage "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment");
BaseVoltage value = entry.getValue(); newBaseVoltage = value; this.id_BaseVoltage.put(newBaseVoltage.getId(), newBaseVoltage); this.allInstances.put(newBaseVoltage.getId(), newBaseVoltage); newMap.put(newBaseVoltage.getId(), newBaseVoltage); this.subsetsInstances.put( .put(newBaseVoltage.getId(), newBaseVoltage);
this.idBaseVoltage = baseVoltageAssociation.getId();