private void encodeOwsContact(OwsContact contact, ContactType xcontact) { contact.getOnlineResource().ifPresent(site -> encodeOnlineResource(site, xcontact.addNewOnlineResource())); contact.getContactInstructions().ifPresent(xcontact::setContactInstructions); contact.getHoursOfService().ifPresent(xcontact::setHoursOfService); contact.getPhone().ifPresent(x -> encodeOwsPhone(x, xcontact.addNewPhone())); contact.getAddress().ifPresent(x -> encodeOwsAddress(x, xcontact.addNewAddress())); }
private OwsContact parseContact(ContactType contactInfo) { if (contactInfo == null) { return null; } OwsOnlineResource onlineResource = parseOnlineResource(contactInfo.getOnlineResource()); String hoursOfService = contactInfo.getHoursOfService(); String contactInstructions = contactInfo.getContactInstructions(); OwsAddress address = parseAddress(contactInfo.getAddress()); OwsPhone phone = parsePhone(contactInfo.getPhone()); return new OwsContact(phone, address, onlineResource, hoursOfService, contactInstructions); }
contact.addNewPhone().addVoice(sosServiceProvider.getPhone()); final AddressType address = contact.addNewAddress(); if (sosServiceProvider.getDeliveryPoint() != null) { address.addDeliveryPoint(sosServiceProvider.getDeliveryPoint());
/** * Sets the "ContactInfo" element */ public void setContactInfo(net.opengis.ows.x11.ContactType contactInfo) { synchronized (monitor()) { check_orphaned(); net.opengis.ows.x11.ContactType target = null; target = (net.opengis.ows.x11.ContactType)get_store().find_element_user(CONTACTINFO$4, 0); if (target == null) { target = (net.opengis.ows.x11.ContactType)get_store().add_element_user(CONTACTINFO$4); } target.set(contactInfo); } }
/** * Sets the "ContactInfo" element */ public void setContactInfo(net.opengis.ows.x11.ContactType contactInfo) { synchronized (monitor()) { check_orphaned(); net.opengis.ows.x11.ContactType target = null; target = (net.opengis.ows.x11.ContactType)get_store().find_element_user(CONTACTINFO$0, 0); if (target == null) { target = (net.opengis.ows.x11.ContactType)get_store().add_element_user(CONTACTINFO$0); } target.set(contactInfo); } }
String positionName = xb_contact.getPositionName(); String[] telephones = (xb_contactType.getPhone()!=null? (xb_contactType.getPhone().getVoiceArray()!=null? xb_contactType.getPhone().getVoiceArray():null):null); String[] fax = (xb_contactType.getPhone()!=null? (xb_contactType.getPhone().getFacsimileArray()!=null? xb_contactType.getPhone().getFacsimileArray():null):null); String hoursOfService = xb_contactType.getHoursOfService(); String contactInstructions = xb_contactType.getContactInstructions(); AddressType xb_address = xb_contactType.getAddress(); OnlineResourceType xb_onlineRes = xb_contactType.getOnlineResource();
/** * Sets the "ContactInfo" element */ public void setContactInfo(net.opengis.ows.x11.ContactType contactInfo) { synchronized (monitor()) { check_orphaned(); net.opengis.ows.x11.ContactType target = null; target = (net.opengis.ows.x11.ContactType)get_store().find_element_user(CONTACTINFO$6, 0); if (target == null) { target = (net.opengis.ows.x11.ContactType)get_store().add_element_user(CONTACTINFO$6); } target.set(contactInfo); } }