Namesutil.parseName ( String name ) (pro and enterprise editions only)
Description
Attempts to parse a string to a name. The parser is not perfect and works best on english formatted names (for example, "John Smith Jr." or "Guerrero, Antonio K". This uses standard settings for the parser. To get more control over how the name is parsed, use the EnglishNameParser class.
dr.put("FIRST_NAME", name.getFirstName());
dr.put("MIDDLE_NAME", name.getMiddleName());
dr.put("LAST_NAME", name.getLastName()); //dr.put( "SUFFIX", name.getAllSuffixString() ); } catch(Exception e ) { // The parser may throw an exception if it can't // parse the name. If this occurs we want to know about it.
log.warn("Error parsing name: "+ e.getMessage()); } }
Namesutil.parseName ( String name ) (pro and enterprise editions only)
Description
Attempts to parse a string to a name. The parser is not perfect and works best on english formatted names (for example, "John Smith Jr." or "Guerrero, Antonio K". This uses standard settings for the parser. To get more control over how the name is parsed, use the EnglishNameParser class.
dr.put("FIRST_NAME", name.getFirstName());
dr.put("MIDDLE_NAME", name.getMiddleName());
dr.put("LAST_NAME", name.getLastName()); //dr.put( "SUFFIX", name.getAllSuffixString() ); } catch(Exception e ) { // The parser may throw an exception if it can't // parse the name. If this occurs we want to know about it.
log.warn("Error parsing name: "+ e.getMessage()); } }