1
2
3
4
5
6
7
8
9 package ejava.projects.esales.dto;
10
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlAttribute;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlIDREF;
16 import javax.xml.bind.annotation.XmlRootElement;
17 import javax.xml.bind.annotation.XmlSchemaType;
18 import javax.xml.bind.annotation.XmlType;
19 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "", propOrder = {
45 "auctionRef",
46 "image"
47 })
48 @XmlRootElement(name = "image")
49 public class Image
50 extends ReferencedType
51 {
52
53 @XmlElement(name = "auction-ref", required = true)
54 @XmlIDREF
55 @XmlSchemaType(name = "IDREF")
56 protected Object auctionRef;
57 @XmlElement(required = true)
58 protected byte[] image;
59 @XmlAttribute(name = "id")
60 @XmlJavaTypeAdapter(Adapter4 .class)
61 @XmlSchemaType(name = "integer")
62 protected Integer id;
63
64
65
66
67
68 public Image() {
69 super();
70 }
71
72
73
74
75
76 public Image(final String refid, final Object auctionRef, final byte[] image, final Integer id) {
77 super(refid);
78 this.auctionRef = auctionRef;
79 this.image = image;
80 this.id = id;
81 }
82
83
84
85
86
87
88
89
90
91 public Object getAuctionRef() {
92 return auctionRef;
93 }
94
95
96
97
98
99
100
101
102
103 public void setAuctionRef(Object value) {
104 this.auctionRef = value;
105 }
106
107
108
109
110
111
112
113
114 public byte[] getImage() {
115 return image;
116 }
117
118
119
120
121
122
123
124
125 public void setImage(byte[] value) {
126 this.image = value;
127 }
128
129
130
131
132
133
134
135
136
137 public Integer getId() {
138 return id;
139 }
140
141
142
143
144
145
146
147
148
149 public void setId(Integer value) {
150 this.id = value;
151 }
152
153 }