| 71 | } |
| 72 | |
| 73 | String QcMLFile::QualityParameter::toXMLString(UInt indentation_level) const |
| 74 | { |
| 75 | String indent = String(indentation_level, '\t'); |
| 76 | String s = indent; |
| 77 | s += "<qualityParameter"; |
| 78 | s += " name=\"" + name + "\"" + " ID=\"" + id + "\"" + " cvRef=\"" + cvRef + "\"" + " accession=\"" + cvAcc + "\""; |
| 79 | if (!value.empty()) |
| 80 | { |
| 81 | s += " value=\"" + value + "\""; |
| 82 | } |
| 83 | if (!unitRef.empty()) |
| 84 | { |
| 85 | s += " unitRef=\"" + unitRef + "\""; |
| 86 | } |
| 87 | if (!unitAcc.empty()) |
| 88 | { |
| 89 | s += " unitAcc=\"" + unitAcc + "\""; |
| 90 | } |
| 91 | if (!flag.empty()) |
| 92 | { |
| 93 | s += " flag=\"true\""; |
| 94 | } |
| 95 | |
| 96 | s += "/>\n"; |
| 97 | |
| 98 | return s; |
| 99 | } |
| 100 | |
| 101 | QcMLFile::Attachment::Attachment() : |
| 102 | name(), |