protected void startParsing(final Attributes attrs) throws SAXException
{
name = attrs.getValue(getUri(), "name"); // NON-NLS
if (name == null)
{
throw new ParseException("Attribute 'name' is undefined.", getLocator()); // NON-NLS
}
bundleName = attrs.getValue(getUri(), "bundle-name"); // NON-NLS
if (bundleName == null)
{
throw new ParseException("Attribute 'bundle-name' is undefined.", getLocator()); // NON-NLS
}
expert = "true".equals(attrs.getValue(getUri(), "expert")); // NON-NLS
hidden = "true".equals(attrs.getValue(getUri(), "hidden")); // NON-NLS
preferred = "true".equals(attrs.getValue(getUri(), "preferred")); // NON-NLS
deprecated = "true".equals(attrs.getValue(getUri(), "deprecated")); // NON-NLS
final String valueTypeText = attrs.getValue(getUri(), "class"); // NON-NLS
if (valueTypeText != null)
{
try
{
final ClassLoader loader = ObjectUtilities.getClassLoader(DrillDownProfileReadHandler.class);
linkCustomizerType = Class.forName(valueTypeText, false, loader);
if (LinkCustomizer.class.isAssignableFrom(linkCustomizerType) == false)
{
//noinspection ThrowCaughtLocally
throw new ParseException("Attribute 'class' is not valid", getLocator()); // NON-NLS
}
}
catch (ParseException pe)
{
throw pe;
}
catch (Exception e)
{
throw new ParseException("Attribute 'class' is not valid", e, getLocator()); // NON-NLS
}
}
else
{
linkCustomizerType = PatternLinkCustomizer.class;