Package gov.nysenate.openleg.model

Examples of gov.nysenate.openleg.model.Person


        return StringUtils.join(links, ", ");
    }

    public static String getSponsorLinks(Bill bill, HttpServletRequest request)
    {
        Person sponsor = bill.getSponsor();
        ArrayList<String> links = new ArrayList<String>();
        links.add(JSPHelper.getPersonLink(sponsor, request));
        for (Person otherSponsor : bill.getOtherSponsors()) {
            links.add(JSPHelper.getPersonLink(otherSponsor, request));
        }
View Full Code Here


        if (node.isNull()) {
            return null;
        }
        else {
            logger.debug(node.toString());
            Person person = new Person();
            person.setId(node.get("id").asText());
            person.setFullname(node.get("fullname").asText());
            person.setPosition(node.get("position").asText());
            person.setBranch(node.get("branch").asText());
            person.setContactInfo(node.get("contactInfo").asText());
            person.setGuid(node.get("guid").asText());
            return person;
        }
    }
View Full Code Here

        if(status.contains("Bill Status Information Not Found"))
            return false;

        String strings[] = status.split("\n");

        bill.setSponsor(new Person(strings[2]));

        String sameAsBillNo = strings[3].replaceAll("(Same as| |\\-)","");
        bill.setSameAs(sameAsBillNo);

        bill.setLawSection(strings[5]);
View Full Code Here

        Element elemCos = new Element("cosponsors");
        if (bill.getCoSponsors() != null)
        {
            Iterator<Person> itCos = bill.getCoSponsors().iterator();
            Person coSponsor = null;

            while (itCos.hasNext())
            {
                Element elemCosChild = new Element("cosponsor");
                coSponsor = itCos.next();

                if (coSponsor.getFullname()!=null)
                {
                    elemCosChild.setText(coSponsor.getFullname());
                    elemCos.addContent(elemCosChild);
                }
            }
        }
        billElement.addContent(elemCos);
View Full Code Here

TOP

Related Classes of gov.nysenate.openleg.model.Person

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.