public static boolean isForName(@Nonnull String value){
  if (value.equals(""))   return false;
  for (int i=0, len=value.length(); i < len; i++) {
    char c=value.charAt(i);
    if (c != '.' && !Character.isJavaIdentifierPart(c))     return false;
  }
  return true;
}

public static boolean isForName ( @ Nonnull String value ) { if ( value . equals ( "" ) ) return false ; for ( int i = 0 , len = value . length ( ) ; i < len ; i ++ ) { char c = value . charAt ( i ) ; if ( c != '.' && ! Character . isJavaIdentifierPart ( c ) ) return false ; } return true ; }
returns true if the string looks like a java type name .
