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 * All fields must be limited to 128 chars or less
13 *
14 * <p>Java class for NameValuePair complex type.
15 *
16 * <p>The following schema fragment specifies the expected content contained within this class.
17 *
18 * <pre>
19 * <complexType name="NameValuePair">
20 * <complexContent>
21 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 * <sequence>
23 * <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
24 * <element name="Value" type="{http://www.w3.org/2001/XMLSchema}string"/>
25 * <element name="Encrypted" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
26 * <element name="EncryptOnSave" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
27 * </sequence>
28 * </restriction>
29 * </complexContent>
30 * </complexType>
31 * </pre>
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 * Gets the value of the name property.
63 *
64 * @return
65 * possible object is
66 * {@link String }
67 *
68 */
69 public String getName() {
70 return name;
71 }
72
73 /**
74 * Sets the value of the name property.
75 *
76 * @param value
77 * allowed object is
78 * {@link String }
79 *
80 */
81 public void setName(String value) {
82 this.name = value;
83 }
84
85 /**
86 * Gets the value of the value property.
87 *
88 * @return
89 * possible object is
90 * {@link String }
91 *
92 */
93 public String getValue() {
94 return value;
95 }
96
97 /**
98 * Sets the value of the value property.
99 *
100 * @param value
101 * allowed object is
102 * {@link String }
103 *
104 */
105 public void setValue(String value) {
106 this.value = value;
107 }
108
109 /**
110 * Gets the value of the encrypted property.
111 *
112 * @return
113 * possible object is
114 * {@link Boolean }
115 *
116 */
117 public Boolean isEncrypted() {
118 return encrypted;
119 }
120
121 /**
122 * Sets the value of the encrypted property.
123 *
124 * @param value
125 * allowed object is
126 * {@link Boolean }
127 *
128 */
129 public void setEncrypted(Boolean value) {
130 this.encrypted = value;
131 }
132
133 /**
134 * Gets the value of the encryptOnSave property.
135 *
136 * @return
137 * possible object is
138 * {@link Boolean }
139 *
140 */
141 public Boolean isEncryptOnSave() {
142 return encryptOnSave;
143 }
144
145 /**
146 * Sets the value of the encryptOnSave property.
147 *
148 * @param value
149 * allowed object is
150 * {@link Boolean }
151 *
152 */
153 public void setEncryptOnSave(Boolean value) {
154 this.encryptOnSave = value;
155 }
156
157 }