This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
834 additions
and
533 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
package reviewresult; | ||
|
||
import com.intellij.util.xmlb.annotations.AbstractCollection; | ||
import com.intellij.util.xmlb.annotations.Attribute; | ||
import com.intellij.util.xmlb.annotations.Tag; | ||
import org.eclipse.jdt.internal.core.INamingRequestor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* User: Alisa.Afonina | ||
* Date: 7/20/11 | ||
* Time: 6:14 PM | ||
*/ | ||
|
||
@Tag("review") | ||
public class ReviewBean { | ||
private String name; | ||
private int start; | ||
private int end; | ||
private List<ReviewItem> reviewItems = new ArrayList<ReviewItem>(); | ||
private String url; | ||
|
||
public ReviewBean() { | ||
} | ||
|
||
public ReviewBean(String name, int start, int end, String url) { | ||
this.name = name; | ||
this.start = start; | ||
this.end = end; | ||
this.url = url; | ||
} | ||
|
||
|
||
@Attribute("name") | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
@Tag("start") | ||
public int getStart() { | ||
return start; | ||
} | ||
|
||
public void setStart(int start) { | ||
this.start = start; | ||
} | ||
|
||
|
||
@Tag("end") | ||
public int getEnd() { | ||
return end; | ||
} | ||
|
||
public void setEnd(int end) { | ||
this.end = end; | ||
} | ||
|
||
|
||
@Tag("review_items") | ||
@AbstractCollection(surroundWithTag = false) | ||
public List<ReviewItem> getReviewItems() { | ||
return reviewItems; | ||
} | ||
|
||
|
||
public void setReviewItems(List<ReviewItem> reviewItems) { | ||
this.reviewItems = reviewItems; | ||
} | ||
|
||
@Tag("url") | ||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public void addReviewItem(ReviewItem reviewItem) { | ||
reviewItems.add(reviewItem); | ||
} | ||
|
||
public void addReviewItems(List<ReviewItem> reviewItems) { | ||
reviewItems.addAll(reviewItems); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
|
||
ReviewBean that = (ReviewBean) o; | ||
|
||
if (end != that.end) return false; | ||
if (start != that.start) return false; | ||
if (name != null ? !name.equals(that.name) : that.name != null) return false; | ||
if (url != null ? !url.equals(that.url) : that.url != null) return false; | ||
|
||
return true; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.