1 | void setParamName(String newParamName) {↵ | | 1 | void setMimeType(String newMimeType) {↵
|
2 | setProperty(new StringProperty(PARAMNAME, newParamName));↵ | | 2 | setProperty(new StringProperty(MIMETYPE, newMimeType));↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Get the http parameter name of the File.↵ | | 5 | * Get the mimetype of the File.↵
|
6 | *↵ | | 6 | *↵
|
7 | * @return the http parameter name↵ | | 7 | * @return the http parameter mimetype↵
|
8 | */↵ | | 8 | */↵
|
9 | public String getParamName() {↵ | | 9 | public String getMimeType() {↵
|
10 | return getPropertyAsString(PARAMNAME);↵ | | 10 | return getPropertyAsString(MIMETYPE);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Set the mimetype of the File.↵ | | 13 | * Set the path of the File.↵
|
14 | *↵ | | 14 | *↵
|
15 | * @param newMimeType↵ | | 15 | * @param newPath↵
|
16 | * the new mimetype↵ | | 16 | * the new path↵
|
17 | */↵ | | 17 | */↵
|
18 | public void setMimeType(String newMimeType) {↵ | | 18 | public void setPath(String newPath) {↵
|
19 | setProperty(new StringProperty(MIMETYPE, newMimeType));↵ | | 19 | setProperty(new StringProperty(FILEPATH, newPath));↵
|
20 | }↵ | | 20 | }↵
|
|
21 | /**↵ | | 21 | /**↵
|
22 | * Get the mimetype of the File.↵ | | 22 | * Get the path of the File.↵
|
23 | *↵ | | 23 | *↵
|
24 | * @return the http parameter mimetype↵ | | 24 | * @return the file's path↵
|
25 | */↵ | | 25 | */↵
|
26 | public String getMimeType() {↵ | | 26 | public String getPath() {↵
|
27 | return getPropertyAsString(MIMETYPE);↵ | | 27 | return getPropertyAsString(FILEPATH);↵
|
28 | | | 28 |
|