Package org.focusns.model.core

Examples of org.focusns.model.core.ProjectAttribute


        }
        // project attributes
        Element attributesEle = DomUtils.getChildElementByTagName(projectEle, "attributes");
        List<Element> attributeEles = DomUtils.getChildElementsByTagName(featuresEle, "attribute");
        for(Element attributeEle : attributeEles) {
            ProjectAttribute projectAttribute = new ProjectAttribute();
            projectAttribute.setName(attributeEle.getAttribute("name"));
            projectAttribute.setValue(attributeEle.getAttribute("value"));
            projectAttribute.setType(attributeEle.getAttribute("type"));
            String level = attributeEle.getAttribute("level");
            if(StringUtils.hasText(level)) {
                projectAttribute.setLevel(Integer.parseInt(level));
            }
            projectTemplate.addProjectAttribute(projectAttribute);
        }
        // project roles
        Element rolesEle = DomUtils.getChildElementByTagName(projectEle, "roles");
View Full Code Here

TOP

Related Classes of org.focusns.model.core.ProjectAttribute

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.