View Javadoc

1   /**
2    * 
3    */
4   package sk.stuba.fiit.foo07.genex.beans;
5   
6   /**
7    * @author Radu
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       * @return the name
35       */
36      public String getNAME() {
37          return name;
38      }
39  
40      /**
41       * @param name
42       *                the name to set
43       */
44      public void setNAME(String name) {
45          this.name = name;
46      }
47  
48      /**
49       * @return the description
50       */
51      public String getDESCRIPTION() {
52          return description;
53      }
54  
55      /**
56       * @param description
57       *                the description to set
58       */
59      public void setDESCRIPTION(String description) {
60          this.description = description;
61      }
62  
63      /**
64       * @return the settings
65       */
66      public String getSETTINGS() {
67          return settings;
68      }
69  
70      /**
71       * @param settings
72       *                the settings to set
73       */
74      public void setSETTINGS(String settings) {
75          this.settings = settings;
76      }
77  
78      /**
79       * @return the mimeType
80       */
81      public String getMIMETYPE() {
82          return mimeType;
83      }
84  
85      /**
86       * @param mimeType
87       *                the mimeType to set
88       */
89      public void setMIMETYPE(String mimeType) {
90          this.mimeType = mimeType;
91      }
92  
93      /**
94       * @return the content
95       */
96      public byte[] getContent() {
97          return content;
98      }
99  
100     /**
101      * @param content
102      *                the content to set
103      */
104     public void setContent(byte[] content) {
105         this.content = content;
106     }
107 
108     /**
109      * @return the pictureID
110      */
111     public Integer getPictureID() {
112         return pictureID;
113     }
114 
115     /**
116      * @param pictureID
117      *                the pictureID to set
118      */
119     public void setPictureID(Integer pictureID) {
120         this.pictureID = pictureID;
121     }
122 
123     /* (non-Javadoc)
124      * @see java.lang.Object#toString()
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 }