boolean isSystem = false;
if (typeName != null)
{
isSystem = (typeName.compareToIgnoreCase("SYSTEM") == 0); //$NON-NLS-1$
}
ICatalogEntry catalogEntry = new CatalogEntry(isSystem ? ICatalogEntry.ENTRY_TYPE_SYSTEM : ICatalogEntry.ENTRY_TYPE_PUBLIC);
catalogEntry.setKey(attributes.getValue("", CompatabilityConstants.ATT_ID)); //$NON-NLS-1$
String entryUri = attributes.getValue("", CompatabilityConstants.ATT_URI); //$NON-NLS-1$
// For relative URIs, try to resolve them using the corresponding base URI.
catalogEntry.setURI(resolveRelative(entryUri));
String webURL = attributes.getValue("", CompatabilityConstants.ATT_WEB_URL); //$NON-NLS-1$
if (webURL != null)
{
catalogEntry.setAttributeValue(
ICatalogEntry.ATTR_WEB_URL, webURL);
}
catalog.addCatalogElement(catalogEntry);
return;
}