Package net.sf.jabref.AuthorList

Examples of net.sf.jabref.AuthorList.Author


  public String format(String fieldText) {
    AuthorList a = AuthorList.getAuthorList(fieldText);
    if (a.size() == 0) {
      return fieldText;
    }
    Author first = a.getAuthor(0);
    StringBuffer sb = new StringBuffer();
    sb.append(first.getLastFirst(true));
    for (int i = 1; i < a.size(); i++) {
      sb.append(", ").append(a.getAuthor(i).getFirstLast(true));
    }
    return sb.toString();
  }
View Full Code Here


    if (names != null){
      AuthorList a = AuthorList.getAuthorList(names);
      if (name.intValue() > a.size()){
        throw new VMException("Author Out of Bounds. Number " + name + " invalid for " + names);
      }
      Author author = a.getAuthor(name.intValue() - 1);
     
      stack.push(BibtexNameFormatter.formatName(author, format, vm));
    } else {
      stack.push("");
    }
View Full Code Here

TOP

Related Classes of net.sf.jabref.AuthorList.Author

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.