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 {
15 @XmlAttribute
16 private String fieldName;
17
18 @XmlAttribute
19 private boolean field;
20
21 @XmlAttribute
22 private String filename;
23
24 @XmlElement
25 private String value;
26
27 @XmlAttribute
28 private String contentType;
29
30 public FilePartObject()
31 {
32 }
33
34 public FilePartObject(final String fieldName, final boolean field, final String filename, final String contentType, final String value)
35 {
36 this.fieldName = fieldName;
37 this.field = field;
38 this.filename = filename;
39 this.value = value;
40 this.contentType = contentType;
41 }
42
43 public String getFieldName()
44 {
45 return fieldName;
46 }
47
48 public void setFieldName(final String fieldName)
49 {
50 this.fieldName = fieldName;
51 }
52
53 public boolean isField()
54 {
55 return field;
56 }
57
58 public void setField(final boolean field)
59 {
60 this.field = field;
61 }
62
63 public String getFilename()
64 {
65 return filename;
66 }
67
68 public void setFilename(final String filename)
69 {
70 this.filename = filename;
71 }
72
73 public String getValue()
74 {
75 return value;
76 }
77
78 public void setValue(final String value)
79 {
80 this.value = value;
81 }
82
83 public String getContentType()
84 {
85 return contentType;
86 }
87
88 public void setContentType(final String contentType)
89 {
90 this.contentType = contentType;
91 }
92 }