Examples of AddressImpl


Examples of org.apache.shindig.social.core.model.AddressImpl

    canonical = new PersonImpl("canonical", "Shin Digg", name);

    canonical.setAboutMe("I have an example of every piece of data");
    canonical.setActivities(Lists.newArrayList("Coding Shindig"));

    Address address = new AddressImpl("PoBox 3565, 1 OpenStandards Way, Apache, CA");
    address.setCountry("US");
    address.setLatitude(28.3043F);
    address.setLongitude(143.0859F);
    address.setLocality("who knows");
    address.setPostalCode("12345");
    address.setRegion("Apache, CA");
    address.setStreetAddress("1 OpenStandards Way");
    address.setType("home");
    address.setFormatted("PoBox 3565, 1 OpenStandards Way, Apache, CA");
    canonical.setAddresses(Lists.newArrayList(address));

    canonical.setAge(33);
    BodyTypeImpl bodyType = new BodyTypeImpl();
    bodyType.setBuild("svelte");
    bodyType.setEyeColor("blue");
    bodyType.setHairColor("black");
    bodyType.setHeight(1.84F);
    bodyType.setWeight(74F);
    canonical.setBodyType(bodyType);

    canonical.setBooks(Lists.newArrayList("The Cathedral & the Bazaar", "Catch 22"));
    canonical.setCars(Lists.newArrayList("beetle", "prius"));
    canonical.setChildren("3");
    AddressImpl location = new AddressImpl();
    location.setLatitude(48.858193F);
    location.setLongitude(2.29419F);
    canonical.setCurrentLocation(location);

    canonical.setBirthday(new Date());
    canonical.setDrinker(new EnumImpl<Drinker>(Drinker.SOCIALLY));
    ListField email = new ListFieldImpl("work", "dev@shindig.apache.org");
    canonical.setEmails(Lists.newArrayList(email));

    canonical.setEthnicity("developer");
    canonical.setFashion("t-shirts");
    canonical.setFood(Lists.newArrayList("sushi", "burgers"));
    canonical.setGender(Person.Gender.male);
    canonical.setHappiestWhen("coding");
    canonical.setHasApp(true);
    canonical.setHeroes(Lists.newArrayList("Doug Crockford", "Charles Babbage"));
    canonical.setHumor("none to speak of");
    canonical.setInterests(Lists.newArrayList("PHP", "Java"));
    canonical.setJobInterests("will work for beer");

    Organization job1 = new OrganizationImpl();
    job1.setAddress(new AddressImpl("1 Shindig Drive"));
    job1.setDescription("lots of coding");
    job1.setEndDate(new Date());
    job1.setField("Software Engineering");
    job1.setName("Apache.com");
    job1.setSalary("$1000000000");
    job1.setStartDate(new Date());
    job1.setSubField("Development");
    job1.setTitle("Grand PooBah");
    job1.setWebpage("http://shindig.apache.org/");
    job1.setType("job");

    Organization job2 = new OrganizationImpl();
    job2.setAddress(new AddressImpl("1 Skid Row"));
    job2.setDescription("");
    job2.setEndDate(new Date());
    job2.setField("College");
    job2.setName("School of hard Knocks");
    job2.setSalary("$100");
View Full Code Here

Examples of org.apache.ws.jaxme.test.misc.address.impl.AddressImpl


public class AddressCreator {
  public static void writeAddress(Writer pWriter) throws JAXBException {
    // Create the element:
    Address addr = new AddressImpl();
    addr.setName(new NameTypeImpl());
    addr.getName().setFirst("Jane");
    addr.getName().setLast("Doe");
    addr.setPostal(new PostalTypeImpl());
    addr.getPostal().setStreet("34 Main Street");
    addr.getPostal().setCity("Boston");
    addr.getPostal().setState("MA");
    addr.getPostal().setZIP("02215");
    addr.setEmailDetails(new EmailDetailsTypeImpl());

    EmailType email = new EmailTypeImpl();
    email.setType("Private");
    email.setEmailAddress("jdoe@yourcompany.com");
    addr.getEmailDetails().getEmail().add(email);
    email = new EmailTypeImpl();
    email.setType("Office");
    email.setEmailAddress("josephdoe@mycompany.com");
    addr.getEmailDetails().getEmail().add(email);
    email = new EmailTypeImpl();
    email.setType("Office");
    email.setEmailAddress("joseph.doe@mycompany.com");
    addr.getEmailDetails().getEmail().add(email);

    addr.setPhoneDetails(new PhoneDetailsTypeImpl());
    PhoneType phone = new PhoneTypeImpl();
    phone.setType("Work");
    phone.setPhoneNumber("555.6789");
    addr.getPhoneDetails().getPhone().add(phone);
    phone = new PhoneTypeImpl();
    phone.setType("Fax");
    phone.setPhoneNumber("555.1212");
    addr.getPhoneDetails().getPhone().add(phone);

    // And save it into the file "Address.xml"
    JAXBContext context = JAXBContext.newInstance("org.apache.ws.jaxme.test.misc.address");
    Marshaller marshaller = context.createMarshaller();
    marshaller.marshal(addr, pWriter);
View Full Code Here

Examples of org.apache.ws.jaxme.test.misc.address.impl.AddressImpl


public class AddressCreator {
  public static void writeAddress(Writer pWriter) throws JAXBException {
    // Create the element:
    Address addr = new AddressImpl();
    addr.setName(new NameTypeImpl());
    addr.getName().setFirst("Jane");
    addr.getName().setLast("Doe");
    addr.setPostal(new PostalTypeImpl());
    addr.getPostal().setStreet("34 Main Street");
    addr.getPostal().setCity("Boston");
    addr.getPostal().setState("MA");
    addr.getPostal().setZIP("02215");
    addr.setEmailDetails(new EmailDetailsTypeImpl());

    EmailType email = new EmailTypeImpl();
    email.setType("Private");
    email.setEmailAddress("jdoe@yourcompany.com");
    addr.getEmailDetails().getEmail().add(email);
    email = new EmailTypeImpl();
    email.setType("Office");
    email.setEmailAddress("josephdoe@mycompany.com");
    addr.getEmailDetails().getEmail().add(email);
    email = new EmailTypeImpl();
    email.setType("Office");
    email.setEmailAddress("joseph.doe@mycompany.com");
    addr.getEmailDetails().getEmail().add(email);

    addr.setPhoneDetails(new PhoneDetailsTypeImpl());
    PhoneType phone = new PhoneTypeImpl();
    phone.setType("Work");
    phone.setPhoneNumber("555.6789");
    addr.getPhoneDetails().getPhone().add(phone);
    phone = new PhoneTypeImpl();
    phone.setType("Fax");
    phone.setPhoneNumber("555.1212");
    addr.getPhoneDetails().getPhone().add(phone);

    // And save it into the file "Address.xml"
    JAXBContext context = JAXBContext.newInstance("org.apache.ws.jaxme.test.misc.address");
    Marshaller marshaller = context.createMarshaller();
    marshaller.marshal(addr, pWriter);
View Full Code Here

Examples of org.broadleafcommerce.profile.core.domain.AddressImpl

        state.setName("Texas");
        state.setCountry(country);

        state = stateService.save(state);
       
        Address address = new AddressImpl();
        address.setAddressLine1("123 Test Rd");
        address.setCity("Dallas");
        address.setFirstName("Jeff");
        address.setLastName("Fischer");
        address.setPostalCode("75240");
        address.setPrimaryPhone("972-978-9067");
        address.setState(state);
        address.setCountry(country);
       
        FulfillmentGroup group = new FulfillmentGroupImpl();
        group.setAddress(address);
        List<FulfillmentGroup> groups = new ArrayList<FulfillmentGroup>();
        group.setMethod("standard");
View Full Code Here

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

      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);
      }
     
      for (int i = 0; i < value.length; i++) {
        if (sameName(elems[5], value[i])) {
          String email = (String) value[i].getValue();
         
          if (address == null) {
            address = new AddressImpl();
          }
          address.setElectronicMailAddresses(Collections.singleton(email));
        }
      }
      contact.setAddress(address);
         
      return contactPerson;
View Full Code Here

Examples of org.hornetq.core.postoffice.impl.AddressImpl

{
   public void testNoDots()
   {
      SimpleString s1 = new SimpleString("abcde");
      SimpleString s2 = new SimpleString("abcde");
      Address a1 = new AddressImpl(s1);
      Address a2 = new AddressImpl(s2);
      Assert.assertTrue(a1.matches(a2));
   }
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.