code: public String getClassName(ClassDoc cd) {
          PackageDoc pd = cd.containingPackage();
          if (pd != null && shouldExcludeQualifier(cd.containingPackage().name())) {
              return cd.name();
          } else {
              return cd.qualifiedName();
          }
      }
docs: Return the qualified name of the <code>ClassDoc</code> if it's qualifier is not excluded.  Otherwise,
  return the unqualified <code>ClassDoc</code> name.
  @param cd the <code>ClassDoc</code> to check.