Examples of addAddress()


Examples of org.platformlayer.ops.networks.InterfaceModel.addAddress()

          InterfaceModel eth0 = InterfaceModel.build("eth0");
          AddressModel ipv4 = address4.get();
          eth0.addAddress(ipv4);

          AddressModel ipv6 = address6.get();
          eth0.addAddress(ipv6);

          List<InterfaceModel> interfaces = Lists.newArrayList();
          interfaces.add(eth0);

          model.put("interfaces", interfaces);
View Full Code Here

Examples of org.plugtree.training.simplevalidation.model.Person.addAddress()

    }

    @Test
    public void noErrorsValidation() {
        Person person = new Person("salaboy");
        person.addAddress(new Address(person.getId(), "7th", 123, "92013"));
        person.addPhone(new Phone(person.getId(), "555-1235"));

        StatefulKnowledgeSession ksession = createKSession();
        KnowledgeRuntimeLoggerFactory.newConsoleLogger(ksession);
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.AuthorPersonUniversal.addAddress()

    
     // Author Address
     if (fields.getDocumentAuthorAddress() != null) {
       Address add = fields.getDocumentAuthorAddress();
       add.setAddressUse(AddressType.WorkPlace.code);
       template.addAddress(add);
     }
    
     // Author telephone number
     if (fields.getDocumentAuthorTelephone() != null) {
       template.addTelephoneNumber(new Telecom("tel:" + fields.getDocumentAuthorTelephone()));
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.ChildPatientUniversal.addAddress()

                .setPatientID(fields.getPatientNHSNo())
                .setPatientIDType(idType)
                .setNHSNoTraceStatus(fields.getPatientNHSNoTraceStatus().code));
   
    if (fields.getPatientAddress() != null) {
      template.addAddress(fields.getPatientAddress());
    }
    template.addName(fields.getPatientName());
    template.setGender(fields.getPatientGender());
    template.setDateOfBirth(fields.getPatientBirthDate());
   
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.Guardian.addAddress()

                    .setNHSNoTraceStatus(fields.getGuardianNHSNoTraceStatus().code));
      guardianFields.setGuardianDetails(new GuardianPerson().setGuardianName(fields.getGuardianName()));
      guardianFields.setRole(fields.getGuardianRole());
     
      if (guardianAddress) {
        guardianFields.addAddress(fields.getGuardianAddress());
      }
      if (guardianTelephone) {
        guardianFields.addTelephoneNumber(new Telecom()
                      .setTelecom("tel:" + fields.getGuardianTelephone())
                      .setTelecomType(TelecomUseType.HomeAddress.code));
View Full Code Here

Examples of uk.nhs.interoperability.payloads.templates.PatientUniversal.addAddress()

                  .setAssigningOrganisation("V396A:Medway PCT")
                  .setPatientIDType(PatientIDType.LocalID.code));
    template.addPatientID(new PatientID()
                  .setPatientID("993254128")
                  .setPatientIDType(PatientIDType.UnverifiedNHSNumber.code));   
    template.addAddress(new Address()
                  .addAddressLine("17, County Court")
                  .addAddressLine("Woodtown")
                  .addAddressLine("Medway")
                  .setPostcode("ME5 FS3")
                  .setAddressUse(AddressType.Home.code));
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.