summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/dnbd3/xml/Image.java
blob: 84ad9d9204a6368c4223d40da2e6f0ca1e72bc36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
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;
    }

}