package org.openslx.dnbd3.xml; import org.simpleframework.xml.Attribute; public class Image { @Attribute private String group; @Attribute private String atime; @Attribute private int vid; @Attribute private int rid; @Attribute private String file; @Attribute private String servers; @Attribute private String cache; public Image(@Attribute(name = "group") String group, @Attribute(name = "atime") String atime, @Attribute(name = "vid") int vid, @Attribute(name = "rid") int rid, @Attribute(name = "file") String file, @Attribute(name = "servers") String servers, @Attribute(name = "cache") String cache) { this.group = group; this.atime = atime; this.vid = vid; this.rid = rid; this.file = file; this.servers = servers; this.cache = cache; } public Image(@Attribute(name = "group") String group, @Attribute(name = "vid") int vid, @Attribute(name = "rid") int rid, @Attribute(name = "file") String file, @Attribute(name = "servers") String servers, @Attribute(name = "cache") String cache) { this(group, "01.01.70 01:00:00", vid, rid, file, servers, cache); } public Image(@Attribute(name = "group") String group, @Attribute(name = "vid") int vid, @Attribute(name = "rid") int rid, @Attribute(name = "file") String file, @Attribute(name = "servers") String servers) { this(group, "01.01.70 01:00:00", vid, rid, file, servers, ""); } public Image(@Attribute(name = "group") String group, @Attribute(name = "vid") int vid, @Attribute(name = "file") String file, @Attribute(name = "servers") String servers) { this(group, "01.01.70 01:00:00", vid, 0, file, servers, ""); } public String getGroup() { return group; } public void setGroup(String group) { this.group = group; } public String getAtime() { return atime; } public void setAtime(String atime) { this.atime = atime; } public int getVid() { return vid; } public void setVid(int vid) { this.vid = vid; } public int getRid() { return rid; } public void setRid(int rid) { this.rid = rid; } public String getFile() { return file; } public void setFile(String file) { this.file = file; } public String getServers() { return servers; } public void setServers(String servers) { this.servers = servers; } public String getCache() { return cache; } public void setCache(String cache) { this.cache = cache; } }