protected ICatalogEntry getEntry() { if (catalogEntry == null) { if ((fCatalogElement != null) && (fCatalogElement.getType() == ICatalogElement.TYPE_ENTRY)) { catalogEntry = (ICatalogEntry) fCatalogElement; } else { if (catalog != null) { catalogEntry = (ICatalogEntry) catalog.createCatalogElement(ICatalogElement.TYPE_ENTRY); } } } return catalogEntry; }
protected INextCatalog getNextCatalog() { if (nextCatalog == null) { if ((fCatalogElement != null) && (fCatalogElement.getType() == ICatalogElement.TYPE_NEXT_CATALOG)) { nextCatalog = (INextCatalog) fCatalogElement; } else { if (catalog != null) { nextCatalog = (INextCatalog) catalog.createCatalogElement(ICatalogElement.TYPE_NEXT_CATALOG); } } } return nextCatalog; }
continue; ICatalogElement catalogElement = catalog.createCatalogElement(type); if (catalogElement instanceof ICatalogEntry)
public Object clone() { ICatalogElement element = ownerCatalog.createCatalogElement(type); String[] attributes = getAttributes(); for (int i = 0; i < attributes.length; i++) { String attrName = attributes[i]; String attrValue = getAttributeValue(attrName); element.setAttributeValue(attrName, attrValue); } element.setOwnerCatalog(ownerCatalog); element.setId(id); return element; }