Package org.springframework.roo.addon.roobot.client.model

Examples of org.springframework.roo.addon.roobot.client.model.Comment


                continue;
            }
            final List<Comment> comments = new ArrayList<Comment>();
            for (final Element commentElement : XmlUtils.findElements(
                    "comments/comment", bundleElement)) {
                comments.add(new Comment(Rating.fromInt(new Integer(
                        commentElement.getAttribute("rating"))), commentElement
                        .getAttribute("comment"), dateFormat
                        .parse(commentElement.getAttribute("date"))));
            }
            final Bundle bundle = new Bundle(bundleElement.getAttribute("bsn"),
View Full Code Here


        bundleCache.clear();
        for (Element bundleElement : XmlUtils.findElements("/roobot/bundles/bundle", roobotXml.getDocumentElement())) {
          String bsn = bundleElement.getAttribute("bsn");
          List<Comment> comments = new LinkedList<Comment>();
          for (Element commentElement: XmlUtils.findElements("comments/comment", bundleElement)) {
            comments.add(new Comment(Rating.fromInt(new Integer(commentElement.getAttribute("rating"))), commentElement.getAttribute("comment"), dateFormat.parse(commentElement.getAttribute("date"))));
          }
          Bundle bundle = new Bundle(bundleElement.getAttribute("bsn"), new Float(bundleElement.getAttribute("uaa-ranking")).floatValue(), comments);
           
          for (Element versionElement: XmlUtils.findElements("versions/version", bundleElement)) {
            if (bsn != null && bsn.length() > 0 && versionElement != null) {
View Full Code Here

TOP

Related Classes of org.springframework.roo.addon.roobot.client.model.Comment

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.