|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jimmc.roots.RootsBase
RootsBase is the database object for a simple in-memory genealogy database.
Field Summary | |
PrintOptions |
currentPrintOptions
|
PrintOptions |
defaultPrintOptions
|
PrintOptions |
defaultShowOptions
|
Constructor Summary | |
RootsBase()
Create an empty roots database |
Method Summary | |
void |
clearSelection()
Clear the current selection. |
RootsRecord |
findRecord(java.lang.String key)
Given a key value, return the record for that key |
RootsRecord[] |
findRecordList(java.lang.String keylist)
Given a comma-separated list of key values, return an array of records for those keys. |
RootsRecord[] |
findSelection(java.lang.String[] what,
int start,
int count)
Get the records referred to by the specified selection expression. |
RootsRecord[] |
findSelection(java.lang.String[] what,
int start,
int count,
RootsRecord[] selection)
Get a selection by expression relative to another selection. |
RootsRecord[] |
findSelection(java.lang.String what,
RootsRecord[] selection)
Get a selection by simple expression relative to another selection. |
protected RootsRecord[] |
findSelectionField(java.lang.String[] what,
int start,
int count,
RootsRecord[] selection,
java.lang.String fieldName)
Process the name matching operations. |
protected RootsRecord[] |
findSelectionPlus(java.lang.String[] what,
int start,
int count,
RootsRecord[] selection)
Process the "plus" keyword in a selection. |
protected RootsRecord[] |
findSelectionRecurse(java.lang.String[] what,
int start,
int count,
RootsRecord[] selection)
Process the "recurse" keyword in a selection. |
int |
getRecordCount()
Get the number of records in the database. |
java.lang.String[] |
getSelectedKeys()
Get the list of currently selected keys. |
java.lang.String |
getSelectedKeysString()
Get the list of currently selected keys as a single string. |
static void |
main(java.lang.String[] args)
Sample main program |
void |
println(java.lang.String s)
Print a line to our current output |
void |
printRecords(PrintOptions po)
Print the current selection in the specified format. |
void |
printRecords(PrintOptions po,
RootsRecord[] ra)
Print the specified selection using the given print options. |
void |
printRecords(PrintOptions po,
java.lang.String[] what,
int start,
int count)
Print out the data for the given selection expression |
void |
readNcvFile(java.lang.String filename)
Read jimmc's name:value database file into the database. |
void |
select(java.lang.String[] what,
int start,
int count)
Change the selection to the referenced selection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public PrintOptions defaultPrintOptions
public PrintOptions defaultShowOptions
public PrintOptions currentPrintOptions
Constructor Detail |
public RootsBase()
Method Detail |
public int getRecordCount()
public void readNcvFile(java.lang.String filename)
public RootsRecord findRecord(java.lang.String key)
public RootsRecord[] findRecordList(java.lang.String keylist)
public void printRecords(PrintOptions po)
public void printRecords(PrintOptions po, RootsRecord[] ra)
public void printRecords(PrintOptions po, java.lang.String[] what, int start, int count)
public void clearSelection()
public void select(java.lang.String[] what, int start, int count)
what
- array of strings containing selection expressionstart
- index of first item in selection expressioncount
- number of items in selection expressionpublic RootsRecord[] findSelection(java.lang.String[] what, int start, int count)
what
- array of selection strings in expressionstart
- index of first item to considercount
- number of items to considerpublic RootsRecord[] findSelection(java.lang.String[] what, int start, int count, RootsRecord[] selection)
what
- array of selection strings in expressionstart
- index of first item to considercount
- number of items to considerselection
- the selection this expression is relative toprotected RootsRecord[] findSelectionRecurse(java.lang.String[] what, int start, int count, RootsRecord[] selection)
protected RootsRecord[] findSelectionPlus(java.lang.String[] what, int start, int count, RootsRecord[] selection)
protected RootsRecord[] findSelectionField(java.lang.String[] what, int start, int count, RootsRecord[] selection, java.lang.String fieldName)
public RootsRecord[] findSelection(java.lang.String what, RootsRecord[] selection)
what
- one selection string.public java.lang.String[] getSelectedKeys()
public java.lang.String getSelectedKeysString()
public void println(java.lang.String s)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |