1
2 package org.miloss.fgsms.services.interfaces.common;
3
4 import java.io.Serializable;
5 import javax.xml.bind.annotation.XmlAccessType;
6 import javax.xml.bind.annotation.XmlAccessorType;
7 import javax.xml.bind.annotation.XmlElement;
8 import javax.xml.bind.annotation.XmlType;
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 @XmlAccessorType(XmlAccessType.FIELD)
36 @XmlType(name = "NameValuePair", propOrder = {
37 "name",
38 "value",
39 "encrypted",
40 "encryptOnSave"
41 })
42 public class NameValuePair implements Serializable{
43
44 public NameValuePair(){}
45 public NameValuePair(String n, String v, boolean isEncrypted, boolean encryptOnsave){
46 name=n;
47 value=v;
48 encrypted=isEncrypted;
49 encryptOnSave=encryptOnsave;
50 }
51
52 @XmlElement(name = "Name", required = true)
53 protected String name;
54 @XmlElement(name = "Value", required = true, nillable = true)
55 protected String value;
56 @XmlElement(name = "Encrypted", required = true, type = Boolean.class, nillable = true)
57 protected Boolean encrypted;
58 @XmlElement(name = "EncryptOnSave", required = true, type = Boolean.class, nillable = true)
59 protected Boolean encryptOnSave;
60
61
62
63
64
65
66
67
68
69 public String getName() {
70 return name;
71 }
72
73
74
75
76
77
78
79
80
81 public void setName(String value) {
82 this.name = value;
83 }
84
85
86
87
88
89
90
91
92
93 public String getValue() {
94 return value;
95 }
96
97
98
99
100
101
102
103
104
105 public void setValue(String value) {
106 this.value = value;
107 }
108
109
110
111
112
113
114
115
116
117 public Boolean isEncrypted() {
118 return encrypted;
119 }
120
121
122
123
124
125
126
127
128
129 public void setEncrypted(Boolean value) {
130 this.encrypted = value;
131 }
132
133
134
135
136
137
138
139
140
141 public Boolean isEncryptOnSave() {
142 return encryptOnSave;
143 }
144
145
146
147
148
149
150
151
152
153 public void setEncryptOnSave(Boolean value) {
154 this.encryptOnSave = value;
155 }
156
157 }