Package org.apache.juddi.datatype

Examples of org.apache.juddi.datatype.Email


    Contact contact = new Contact();
    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


    this.maker = maker;
  }

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

    // 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

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    Email email = (Email)object;
    Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);

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

    String emailValue = email.getValue();
    if (emailValue != null)
      element.appendChild(parent.getOwnerDocument().createTextNode(emailValue));

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

    Contact contact = new Contact();
    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

    Contact contact = new Contact();
    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

    Contact contact = new Contact();
    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

    this.maker = maker;
  }

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

    // 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

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    Email email = (Email)object;
    Element element = parent.getOwnerDocument().createElement(TAG_NAME);

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

    String emailValue = email.getValue();
    if (emailValue != null)
      element.appendChild(parent.getOwnerDocument().createTextNode(emailValue));

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

          if (pager != null)
            contact.addPhone(new Phone(pager,"pager"));

          String email = publisher.getEmailAddress();
          if (email != null)
            contact.addEmail(new Email(email,"email"));

          business.addContact(contact);
        }

        dataStore.saveBusiness(business,publisherID);
View Full Code Here

      statement.setInt(2, contactID);

      int listSize = emailList.size();
      for (int emailID = 0; emailID < listSize; emailID++)
      {
        Email email = (Email) emailList.elementAt(emailID);

        statement.setInt(3, emailID);
        statement.setString(4, email.getUseType());
        statement.setString(5, email.getValue());

        log.debug(
          "insert into EMAIL table:\n\n\t"
            + insertSQL
            + "\n\t BUSINESS_KEY="
            + businessKey.toString()
            + "\n\t CONTACT_ID="
            + contactID
            + "\n\t EMAIL_ID="
            + emailID
            + "\n\t USE_TYPE="
            + email.getUseType()
            + "\n\t EMAIL_ADDRESS="
            + email.getValue()
            + "\n");

        statement.executeUpdate();
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.Email

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.