Examples of Person


Examples of er.rest.example.model.Person

  protected boolean isAutomaticHtmlRoutingEnabled() {
    return true;
  }

  protected Person person() {
    Person person = routeObjectForKey("person");
    return person;
  }
View Full Code Here

Examples of er.rest.model.Person

    public void testEOWithAttributesFilterToJSON() {
        EOEditingContext editingContext = ERXEC.newEditingContext(_osc);
        editingContext.lock();
        try {
            Person p = Person.createPerson(editingContext, "Mike");
            assertEquals("{\"type\":\"Person\",\"age\":null,\"name\":\"Mike\",\"salary\":null}\n", ERXRestFormat.json().toString(p, ERXKeyFilter.filterWithAttributes()));
        }
        finally {
            editingContext.unlock();
            editingContext.dispose();
View Full Code Here

Examples of example.angularspring.dto.Person

@Service
public class InMemoryPersonService implements PersonService {
    private Map<Integer, Person> persons = new HashMap<Integer, Person>();

    public InMemoryPersonService() {
        persons.put(1, new Person(1, "Lionel", "Messi"));
        persons.put(2, new Person(2, "Cristiano", "Ronaldo"));
    }
View Full Code Here

Examples of fi.luomus.commons.containers.Person

        String id = node.getAttribute("rdf:about").replace("http://id.luomus.fi/", "");
        String fullname = null;
        if (node.hasChildNodes("MA.fullName")) {
          fullname = node.getNode("MA.fullName").getContents();
        }
        Person person = new Person(new Qname(id), fullname);
        persons.put(id, person);
      }
      return persons;
    }
View Full Code Here

Examples of flexjson.mock.Person

  @Ignore("Not reliable test.")
  @Test
  public void testSerializationPerformance() {
    FixtureCreator fixture = new FixtureCreator();
    Person target = fixture.createCharlie();

    long elapsedNoIncludes = 0;
    long elapsedIncludes = 0;
    for (int i = 0; i < 100; i++) {
      elapsedNoIncludes += timeSerialization(target);
View Full Code Here

Examples of gov.nysenate.openleg.model.Person

    {
        logger.info("SAVING "+bill.getBillId());
        // Until LBDC starts sending coPrime information for real we need overrides
        // for the following set of bills and resolutions
        if (bill.getBillId().equals("R314-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("J375-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("SKELOS"), new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("R633-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("J694-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("J758-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("SKELOS")));
        }
        else if (bill.getBillId().equals("R818-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("J844-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("J860-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("SKELOS")));
        }
        else if (bill.getBillId().equals("J1608-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN"), new Person("STEWART-COUSINS")));
        }
        else if (bill.getBillId().equals("J1938-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN"), new Person("STEWART-COUSINS")));
        }
        else if (bill.getBillId().equals("J3100-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("HANNON")));
        }
        else if (bill.getBillId().equals("S2107-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("S3953-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("ESPAILLAT")));
        }
        else if (bill.getBillId().equals("S5441-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("GRISANTI"), new Person("RANZENHOFER"), new Person("GALLIVAN")));
        }
        else if (bill.getBillId().equals("S5656-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("FUSCHILLO")));
        }
        else if (bill.getBillId().equals("S5657-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("MARCHIONE"), new Person("CARLUCCI")));
        }
        else if (bill.getBillId().equals("S5683-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("VALESKY")));
        }
        else if (bill.getBillId().equals("J2885-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN"), new Person("STEWART-COUSINS")));
        }
        else if (bill.getBillId().equals("J3307-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN"), new Person("SKELOS")));
        }
        else if (bill.getBillId().equals("J3743-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN"), new Person("STEWART-COUSINS")));
        }
        else if (bill.getBillId().equals("J3908-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN"), new Person("STEWART-COUSINS")));
        }
        else if (bill.getBillId().equals("R4036-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }
        else if (bill.getBillId().equals("S6966-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("GRIFFO")));
        }
        else if (bill.getBillId().equals("J4904-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN"), new Person("STEWART-COUSINS")));
        }
        else if (bill.getBillId().equals("J5165-2013")) {
            bill.setOtherSponsors(Arrays.asList(new Person("KLEIN")));
        }

        // Check if the bill is on the unpublished list
        if (unpublishListManager.getUnpublishedBills().contains(bill.getBillId())){
            // If so set the publish date to null
View Full Code Here

Examples of grammar.model.Person

      try {
        if (qName.equals("parent")) {
          return;
        }
        if (affectedTenses.get(0).getMood().isPersonal()) {
          Person person = Person.valueOf(qName.toUpperCase().replace(' ', '_'));
          affectedPronouns.clear();
          enableParsing(ParseMode.RULE);
          affectedPronouns.addAll(PersonalPronounCategory.getPronounSet(affectedMultiplicity, person));
        }
        else { // impersonal
View Full Code Here

Examples of idv.takeshi.model.Person

  public void tearDown() throws Exception {
  }

  @Test
  public void testGetPerson() {
    Person person = null;
    Long id = null;
   
    id = new Long("-1");
    person = this.PersonService.getPerson(id);
   
    assertNotNull(person);
    assertEquals(id, person.getId());
  }
View Full Code Here

Examples of it.freedomotic.objects.impl.Person

    }

    protected void onRun() {
        for (EnvObjectLogic object : EnvObjectPersistence.getObjectList()) {
            if (object instanceof it.freedomotic.objects.impl.Person) {
                Person person = (Person) object;
                FreedomPoint location = randomLocation();
                person.getPojo().getCurrentRepresentation()
                        .setOffset((int) location.getX(), (int) location.getY());
                person.setChanged(true);
            }
        }
    }
View Full Code Here

Examples of jodd.json.mock.Person

  @Before
  @SuppressWarnings({"unchecked"})
  public void setUp() {
    DataCreator dataCreator = new DataCreator();
    pedroZip = new Zipcode("848485");
    Person pedro = dataCreator.createPedro();
    jodder = dataCreator.createJodder();
    modesty = dataCreator.createModesty();
    colors = dataCreator.createColorMap();

    people = new ArrayList();
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.