super();
// 'name' - Property name. Required
name = element.getAttributeValue("name");
if (name == null || name.equals("")) {
throw new JDOMException("Missing or empty name attribute in <parameter>");
}
// 'type' - Property type. Required
try {
type = Integer.parseInt(element.getAttributeValue("type"));
} catch (Exception e) {
throw new JDOMException("Missing or invalid type attribute in <parameter>");
}
// 'sortOrder' - Property sort order. Optional
try {
sortOrder = Integer.parseInt(element.getAttributeValue("sortOrder"));
} catch (Exception e) {
sortOrder = 0;
}
// 'typeMeta' - Property type meta information Optional.
typeMeta = Util.trimmedOrBlank(element.getAttributeValue("typeMeta"));
// 'validation' - Property validation string
validationString = element.getAttributeValue("validation");
// 'hidden' - Hidden property
hidden = "true".equalsIgnoreCase(element.getAttributeValue("hidden"));
// 'category' - Property category
try {
String c = element.getAttributeValue("category");
if (c != null) {
category = Integer.parseInt(c);
}
} catch (Exception e) {
throw new JDOMException("Invalid category attribute in <parameter>");
}
// restart required
restartRequired = "true".equalsIgnoreCase(element.getAttributeValue("restartRequired"));