1 package org.opendaylight.controller.northbound.commons.query;
5 import javax.xml.bind.annotation.XmlElement;
6 import javax.xml.bind.annotation.XmlRootElement;
10 @XmlRootElement(name="review")
11 public class ReviewBean {
12 @XmlElement(name="date")
13 private Date _publishedDate;
14 @XmlElement(name="comment")
15 private String _comment;
16 @XmlElement(name="reviewer")
17 private PersonBean _reviewer;
21 private int _downVotes;
24 public ReviewBean(String comment, PersonBean user) {
27 _publishedDate = new Date();
30 public void vote(int up, int down) {
36 public String toString() {
37 return "ReviewBean <publishedDate>" + _publishedDate + "</publishedDate> <comment>"
38 + _comment + "</comment> <reviewer>" + _reviewer + "</reviewer> <upVotes>" + _upVotes
39 + "</upVotes> <downVotes>" + _downVotes + "</downVotes>";