Class NameParser


  • public class NameParser
    extends java.lang.Object
    Parses a human's name to a CSLName object
    Author:
    Michel Kraemer
    • Constructor Summary

      Constructors 
      Constructor Description
      NameParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CSLName[] parse​(java.lang.String names)
      Parses names to CSLName objects.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NameParser

        public NameParser()
    • Method Detail

      • parse

        public static CSLName[] parse​(java.lang.String names)
        Parses names to CSLName objects. Also handles strings containing multiple names separated by and. The method always returns at least one object, even if the given names cannot be parsed. In this case the returned object just contains a literal string.
        Parameters:
        names - the names to parse
        Returns:
        the CSLName objects (never null and never empty)