1 package com.atlassian.plugins.rest.multipart;
2
3 import javax.xml.bind.annotation.XmlAccessType;
4 import javax.xml.bind.annotation.XmlAccessorType;
5 import javax.xml.bind.annotation.XmlAttribute;
6 import javax.xml.bind.annotation.XmlElement;
7 import javax.xml.bind.annotation.XmlRootElement;
8
9
10
11 @XmlRootElement
12 @XmlAccessorType(XmlAccessType.FIELD)
13 public class FilePartObject {
14 @XmlAttribute
15 private String fieldName;
16
17 @XmlAttribute
18 private boolean field;
19
20 @XmlAttribute
21 private String filename;
22
23 @XmlElement
24 private String value;
25
26 @XmlAttribute
27 private String contentType;
28
29 public FilePartObject() {
30 }
31
32 public FilePartObject(final String fieldName, final boolean field, final String filename, final String contentType, final String value) {
33 this.fieldName = fieldName;
34 this.field = field;
35 this.filename = filename;
36 this.value = value;
37 this.contentType = contentType;
38 }
39
40 public String getFieldName() {
41 return fieldName;
42 }
43
44 public void setFieldName(final String fieldName) {
45 this.fieldName = fieldName;
46 }
47
48 public boolean isField() {
49 return field;
50 }
51
52 public void setField(final boolean field) {
53 this.field = field;
54 }
55
56 public String getFilename() {
57 return filename;
58 }
59
60 public void setFilename(final String filename) {
61 this.filename = filename;
62 }
63
64 public String getValue() {
65 return value;
66 }
67
68 public void setValue(final String value) {
69 this.value = value;
70 }
71
72 public String getContentType() {
73 return contentType;
74 }
75
76 public void setContentType(final String contentType) {
77 this.contentType = contentType;
78 }
79 }