jimmc.roots
Class RootsSource

java.lang.Object
  |
  +--jimmc.roots.RootsRecord
        |
        +--jimmc.roots.RootsSource

public class RootsSource
extends RootsRecord

RootsSource gives information about a source of data used in the RootsBase.


Fields inherited from class jimmc.roots.RootsRecord
base, comment, editDate, key, keyComment, note1, note2, note2d, sources, sourceString
 
Constructor Summary
RootsSource(RootsBase base)
           
 
Method Summary
protected  boolean addNcv(Ncv nv)
           
static RootsSource[] FindRecordList(RootsBase base, java.lang.String s)
           
 RootsRecord[] findReference(java.lang.String what)
          Find a referenced record.
 void formatNcvBody(java.lang.StringBuffer sb)
          Print out the body of a source record
 java.lang.String formatNcvType()
          Print out the type of a source record
 java.lang.String formatOneLine(PrintOptions po)
          Format a one-line summary.
static RootsSource ParseNcvLines(RootsBase base, java.lang.String[] lines)
           
 void println(java.lang.String s)
          Print a line of text to the output stream associated with our base.
 
Methods inherited from class jimmc.roots.RootsRecord
asArray, fieldMatches, findListReference, formatBrief, formatGedcom, formatGedcomBody, formatGedcomEvent, formatGedcomItem, formatGedcomKey, formatGedcomKey, formatGedcomReference, formatKey, formatKey, formatKeyLine, formatLabeledItem, formatLabeledItem, formatLabeledItems, formatLabeledItems, formatMedium, formatMultiLine, formatNcv, formatNcvItem, formatNote1, getCtreeReferenceKeys, getKey, layoutBox, layoutBoxReference, layoutCtree, link, parseDate, parseDates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootsSource

public RootsSource(RootsBase base)
Method Detail

ParseNcvLines

public static RootsSource ParseNcvLines(RootsBase base,
                                        java.lang.String[] lines)

addNcv

protected boolean addNcv(Ncv nv)
Overrides:
addNcv in class RootsRecord

FindRecordList

public static RootsSource[] FindRecordList(RootsBase base,
                                           java.lang.String s)

formatNcvType

public java.lang.String formatNcvType()
Print out the type of a source record
Overrides:
formatNcvType in class RootsRecord

formatNcvBody

public void formatNcvBody(java.lang.StringBuffer sb)
Print out the body of a source record
Overrides:
formatNcvBody in class RootsRecord

formatOneLine

public java.lang.String formatOneLine(PrintOptions po)
Description copied from class: RootsRecord
Format a one-line summary.
Overrides:
formatOneLine in class RootsRecord

findReference

public RootsRecord[] findReference(java.lang.String what)
Description copied from class: RootsRecord
Find a referenced record.
Overrides:
findReference in class RootsRecord
Following copied from class: jimmc.roots.RootsRecord
Parameters:
what - the name of the reference item to follow
Returns:
the referenced record, or null if not found

println

public void println(java.lang.String s)
Description copied from class: RootsRecord
Print a line of text to the output stream associated with our base.
Overrides:
println in class RootsRecord