uk.ac.soton.harvester
Class DoAuthors

java.lang.Object
  |
  +--uk.ac.soton.harvester.DoAuthors
Direct Known Subclasses:
DoAuthors2

public class DoAuthors
extends java.lang.Object
implements AttributeMarker

doAuthors recognises the author sequence in the citations. It does not split into separate authors, that is left for splitAuthors just before the output phase. The purpose of this class is to set authb and authe. doAuthors divides into TWO cases, the trivial Hint1 case (which is now hardly ever used) and the much more complex "Plain" case. After these are called, a simple clean-up is attempted for the situation where the author choice has been too aggressive and possibly eaten into another part of the citation (artcile title or journal name). This is currently mainly used in the case of the XXX eprint citation style, where there are few clues to the boundary between author name and journal name.


Constructor Summary
DoAuthors()
           
 
Method Summary
protected  int doAuthorsHint1(DeciterState ds, int i)
          doAuthorsHint1 controls the relatively simple (and uncommon) situation where a list of authors is written like "Carr LA and JM Cook."
protected  int doAuthorsPlain(DeciterState ds, int i)
          doAuthorsPlain controls the gamut of author name list possibilities.
 int markAttribute(DeciterState ds, int i)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoAuthors

public DoAuthors()
Method Detail

markAttribute

public int markAttribute(DeciterState ds,
                         int i)
Specified by:
markAttribute in interface AttributeMarker
Tags copied from interface: AttributeMarker
Parameters:
ds - the deciter state object containing the current line and all the marker values
i - the offset in the citation line to start searching from
Returns:
the offset at which the next search should start

doAuthorsHint1

protected int doAuthorsHint1(DeciterState ds,
                             int i)
doAuthorsHint1 controls the relatively simple (and uncommon) situation where a list of authors is written like "Carr LA and JM Cook."
Parameters:
line - the full citation
i - the offset in the citation to start searching from
Returns:
the offset at which the next search should start

doAuthorsPlain

protected int doAuthorsPlain(DeciterState ds,
                             int i)
doAuthorsPlain controls the gamut of author name list possibilities. This method is one of the most complicated of the class.
Parameters:
line - the full citation
i - the offset in the citation to start searching from
Returns:
the offset at which the next search should start