package moviescraper.doctord.controller.xmlserialization; import java.io.IOException; import moviescraper.doctord.model.dataitem.Actor; import moviescraper.doctord.model.dataitem.Thumb; /** * Helper class for serializing a actor object to and from XML */ public class KodiXmlActorBean { public String name; public String role; public String thumb; public KodiXmlActorBean(String name, String role, String thumb) { super(); this.name = name; this.role = role; this.thumb = thumb; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getRole() { return role; } public void setRole(String role) { this.role = role; } public String getThumb() { return thumb; } public void setThumb(String thumb) { this.thumb = thumb; } public Actor toActor() throws IOException{ return new Actor(name,role,new Thumb(thumb)); } }