message.append(this.getId()); message.append("\" is not consistent in this context:\n");
/** * Utility to return the content of this class into the CIM XML format * * @param xmlsw * the stream in which are stored the elements to write */ private void writeClass(XMLStreamWriter xmlsw) { if (currentBitset.get(0)) { for (SynchronousMachine initiallyUsedBySynchronousMachine : this.initiallyUsedBySynchronousMachine){ try { xmlsw.writeEmptyElement(CIMURI.CIMURI,"ReactiveCapabilityCurve.InitiallyUsedBySynchronousMachine"); xmlsw.writeAttribute(CIMModel.rdfURI, "resource", "#" + initiallyUsedBySynchronousMachine.getId()); } catch (XMLStreamException e) { StringBuilder errorMessage = new StringBuilder( "Error while trying to write the reference to "); errorMessage.append("ReactiveCapabilityCurve "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); } } } return; }
xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("ReactiveCapabilityCurve "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("ReactiveCapabilityCurve "); 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, "ReactiveCapabilityCurve"); xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("ReactiveCapabilityCurve "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("ReactiveCapabilityCurve "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment");
ReactiveCapabilityCurve value = entry.getValue(); newReactiveCapabilityCurve = value; this.id_ReactiveCapabilityCurve.put(newReactiveCapabilityCurve.getId(), newReactiveCapabilityCurve); this.allInstances.put(newReactiveCapabilityCurve.getId(), newReactiveCapabilityCurve); newMap.put(newReactiveCapabilityCurve.getId(), newReactiveCapabilityCurve); this.subsetsInstances.put( .put(newReactiveCapabilityCurve.getId(), newReactiveCapabilityCurve);
this.idInitialReactiveCapabilityCurve = initialReactiveCapabilityCurveAssociation.getId();