Examples of Person


Examples of test.component3.Person

  private static Log log = LogFactory.getInstance().getLog("firefly-system");
  public static ApplicationContext xmlApplicationContext = new XmlApplicationContext();

  @Test
  public void testXmlInject() {
    Person person = xmlApplicationContext.getBean("person");
    Assert.assertThat(person.getName(), is("Jack"));
    PersonService personService = xmlApplicationContext
        .getBean("personService");
    List<Object> l = personService.getTestList();
    Assert.assertThat(l.size(), greaterThan(0));
    int i = 0;
    for (Object p : l) {
      if (p instanceof Person) {
        person = (Person) p;
        i++;
        log.debug(person.getName());
      } else if (p instanceof Map) {
        @SuppressWarnings("unchecked")
        Map<Object, Object> map = (Map<Object, Object>)p;
        log.info(map.toString());
        Assert.assertThat(map.entrySet().size(), greaterThan(0));
View Full Code Here

Examples of test.wsdl.interop3.compound1.xsd.Person

            doc.setID("myID");
            Document newDoc = binding.echoDocument(doc);

            assertEquals("Documents didn't match!", newDoc, doc);

            Person person = new Person();
            person.setAge(33);
            person.setMale(true);
            person.setName("Frodo");
            person.setID(2.345F);
            Person newPerson = binding.echoPerson(person);

            assertEquals("Returned Person didn't match!", newPerson, person);
        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
View Full Code Here

Examples of test.wsdl.interop3.compound2.xsd.Person

        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);
View Full Code Here

Examples of trader.model.Person

                    // the id must not be null
                    statement.executeUpdate("ALTER TABLE Person ALTER id SET NOT NULL");
                    // get all entries in the table 'Person'
                    rs = statement.executeQuery("SELECT * FROM Person");
                    while (rs.next()) {
                        Person person =
                                new Person(rs.getString("firstname"), rs.getString("surname"),
                                        rs.getBoolean("sex"));
                        // add the hashCode as id
                        statement.executeUpdate("UPDATE Person SET id = '" + person.getId()
                                + "' WHERE id = 'P-NULL' AND firstname = '" + person.getFirstname()
                                + "' AND surname = '" + person.getSurname() + "' AND sex = "
                                + person.getSex());
                    }
                    // Update the version number
                    version = 2;
                }
                if (version == 2) {
View Full Code Here

Examples of ugh.dl.Person

     * -------------------------------- Autoren als Personen --------------------------------
     */
    if (myLeft.equals("AU")) {
      StringTokenizer tokenizer = new StringTokenizer(myRight, ";");
      while (tokenizer.hasMoreTokens()) {
        Person p = new Person(this.myPrefs.getMetadataTypeByName("ZBLAuthor"));
        String myTok = tokenizer.nextToken();

        if (myTok.indexOf(",") == -1) {
          throw new WrongImportFileException("Parsingfehler: Vorname nicht mit Komma vom Nachnamen getrennt ('" + myTok + "')");
        }

        p.setLastname(myTok.substring(0, myTok.indexOf(",")).trim());
        p.setFirstname(myTok.substring(myTok.indexOf(",") + 1, myTok.length()).trim());
        p.setRole("ZBLAuthor");
        inStruct.addPerson(p);
      }
      return;
    }

    /*
     * -------------------------------- AutorVariationen als Personen --------------------------------
     */
    if (myLeft.equals("NH")) {
      StringTokenizer tokenizer = new StringTokenizer(myRight, ";");
      while (tokenizer.hasMoreTokens()) {
        Person p = new Person(this.myPrefs.getMetadataTypeByName("AuthorVariation"));
        String myTok = tokenizer.nextToken();

        if (myTok.indexOf(",") == -1) {
          throw new WrongImportFileException("Parsingfehler: Vorname nicht mit Komma vom Nachnamen getrennt ('" + myTok + "')");
        }

        p.setLastname(myTok.substring(0, myTok.indexOf(",")).trim());
        p.setFirstname(myTok.substring(myTok.indexOf(",") + 1, myTok.length()).trim());
        p.setRole("AuthorVariation");
        inStruct.addPerson(p);
      }
      return;
    }

View Full Code Here

Examples of uk.ac.osswatch.simal.model.jena.Person

          com.hp.hpl.jena.rdf.model.Resource res = model.createResource(uri);
          s = model.createStatement(r, RDFS.seeAlso, res);
          model.add(s);
        }

        IPerson person = new Person(r);
        person.setSimalID(personID);
        return person;
  }
View Full Code Here

Examples of yarfraw.core.datamodel.Person

      itemEntry.setTitle(makeText(getTitle()));
      itemEntry.addLink(getLink());
      String author = getAuthor();
      if (author != null)
      {
         Person authorPerson = new Person();
         authorPerson.setName(author);
         itemEntry.addAuthorOrCreator(authorPerson);
      }
      itemEntry.setDescriptionOrSummary(makeText(getSummary()));
      if (getUpdated() != null) {
         itemEntry.setUpdatedDate(getUpdated(), new SimpleDateFormat(ATOM_DATE_FORMAT));
View Full Code Here

Examples of za.co.javajoe.model.Person

    public JustArraysExtended() {
        intializeNamesIntoList();
    }

    private void intializeNamesIntoList() {
        Person temp = new Person();

        temp.setId(1);
        temp.setAge(50);
        temp.setName("mackie");
        temp.setSurname("makgatho");
        temp.setRace("darkie");
        personList.add(temp);

        System.out.println(personList.size());

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.