Package net.sourceforge.gedapi.view

Examples of net.sourceforge.gedapi.view.Individual


  //public void nontestParseGLinksXML() throws IOException
  public void testParseGLinksXML() throws IOException
  {
    String gedcomURL = "http://localhost:8081/gedapi/export.ged";
    String individualId = "I55";
    Individual individual = new Individual(gedcomURL+"/"+individualId);
    individual.setId(individualId);
   
    boolean causedException = false;
    try
    {
      GLinkURL glinkURL = new GLinkURL(gedcomURL+"/"+individualId);
View Full Code Here


  //public void nontestParseGLinksMissingRelationXML() throws IOException
  public void testParseGLinksMissingRelationXML() throws IOException
  {
    String gedcomURL = "http://localhost:8081/gedapi/export.ged";
    String individualId = "I66";
    Individual individual = new Individual(gedcomURL+"/"+individualId);
    individual.setId(individualId);
   
    boolean causedException = false;
    try
    {
      Gedcom2View.parseGLinksXML(new GLinkURL(gedcomURL+"/"+individualId), individual, true, false);
View Full Code Here

   
    // DONE: fix it so that if an individual is still alive then the person's
    // name, birthDate and deathDate will be masked so that a living person's
    // data is not displayed on the web site
   
    Individual individual = new Individual(gedcomURL.getGedcomURL()+"/"+indi.getId());
    individual.id = indi.getId();

    int gedcomSex = indi.getSex();
    if(gedcomSex == PropertySex.UNKNOWN)
    {
      individual.setGender(Individual.UNKNOWN);
    }
    else if(gedcomSex == PropertySex.MALE)
    {
      individual.setGender(Individual.MALE);
    }
    else if(gedcomSex == PropertySex.FEMALE)
    {
      individual.setGender(Individual.FEMALE);
    }
   
    if(isLiving(indi))
    {
      // DONE: the .charAt(0) method call causes a
View Full Code Here

    }
   
    int indiIndex = -1;
    for(Indi indi : indis)
    {
      Individual newIndividual = indi2Individual(indi, gedcomURL, networkReload);
      if(newIndividual != null && newIndividual.lastModified > baseView.lastModified)
      {
        baseView.lastModified = newIndividual.lastModified;
      }
      individuals.add(newIndividual);
View Full Code Here

TOP

Related Classes of net.sourceforge.gedapi.view.Individual

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.