Package org.gedcomx.common

Examples of org.gedcomx.common.TextValue


    try {
      SourceDescription gedxSourceDescription = new SourceDescription();
      gedxSourceDescription.setId(dqSource.getId());

      if (dqSource.getAbbreviation() != null) {
        gedxSourceDescription.setTitles(Arrays.asList(new TextValue(dqSource.getAbbreviation())));
      }
      else if (dqSource.getTitle() != null) {
        gedxSourceDescription.setTitles(Arrays.asList(new TextValue(dqSource.getTitle())));
      }

      org.gedcomx.source.SourceCitation citation = new org.gedcomx.source.SourceCitation();
      citation.setCitationTemplate(new ResourceReference(URI.create("gedcom5:citation-template")));
      citation.setFields(new ArrayList<CitationField>());
View Full Code Here


    return pattern.matcher(telephoneNumber).matches();
  }

  public static void populateAgent(Agent agent, String id, String name, org.folg.gedcom.model.Address address, String phone, String fax, String email, String www) {
    agent.setId(id);
    agent.setNames(Arrays.asList(new TextValue(name)));

    if(address != null) {
      agent.setAddresses(new ArrayList<Address>());
      Address gedxAddress = new Address();
      gedxAddress.setValue(address.getValue());
View Full Code Here

TOP

Related Classes of org.gedcomx.common.TextValue

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.