Package net.sf.jabref.export.layout.format

Examples of net.sf.jabref.export.layout.format.XMLChars


    handledExtensions.add(BIBTEX + "author");
    populateFromBibtex(bibtex);
  }
 
  protected void populateFromBibtex(BibtexEntry bibtex) {
    LayoutFormatter chars = new XMLChars();
    if (bibtex.getField("title") != null) {
      if(CHARFORMAT)
        title = chars.format(bibtex.getField("title").toString());
      else
        title = bibtex.getField("title").toString();
    }
   
    if (bibtex.getField("publisher") != null) {
      if(CHARFORMAT)
        publisher = chars.format(bibtex.getField("publisher").toString());
      else
        publisher = bibtex.getField("publisher").toString();
    }
     
    if (bibtex.getField("bibtexkey") != null)
      id = bibtex.getField("bibtexkey").toString();
    if (bibtex.getField("place") != null) {
      if(CHARFORMAT)
        place = chars.format(bibtex.getField("place").toString());
      else
        place = bibtex.getField("place").toString();
    }
     
    date = getDate(bibtex)
View Full Code Here


    }
  }
 
  protected List<PersonName> getAuthors(String authors) {
    List<PersonName> result = new LinkedList<PersonName>();
    LayoutFormatter chars = new XMLChars();
   
    if (authors.indexOf(" and ") == -1) {
      if(CHARFORMAT)
        result.add(new PersonName(chars.format(authors)));
      else
        result.add(new PersonName(authors));
    }
        else
        {
            String[] names = authors.split(" and ");
            for (int i=0; i<names.length; i++) {
              if(CHARFORMAT)
                result.add(new PersonName(chars.format(names[i])));
              else
                result.add(new PersonName(names[i]));
            }
        }
    return result;
View Full Code Here

  private String format(String value)
  {
    if(value == null)
      return null;
    String result = null;
    LayoutFormatter chars = new XMLChars();
    result = chars.format(value);
    return result;
  }
View Full Code Here

TOP

Related Classes of net.sf.jabref.export.layout.format.XMLChars

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.