com.moviejukebox.model.AwardEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamj Show documentation
Show all versions of yamj Show documentation
Static analysis of MovieJukebox project
/*
* Copyright (c) 2004-2012 YAMJ Members
* http://code.google.com/p/moviejukebox/people/list
*
* Web: http://code.google.com/p/moviejukebox/
*
* This software is licensed under a Creative Commons License
* See this page: http://code.google.com/p/moviejukebox/wiki/License
*
* For any reuse or distribution, you must make clear to others the
* license terms of this work.
*/
package com.moviejukebox.model;
import java.util.ArrayList;
import java.util.Collection;
/*
* @author ilgizar
*/
public class AwardEvent {
private String event = Movie.UNKNOWN;
private Collection awards = new ArrayList();
public String getName() {
return event;
}
public void setName(String event) {
this.event = event;
}
public Collection getAwards() {
return this.awards;
}
public void setAwards(Collection awards) {
if (awards != null) {
this.awards = awards;
}
}
public void addAward(Award award) {
if (award != null) {
this.awards.add(award);
}
}
@Override
public String toString() {
return "AwardEvent{" + "event=" + event + ", awards=" + awards + '}';
}
}