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
-
GEDCOMInterpreter()
-
-
family(String, boolean, String, String, String, Vector)
- Interprets the given strings related to a family and creates
a family object.
-
interpretID(String)
- Interprets an ID from a string containing a line of GEDCOM code
-
person(String, String, String, String, String, String, String, Vector)
- Interprets the given strings related to a person and creates a
person object.
GEDCOMInterpreter
public GEDCOMInterpreter()
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
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
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