Class GEDCOMInterpreter

java.lang.Object
   |
   +----GEDCOMInterpreter

public class GEDCOMInterpreter
extends Object
This class interprets the meaning of given strings containing GEDCOM code. It assumes that only the necessary lines from a GEDCOM file are already selected, as done by the GEDCOMLocater class.

Author:
Vegard Brox

Constructor Index

 o GEDCOMInterpreter()

Method Index

 o family(String, boolean, String, String, String, Vector)
Interprets the given strings related to a family and creates a family object.
 o interpretID(String)
Interprets an ID from a string containing a line of GEDCOM code
 o person(String, String, String, String, String, String, String, Vector)
Interprets the given strings related to a person and creates a person object.

Constructors

 o GEDCOMInterpreter
 public GEDCOMInterpreter()

Methods

 o person
 public static Person person(String id,
                             String birth,
                             String death,
                             String christening,
                             String burial,
                             String sex,
                             String cFamily,
                             Vector sFamilies)
Interprets the given strings related to a person and creates a person object.

Parameters:
id - A string containing the ID of the person
birth - A string containing the birth date of the person
death - A string containing the death date of the person
christening - A string containing the christening date of the person
burial - A string containing the burial date of the person
sex - A string containing the sex of the person
cFamily - A string containing the ID of the family where this person is a child
sFamilies - A vector of strings containing IDs of families where this person is a spouse
Returns:
A person object initialised with the appropriate values
 o family
 public static Family family(String id,
                             boolean isMarriage,
                             String marriage,
                             String husband,
                             String wife,
                             Vector children)
Interprets the given strings related to a family and creates a family object.

Parameters:
id - A string containing the ID of the family
isMarriage - True if there actually was a marriage between husband and wife in this family, false otherwise
marriage - A string containing the marriage date for the husband and wife in the family
husband - A string containing the ID of the husband
wife - A string containing the ID of the wife
children - A vector of strings containing the IDs of the children
Returns:
A family object initialised with appropriate values
 o interpretID
 public static String interpretID(String idString)
Interprets an ID from a string containing a line of GEDCOM code

Parameters:
idString - The line of GEDCOM code
Returns:
The ID