code: public boolean isTypeInProfile(ClassDoc cd, int profileValue) {
          return (configuration.profiles.getProfile(getTypeNameForProfile(cd)) <= profileValue);
      }
docs: Check if a type belongs to a profile.
  
  @param cd the classDoc object that needs to be checked
  @param profileValue the profile in which the type needs to be checked
  @return true if the type is in the profile