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)) { try { // xmlsw.writeCharacters("\t"); xmlsw.writeStartElement(CIMURI.CIMURI, "CurrentLimit.value"); xmlsw.writeCharacters(String.valueOf(getValue())); xmlsw.writeEndElement(); // xmlsw.writeCharacters("\n"); } catch(XMLStreamException e) { StringBuilder errorMessage = new StringBuilder( "Error while trying to write the value of the attribute "); errorMessage.append("Value"); errorMessage.append(" in class "); errorMessage.append("CurrentLimit "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); } } return; }
xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("CurrentLimit "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); LOGGER.error(errorMessage.toString()); LOGGER.error(e.toString(), e); errorMessage.append("CurrentLimit "); 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, "CurrentLimit"); xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId()); errorMessage.append("CurrentLimit "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment"); errorMessage.append("CurrentLimit "); errorMessage.append("which ID has been initialized to : "); errorMessage.append(getId()); errorMessage.append(" in the subset "); errorMessage.append("Equipment");
CurrentLimit value = entry.getValue(); newCurrentLimit = value; this.id_CurrentLimit.put(newCurrentLimit.getId(), newCurrentLimit); this.allInstances.put(newCurrentLimit.getId(), newCurrentLimit); newMap.put(newCurrentLimit.getId(), newCurrentLimit); this.subsetsInstances.put( .put(newCurrentLimit.getId(), newCurrentLimit);