id = ((PackageDoc) doc).name();
} else if (doc instanceof ClassDoc) {
ClassDoc cdoc = (ClassDoc) doc;
id = getIdentifier(cdoc.containingPackage()) + "." + cdoc.name();
} else if (doc instanceof ConstructorDoc) {
ConstructorDoc cdoc = (ConstructorDoc) doc;
id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
} else if (doc instanceof MethodDoc) {
MethodDoc cdoc = (MethodDoc) doc;
id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
} else if (doc instanceof FieldDoc) {
FieldDoc cdoc = (FieldDoc) doc;
id = getIdentifier(cdoc.containingClass()) + "." + cdoc.name();
} else {
id = "hash " + doc.hashCode();
}
return id;