Package edu.monash.merc.dto

Examples of edu.monash.merc.dto.ProjectBean


        List<ProjectBean> projectsList = new ArrayList<ProjectBean>();

        while (projectsElements.hasNext()) {
            OMElement projElement = projectsElements.next();
            Iterator<OMElement> projit = projElement.getChildElements();
            ProjectBean projbean = new ProjectBean();

            while (projit.hasNext()) {
                OMElement pdetails = projit.next();

                String name = pdetails.getLocalName();
                String textValue = pdetails.getText();
                if (name.equals("projectId")) {
                    projbean.setActivityKey(textValue);
                }
                if (name.equals("projectTitle")) {
                    projbean.setTitle(textValue);
                }
                if (name.equals("grantorCode")) {
                    projbean.setGrantCode(textValue);
                }
                if (name.equals("projectDateApplied")) {
                    projbean.setAppliedDate(textValue);
                }
            }
            projectsList.add(projbean);
        }
        return projectsList;
View Full Code Here

TOP

Related Classes of edu.monash.merc.dto.ProjectBean

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.