Package org.osm2world.core.world.modules

Examples of org.osm2world.core.world.modules.StreetFurnitureModule$Phone


    /**
     * Create an instance of {@link Phone }
     *
     */
    public Phone createPhone() {
        return new Phone();
    }
View Full Code Here


            Iterator it = ph.iterator();
      int phonearrPos = 0;
      while (it.hasNext()) {
                TelephoneNumber t = (TelephoneNumber) it.next();
        Phone phone = objectFactory.createPhone();
                String str = t.getNumber();
                log.debug("Telephone=" + str);
       
        // FIXME: If phone number is null, should the phone
        // not be set at all, or set to empty string?
        if (str != null) {
          phone.setValue(str);
        } else {
          phone.setValue("");
        }

        phonearr[phonearrPos] = phone;
        phonearrPos++;
            }
View Full Code Here

            Iterator it = ph.iterator();
      int phonearrPos = 0;
      while (it.hasNext()) {
                TelephoneNumber t = (TelephoneNumber) it.next();
        Phone phone = objectFactory.createPhone();
                String str = t.getNumber();
                log.debug("Telephone=" + str);
       
        // FIXME: If phone number is null, should the phone
        // not be set at all, or set to empty string?
        if (str != null) {
          phone.setValue(str);
        } else {
          phone.setValue("");
        }

        phonearr[phonearrPos] = phone;
        phonearrPos++;
            }
View Full Code Here

        new RoadModule(),
        new RailwayModule(),
        new BuildingModule(),
        new ParkingModule(),
        new TreeModule(),
        new StreetFurnitureModule(),
        new WaterModule(),
        new PoolModule(),
        new GolfModule(),
        new CliffModule(),
        new BarrierModule(),
View Full Code Here

                List<Phone> r = new ArrayList<Phone>();
                if (phone == null) {
                        return r;
                }
                for (int i = 0; i < phone.size(); i++) {
                        Phone x = new Phone();
                        x.setUseType(phone.get(i).getUseType());
                        x.setValue(phone.get(i).getValue());
                        r.add(x);
                }
               
                return r;
        }
View Full Code Here

    address.getAddressLine().add(addressLineOne);
    address.getAddressLine().add(addressLineTwo);
    address.getAddressLine().add(addressLineThree);
   
    //Contacts phone number details
    Phone phone = new Phone();
    phone.setUseType("Hotline");
    phone.setValue(data.getUSPhoneNumber());
   
    //Contact object
    Contact contact = new Contact();
    contact.setUseType("CEO");
    contact.getPersonName().add(personName);
View Full Code Here

   * @param useType
   * @return
   */
  public static Phone generatePhone(String phoneNumber, String useType)
  {
    Phone phone = new Phone();
    phone.setValue(phoneNumber);
    if (useType != null)
      phone.setUseType(useType);
   
    return phone;
  }
View Full Code Here

        Contacts cc = new Contacts();
        Contact c = new Contact();
        PersonName n = new PersonName();
        n.setValue("Bob");
        c.getPersonName().add(n);
        Phone p = new Phone();
        p.setValue(str51);
        c.getPhone().add(p);
        cc.getContact().add(c);;
        return cc;
    }
View Full Code Here

        Contacts cc = new Contacts();
        Contact c = new Contact();
        PersonName n = new PersonName();
        n.setValue("Bob");
        c.getPersonName().add(n);
        Phone p = new Phone();
        p.setValue(str50);
        p.setUseType(str256);
        c.getPhone().add(p);
        cc.getContact().add(c);;
        return cc;
    }
View Full Code Here

        Contacts cc = new Contacts();
        Contact c = new Contact();
        PersonName n = new PersonName();
        n.setValue("Bob");
        c.getPersonName().add(n);
        Phone p = new Phone();
        p.setValue(str50);
        p.setUseType(str255);
        c.getPhone().add(p);
        cc.getContact().add(c);;
        return cc;
    }
View Full Code Here

TOP

Related Classes of org.osm2world.core.world.modules.StreetFurnitureModule$Phone

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.