Package net.sf.jabref

Examples of net.sf.jabref.AuthorList


*
*/
public class AuthorLF_FF implements LayoutFormatter {

    public String format(String fieldText) {
        AuthorList al = AuthorList.getAuthorList(fieldText);

        return al.getAuthorsLastFirstFirstLastAnds(false);
    }
View Full Code Here


*
*/
public class AuthorLF_FFAbbr implements LayoutFormatter {

    public String format(String fieldText) {
        AuthorList al = AuthorList.getAuthorList(fieldText);

        return al.getAuthorsLastFirstFirstLastAnds(true);
    }
View Full Code Here

    public String format(String fieldText)
    {

        StringBuilder sb = new StringBuilder(100);

        AuthorList al = AuthorList.getAuthorList(fieldText);

        addBody(sb, al, "author");
        return sb.toString();
       
        //    <author><firstname>L.</firstname><surname>Xue</surname></author>
View Full Code Here

   * (non-Javadoc)
   *
   * @see net.sf.jabref.export.layout.LayoutFormatter#format(java.lang.String)
   */
  public String format(String fieldText) {
        AuthorList list = AuthorList.getAuthorList(fieldText);
        return list.getAuthorsLastFirstAnds(true);
       
  }
View Full Code Here

  public void addBibtexEntry(BibtexEntry entry) {
    if (entry != null) {
      String fieldValue = entry.getField(_fieldName);
      if (fieldValue != null) {
        AuthorList authorList = AuthorList.getAuthorList(fieldValue);
        for (int i = 0; i < authorList.size(); i++) {
          AuthorList.Author author = authorList.getAuthor(i);
          addWordToIndex(author.getLastFirst(true));
          addWordToIndex(author.getLastFirst(false));
          addWordToIndex(author.getFirstLast(true));
          addWordToIndex(author.getFirstLast(false));
        }
View Full Code Here

    String format = (String) o1;
    Integer name = (Integer) o2;
    String names = (String) o3;
   
    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

*
*/
public class BibtexNameFormatter {

  public static String formatName(String authorsNameList, int whichName, String formatString, Warn warn){
    AuthorList al = AuthorList.getAuthorList(authorsNameList);
   
    if (whichName < 1 && whichName > al.size()){
      warn.warn("AuthorList " + authorsNameList + " does not contain an author with number " + whichName);
      return "";
    }
    return formatName(al.getAuthor(whichName-1), formatString, warn);
  }
View Full Code Here

TOP

Related Classes of net.sf.jabref.AuthorList

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.