|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectujap.bibi.ParseMethods
static helper methods for parsing and re-formatting entries.
Field Summary | |
private static Authors |
authors
|
private static String[][] |
macros
macros[.][0] contains the text to be searched, macros[.][1] contains the replacement tex macro |
private static boolean |
macrosInitialized
|
Constructor Summary | |
private |
ParseMethods()
|
Method Summary | |
static String |
convertPubmedAuthorsToBibtex(String authors)
Convert the author String for a given Entry from Pubmed to Bibtex format. |
private static void |
initMacros()
helper method for macros() |
static String |
pages(String value)
parse pages (in pubmed format: "1654-62") and return proper value: "1654--1662" |
static Object |
parseAuthorsAsBibtex(String value)
parse a String containing author names and return an array of this type: |
static Object |
parseAuthorsAsPubmed(String value)
parse a String containing author names and return an array of this type: |
static String |
replaceMacros(String text)
find search strings and replace by tex macros, e.g. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Authors authors
private static String[][] macros
private static boolean macrosInitialized
Constructor Detail |
private ParseMethods()
Method Detail |
public static final String pages(String value)
public static Object parseAuthorsAsBibtex(String value) throws IOException
{ {firstname, lastname}, {anotherfirstname, anotherlast}, {..., ...} }First, Bibtex format is tried, if this gives an exception, pubmed format is tried. if this doesn't work, either, a single string containing the error message is returned.
value
- the string to parse
IOException
public static Object parseAuthorsAsPubmed(String value) throws IOException
{ {firstname, lastname}, {anotherfirstname, anotherlast}, {..., ...} }First, Bibtex format is tried, if this gives an exception, pubmed format is tried. if this doesn't work, either, a single string containing the error message is returned.
value
- the string to parse
IOException
public static final String convertPubmedAuthorsToBibtex(String authors) throws ParseException
authors
- the authors in pubmed format
ParseException
public static final String replaceMacros(String text)
text
- the text to search
private static final void initMacros()
|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |