Package org.gedcomx.agent

Examples of org.gedcomx.agent.Address


    assertNull(gedxOrganization.getEmails());

    // ADDR
    assertNotNull(gedxOrganization.getAddresses());
    assertEquals(gedxOrganization.getAddresses().size(), 1);
    Address address = gedxOrganization.getAddresses().get(0);
    assertEquals(address.getValue()
      , "300 S Rio Grande St\n" +
        "Salt Lake City, UT 84101-1106");

    // null in this repository
    assertNull(gedxOrganization.getHomepage());
View Full Code Here


    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());
      gedxAddress.setCity(address.getCity());
      gedxAddress.setCountry(address.getCountry());
      gedxAddress.setPostalCode(address.getPostalCode());
      gedxAddress.setStateOrProvince(address.getState());
      gedxAddress.setStreet(address.getAddressLine1());
      gedxAddress.setStreet2(address.getAddressLine2());
      gedxAddress.setStreet3(address.getAddressLine3());
      agent.getAddresses().add(gedxAddress);

      if(address.getName() != null) {
        Marker addressContext = ConversionContext.getDetachedMarker("ADDR");
        ConversionContext.addReference(addressContext);
View Full Code Here

TOP

Related Classes of org.gedcomx.agent.Address

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.