KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jdon > strutsutil > file > UploadFile


1 /**
2  * Copyright 2003-2006 the original author or authors. Licensed under the Apache
3  * License, Version 2.0 (the "License"); you may not use this file except in
4  * compliance with the License. You may obtain a copy of the License at
5  *
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  * Unless required by applicable law or agreed to in writing, software
9  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11  * License for the specific language governing permissions and limitations under
12  * the License.
13  */

14
15 package com.jdon.strutsutil.file;
16
17 import com.jdon.controller.model.Model;
18
19 public class UploadFile extends Model {
20
21     private String JavaDoc id;
22
23     private String JavaDoc name;
24
25     private String JavaDoc description;
26
27     private byte[] data;
28
29     private String JavaDoc contentType;
30
31     private int size;
32
33     //所属父ID
34
private String JavaDoc parentId;
35
36     private String JavaDoc tempId;
37
38     public byte[] getData() {
39         return data;
40     }
41
42     public String JavaDoc getName() {
43         return name;
44     }
45
46     public void setData(byte[] data) {
47         this.data = data;
48     }
49
50     public void setName(String JavaDoc name) {
51         this.name = name;
52     }
53
54     public String JavaDoc getContentType() {
55         return contentType;
56     }
57
58     public void setContentType(String JavaDoc contentType) {
59         this.contentType = contentType;
60     }
61
62     public int getSize() {
63         return size;
64     }
65
66     public void setSize(int size) {
67         this.size = size;
68     }
69
70     public String JavaDoc getId() {
71         return id;
72     }
73
74     public void setId(String JavaDoc id) {
75         this.id = id;
76     }
77
78     public String JavaDoc getParentId() {
79         return parentId;
80     }
81
82     public void setParentId(String JavaDoc parentId) {
83         this.parentId = parentId;
84     }
85
86     public String JavaDoc getTempId() {
87         return tempId;
88     }
89
90     public void setTempId(String JavaDoc tempId) {
91         this.tempId = tempId;
92     }
93
94     /**
95      * @return Returns the description.
96      */

97     public String JavaDoc getDescription() {
98         return description;
99     }
100
101     /**
102      * @param description
103      * The description to set.
104      */

105     public void setDescription(String JavaDoc description) {
106         this.description = description;
107     }
108 }
109
Popular Tags