Examples of Phone


Examples of localjava.client.stub.addressbook.wsiftypes.Phone

            address.setStreetNum(20);
            address.setStreetName("Peachtree Avenue");
            address.setCity("Atlanta");
            address.setState("GA");
            address.setZip(39892);
            Phone phone = new Phone();
            phone.setAreaCode(701);
            phone.setExchange("555");
            phone.setNumber("8721");
            address.setPhoneNumber(phone);

            input.setObjectPart("address", address);

            // do the invocation
View Full Code Here

Examples of models.entities.Phone

            Logger.debug("editContact request body: " + reqBody);
            ContactDTO contactDTO = new ObjectMapper().readValue(reqBody, ContactDTO.class);
            contactDTO.mapBack(contact);
            DaoManager.getContactDao().persist(contact);
            List<Phone> editedPhones = new ArrayList<Phone>();
            Phone p;
            Logger.info("1");
            for(PhoneListItemDTO phone: contactDTO.getPhones()) {
                p = new Phone();
                phone.mapBack(p);
                p.setContact(contact);
                editedPhones.add(p);
                DaoManager.getPhoneDao().persist(p);
            }
            Logger.info("3");
            loop: for(PhoneListItemDTO ph1: phones) {
View Full Code Here

Examples of org.apache.beehive.enhancedaddressbook.Phone

  public void testGetAddressFromName() throws Exception {
    Address address = Address.Factory.newInstance();
    address.setStreetName("Open Source Way");
    address.setCity("Seattle");
    address.setZip(98119);
    Phone phone = Phone.Factory.newInstance();
    phone.setAreaCode(206);
    phone.setNumber("111-2222");
    address.setPhoneNumber(phone);
    StateType state = StateType.Factory.newInstance();
    state.setState("WA");
    address.setState(state);
    client.addEntry("apache", address);
View Full Code Here

Examples of org.apache.beehive.sample.wsm.addressbook_enhanced.Phone

                    10230,
                    "NE Points Drive",
                    "Kirkland",
                    new StateType("WA"),
                    98033,
                    new Phone(425, "555", "1234")
                )
            );
        }
        catch (InvalidNameException e) {
            throw new RuntimeException("cannot add entry to address book");
View Full Code Here

Examples of org.apache.juddi.datatype.Phone

      statement.setInt(2, contactID);

      int listSize = phoneList.size();
      for (int phoneID = 0; phoneID < listSize; phoneID++)
      {
        Phone phone = (Phone) phoneList.elementAt(phoneID);

        statement.setInt(3, phoneID);
        statement.setString(4, phone.getUseType());
        statement.setString(5, phone.getValue());

        if (log.isDebugEnabled()) {
            log.debug(
              "insert into " + tablePrefix + "PHONE table:\n\n\t"
                + insertSQL
                + "\n\t BUSINESS_KEY="
                + businessKey.toString()
                + "\n\t CONTACT_ID="
                + contactID
                + "\n\t PHONE_ID="
                + phoneID
                + "\n\t USE_TYPE="
                + phone.getUseType()
                + "\n\t PHONE_NUMBER="
                + phone.getValue()
                + "\n");
        }

        statement.executeUpdate();
      }
View Full Code Here

Examples of org.apache.juddi.datatype.Phone

      // execute the statement
      resultSet = statement.executeQuery();
      while (resultSet.next())
      {
        Phone phone = new Phone();
        phone.setUseType(resultSet.getString(1));//("USE_TYPE"));
        phone.setValue(resultSet.getString(2));//("PHONE_NUMBER"));
        phoneList.add(phone);
      }

      return phoneList;
    }
View Full Code Here

Examples of org.apache.juddi.datatype.Phone

    contact.setUseType("myAddressUseType");
    contact.setPersonNameValue("Bob Whatever");
    contact.addDescription(new Description("Bob is a big fat jerk"));
    contact.addDescription(new Description("obBay sIay a igBay atFay erkJay","es"));
    contact.addEmail(new Email("bob@whatever.com"));
    contact.addPhone(new Phone("(603)559-1901"));
    contact.addAddress(address);

    Contacts contacts = new Contacts();
    contacts.addContact(contact);
    contacts.addContact(contact);
View Full Code Here

Examples of org.apache.juddi.datatype.Phone

  {
  }

  public RegistryObject unmarshal(Element element)
  {
    Phone obj = new Phone();

    // Attributes
    String useType = element.getAttribute("useType");
    if ((useType != null) && (useType.trim().length() > 0))
      obj.setUseType(useType);

    // Text Node Value
    obj.setValue(XMLUtils.getText(element));

    // Child Elements
    // {none}

    return obj;
View Full Code Here

Examples of org.apache.juddi.datatype.Phone

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    Phone phone = (Phone)object;
    String generic = getGeneric(null);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);

    String useType = phone.getUseType();
    if ((useType != null) && (useType.trim().length() > 0))
      element.setAttribute("useType",useType);

    String phoneValue = phone.getValue();
    if (phoneValue != null)
      element.appendChild(parent.getOwnerDocument().createTextNode(phoneValue));

    parent.appendChild(element);
  }
View Full Code Here

Examples of org.apache.juddi.datatype.Phone

    contact.setUseType("myAddressUseType");
    contact.setPersonNameValue("Bob Whatever");
    contact.addDescription(new Description("Bob is a big fat jerk"));
    contact.addDescription(new Description("obBay sIay a igBay atFay erkJay","es"));
    contact.addEmail(new Email("bob@whatever.com"));
    contact.addPhone(new Phone("(603)559-1901"));
    contact.addAddress(address);

    Contacts contacts = new Contacts();
    contacts.addContact(contact);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.