1
2
3
4 package sk.stuba.fiit.foo07.genex.beans;
5
6
7
8
9
10 public class ExportPicture {
11
12 private String name;
13 private String description;
14 private String settings;
15 private String mimeType;
16 private byte[] content;
17 private Integer pictureID;
18 private boolean textPicture = false;
19
20 public ExportPicture() {
21 }
22
23 public ExportPicture(Picture pic) {
24 super();
25 this.name = pic.getName();
26 this.description = pic.getDescription();
27 this.settings = pic.getSettings();
28 this.mimeType = pic.getMimeType();
29 this.content = pic.getContent();
30 this.pictureID = pic.getPictureID();
31 }
32
33
34
35
36 public String getNAME() {
37 return name;
38 }
39
40
41
42
43
44 public void setNAME(String name) {
45 this.name = name;
46 }
47
48
49
50
51 public String getDESCRIPTION() {
52 return description;
53 }
54
55
56
57
58
59 public void setDESCRIPTION(String description) {
60 this.description = description;
61 }
62
63
64
65
66 public String getSETTINGS() {
67 return settings;
68 }
69
70
71
72
73
74 public void setSETTINGS(String settings) {
75 this.settings = settings;
76 }
77
78
79
80
81 public String getMIMETYPE() {
82 return mimeType;
83 }
84
85
86
87
88
89 public void setMIMETYPE(String mimeType) {
90 this.mimeType = mimeType;
91 }
92
93
94
95
96 public byte[] getContent() {
97 return content;
98 }
99
100
101
102
103
104 public void setContent(byte[] content) {
105 this.content = content;
106 }
107
108
109
110
111 public Integer getPictureID() {
112 return pictureID;
113 }
114
115
116
117
118
119 public void setPictureID(Integer pictureID) {
120 this.pictureID = pictureID;
121 }
122
123
124
125
126 @Override
127 public String toString() {
128 return this.name;
129 }
130
131 public boolean getTEXTPICTURE() {
132 return textPicture;
133 }
134
135 public void setTextPicture(boolean textPicture) {
136 this.textPicture = textPicture;
137 }
138
139 }