if (object instanceof ICatalogEntry) {
ICatalogEntry catalogEntry = (ICatalogEntry) object;
result = catalogEntry.getKey();
}
else if (object instanceof ISuffixEntry) {
ISuffixEntry entry = (ISuffixEntry) object;
result = "[...]" + entry.getSuffix() + " " + XMLCatalogMessages.UI_LABEL_ARROW + " " + entry.getURI();
}
else if (object instanceof IRewriteEntry) {
IRewriteEntry entry = (IRewriteEntry) object;
result = entry.getStartString() + "[...] " + XMLCatalogMessages.UI_LABEL_ARROW + " " + entry.getRewritePrefix() + "[...]";
}
else if (object instanceof INextCatalog) {
INextCatalog nextCatalog = (INextCatalog) object;
// result = nextCatalog.getCatalogLocation();
result = URIUtils.convertURIToLocation(nextCatalog.getCatalogLocation());