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 otherRegulatingCondEq * the instance to copy */ public void copyBase(final RegulatingCondEq otherRegulatingCondEq) { // 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 (otherRegulatingCondEq.currentBitset.get(0)) { RegulatingControl regulatingControlAssociation = otherRegulatingCondEq.getRegulatingControl(); //this.idRegulatingControl = (regulatingControlAssociation != null) ? regulatingControlAssociation.getId() : ""; if (regulatingControlAssociation != null) { this.idRegulatingControl = regulatingControlAssociation.getId(); // the proper bit will be set when the setter is called } else { this.idRegulatingControl = ""; } } // TODO : Call the parent copy constructor instead ? super.copyBase(otherRegulatingCondEq); }
errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e);
xmlsw.writeEmptyElement(CIMURI.CIMURI,"Terminal.RegulatingControl"); xmlsw.writeAttribute(CIMModel.rdfURI, "resource", "#" + regulatingControl.getId()); } catch (XMLStreamException e) { StringBuilder errorMessage = new StringBuilder(
xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("RegulatingControl "); 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, "RegulatingControl"); xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("RegulatingControl "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment");
errorMessage.append(idTerminal); errorMessage.append("\" in \"RegulatingControl\" of id \""); errorMessage.append(this.getId()); errorMessage.append("\" !"); throw new LinkageException(errorMessage.toString()); errorMessage.append(idTerminal); errorMessage.append("\" in \"RegulatingControl\" of id \""); errorMessage.append(this.getId()); errorMessage.append("\" !"); throw new LinkageException(errorMessage.toString());
xmlsw.writeEmptyElement(CIMURI.CIMURI,"Terminal.RegulatingControl"); xmlsw.writeAttribute(CIMModel.rdfURI, "resource", "#" + regulatingControl.getId()); } catch (XMLStreamException e) { StringBuilder errorMessage = new StringBuilder(
this.idRegulatingControl = regulatingControlAssociation.getId();
RegulatingControl value = entry.getValue(); newRegulatingControl = value; this.id_RegulatingControl.put(newRegulatingControl.getId(), newRegulatingControl); this.allInstances.put(newRegulatingControl.getId(), newRegulatingControl); newMap.put(newRegulatingControl.getId(), newRegulatingControl); this.subsetsInstances.put( .put(newRegulatingControl.getId(), newRegulatingControl);