Package org.geotools.metadata.iso.citation

Examples of org.geotools.metadata.iso.citation.TelephoneImpl


      }
      if (contactPerson == null) {
        contactPerson = new ResponsiblePartyImpl();
      }
     
      TelephoneImpl telephone = null;
      AddressImpl address = null;
      ContactImpl contact = new ContactImpl();
     
      for (int i = 0; i < value.length; i++) {
       
        contactPerson.setContactInfo(contact);
       
        if (sameName(elems[1], value[i])) {
          String positionName = (String) value[i].getValue();
          contactPerson.setPositionName(new SimpleInternationalString(positionName));
        }
       
        if (sameName(elems[2], value[i])) {
          address = (AddressImpl) value[i].getValue();
        }
       
        if (sameName(elems[3], value[i])) {
          Collection voices = Collections.singleton(value[i].getValue());
          if (telephone == null) {
            telephone = new TelephoneImpl();
          }
          telephone.setVoices(voices);
        }
       
        if (sameName(elems[4], value[i])) {
                    Collection fax = Collections.singleton(value[i].getValue());
          if (telephone == null) {
            telephone = new TelephoneImpl();
          }
          telephone.setFacsimiles(fax);
        }       
       
        contact.setPhone(telephone);
      }
     
View Full Code Here


    System.out.println(citation.getIdentifiers());
    System.out.println(citation.getAlternateTitles());
}

private void telephone() {
    TelephoneImpl phone = new TelephoneImpl();
    phone.setVoices(Collections.singleton("555-1234"));
    phone.setFacsimiles(Collections.singleton("555-2FAX"));
    System.out.println(phone);
}
View Full Code Here

TOP

Related Classes of org.geotools.metadata.iso.citation.TelephoneImpl

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.