throws SAXParseException {
// The name must definitely be present
final String nameValue = attributes.getValue(NAME_ATTRIBUTE_NAME);
if (nameValue == null || nameValue.length() == 0) {
throw new ExtendedSAXParseException(
"Missing attribute: " + NAME_ATTRIBUTE_NAME,
null);
}
// Use the name to look up the details
final StyleProperty details =
StylePropertyDetails.getStyleProperty(nameValue);
if (details == null) {
throw new ExtendedSAXParseException(
"Unknown StylePropertyDetails: " + nameValue,
null);
}
// Return the looked-up details