Package org.gedcomx.conclusion

Examples of org.gedcomx.conclusion.Gender


    if(gedxPerson.getGender() != null) {
      logger.warn(ConversionContext.getContext(), "Missing gender designation");
    }

    if(fact.getValue().equalsIgnoreCase("M")) {
      gedxPerson.setGender(new Gender(GenderType.Male));
    }
    else if(fact.getValue().equalsIgnoreCase("F")) {
      gedxPerson.setGender(new Gender(GenderType.Female));
    }
    else if(fact.getValue().equalsIgnoreCase("U")) {
      gedxPerson.setGender(new Gender(GenderType.Unknown));
    }
    else  {
      logger.warn(ConversionContext.getContext(), "Unrecognized gender designation ({})", fact.getValue());
    }
  }
View Full Code Here

TOP

Related Classes of org.gedcomx.conclusion.Gender

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.