String length = elem.getAttribute("Length");
if (length != null && length.length() > 0) {
try {
comp.setLength(Long.parseLong(length));
} catch (NumberFormatException e) {
throw new ProfileException("Length must be a long integer: " + length, e);
}
}
comp.setConstantValue(elem.getAttribute("ConstantValue"));
String table = elem.getAttribute("Table");
if (table != null && table.length() > 0) {
try {
comp.setTable(table);
} catch (NumberFormatException e) {
throw new ProfileException("Table must be a short integer: " + table, e);
}
}
comp.setImpNote(getValueOfFirstElement("ImpNote", elem));
comp.setDescription(getValueOfFirstElement("Description", elem));