Package com.coherentlogic.usaspending.client.core.domain

Examples of com.coherentlogic.usaspending.client.core.domain.CongressionalDistrict


    @Override
    public Object unmarshal(
        HierarchicalStreamReader reader,
        UnmarshallingContext context
    ) {
        CongressionalDistrict congressionalDistrict
            = new CongressionalDistrict ();

        String id = reader.getAttribute(ID);

        congressionalDistrict.setId(id);

        String totalObligatedAmount =
            reader.getAttribute(TOTAL_OBLIGATED_AMOUNT);

        congressionalDistrict.setTotaObligatedAmount(
            new BigDecimal (totalObligatedAmount));

        String rank = reader.getAttribute(RANK);

        congressionalDistrict.setRank(Long.valueOf (rank));

        String value = reader.getValue();

        congressionalDistrict.setValue(value);

        return congressionalDistrict;
    }
View Full Code Here

TOP

Related Classes of com.coherentlogic.usaspending.client.core.domain.CongressionalDistrict

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.