Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
695 blopes 1
 
2
package br.com.swconsultoria.nfe.schema.retEnvEpec;
3
 
4
import javax.xml.bind.annotation.XmlAccessType;
5
import javax.xml.bind.annotation.XmlAccessorType;
6
import javax.xml.bind.annotation.XmlAttribute;
7
import javax.xml.bind.annotation.XmlElement;
8
import javax.xml.bind.annotation.XmlID;
9
import javax.xml.bind.annotation.XmlSchemaType;
10
import javax.xml.bind.annotation.XmlType;
11
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
12
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
13
 
14
 
15
/**
16
 * <p>Classe Java de ReferenceType complex type.
17
 *
18
 * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
19
 *
20
 * <pre>
21
 * &lt;complexType name="ReferenceType"&gt;
22
 *   &lt;complexContent&gt;
23
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
24
 *       &lt;sequence&gt;
25
 *         &lt;element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/&gt;
26
 *         &lt;element name="DigestMethod"&gt;
27
 *           &lt;complexType&gt;
28
 *             &lt;complexContent&gt;
29
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
30
 *                 &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" /&gt;
31
 *               &lt;/restriction&gt;
32
 *             &lt;/complexContent&gt;
33
 *           &lt;/complexType&gt;
34
 *         &lt;/element&gt;
35
 *         &lt;element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/&gt;
36
 *       &lt;/sequence&gt;
37
 *       &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /&gt;
38
 *       &lt;attribute name="URI" use="required"&gt;
39
 *         &lt;simpleType&gt;
40
 *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyURI"&gt;
41
 *             &lt;minLength value="2"/&gt;
42
 *           &lt;/restriction&gt;
43
 *         &lt;/simpleType&gt;
44
 *       &lt;/attribute&gt;
45
 *       &lt;attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" /&gt;
46
 *     &lt;/restriction&gt;
47
 *   &lt;/complexContent&gt;
48
 * &lt;/complexType&gt;
49
 * </pre>
50
 *
51
 *
52
 */
53
@XmlAccessorType(XmlAccessType.FIELD)
54
@XmlType(name = "ReferenceType", namespace = "http://www.w3.org/2000/09/xmldsig#", propOrder = {
55
    "transforms",
56
    "digestMethod",
57
    "digestValue"
58
})
59
public class ReferenceType {
60
 
61
    @XmlElement(name = "Transforms", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
62
    protected TransformsType transforms;
63
    @XmlElement(name = "DigestMethod", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
64
    protected ReferenceType.DigestMethod digestMethod;
65
    @XmlElement(name = "DigestValue", namespace = "http://www.w3.org/2000/09/xmldsig#", required = true)
66
    protected byte[] digestValue;
67
    @XmlAttribute(name = "Id")
68
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
69
    @XmlID
70
    @XmlSchemaType(name = "ID")
71
    protected String id;
72
    @XmlAttribute(name = "URI", required = true)
73
    protected String uri;
74
    @XmlAttribute(name = "Type")
75
    @XmlSchemaType(name = "anyURI")
76
    protected String type;
77
 
78
    /**
79
     * Obtém o valor da propriedade transforms.
80
     *
81
     * @return
82
     *     possible object is
83
     *     {@link TransformsType }
84
     *    
85
     */
86
    public TransformsType getTransforms() {
87
        return transforms;
88
    }
89
 
90
    /**
91
     * Define o valor da propriedade transforms.
92
     *
93
     * @param value
94
     *     allowed object is
95
     *     {@link TransformsType }
96
     *    
97
     */
98
    public void setTransforms(TransformsType value) {
99
        this.transforms = value;
100
    }
101
 
102
    /**
103
     * Obtém o valor da propriedade digestMethod.
104
     *
105
     * @return
106
     *     possible object is
107
     *     {@link ReferenceType.DigestMethod }
108
     *    
109
     */
110
    public ReferenceType.DigestMethod getDigestMethod() {
111
        return digestMethod;
112
    }
113
 
114
    /**
115
     * Define o valor da propriedade digestMethod.
116
     *
117
     * @param value
118
     *     allowed object is
119
     *     {@link ReferenceType.DigestMethod }
120
     *    
121
     */
122
    public void setDigestMethod(ReferenceType.DigestMethod value) {
123
        this.digestMethod = value;
124
    }
125
 
126
    /**
127
     * Obtém o valor da propriedade digestValue.
128
     *
129
     * @return
130
     *     possible object is
131
     *     byte[]
132
     */
133
    public byte[] getDigestValue() {
134
        return digestValue;
135
    }
136
 
137
    /**
138
     * Define o valor da propriedade digestValue.
139
     *
140
     * @param value
141
     *     allowed object is
142
     *     byte[]
143
     */
144
    public void setDigestValue(byte[] value) {
145
        this.digestValue = value;
146
    }
147
 
148
    /**
149
     * Obtém o valor da propriedade id.
150
     *
151
     * @return
152
     *     possible object is
153
     *     {@link String }
154
     *    
155
     */
156
    public String getId() {
157
        return id;
158
    }
159
 
160
    /**
161
     * Define o valor da propriedade id.
162
     *
163
     * @param value
164
     *     allowed object is
165
     *     {@link String }
166
     *    
167
     */
168
    public void setId(String value) {
169
        this.id = value;
170
    }
171
 
172
    /**
173
     * Obtém o valor da propriedade uri.
174
     *
175
     * @return
176
     *     possible object is
177
     *     {@link String }
178
     *    
179
     */
180
    public String getURI() {
181
        return uri;
182
    }
183
 
184
    /**
185
     * Define o valor da propriedade uri.
186
     *
187
     * @param value
188
     *     allowed object is
189
     *     {@link String }
190
     *    
191
     */
192
    public void setURI(String value) {
193
        this.uri = value;
194
    }
195
 
196
    /**
197
     * Obtém o valor da propriedade type.
198
     *
199
     * @return
200
     *     possible object is
201
     *     {@link String }
202
     *    
203
     */
204
    public String getType() {
205
        return type;
206
    }
207
 
208
    /**
209
     * Define o valor da propriedade type.
210
     *
211
     * @param value
212
     *     allowed object is
213
     *     {@link String }
214
     *    
215
     */
216
    public void setType(String value) {
217
        this.type = value;
218
    }
219
 
220
 
221
    /**
222
     * <p>Classe Java de anonymous complex type.
223
     *
224
     * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
225
     *
226
     * <pre>
227
     * &lt;complexType&gt;
228
     *   &lt;complexContent&gt;
229
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
230
     *       &lt;attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" /&gt;
231
     *     &lt;/restriction&gt;
232
     *   &lt;/complexContent&gt;
233
     * &lt;/complexType&gt;
234
     * </pre>
235
     *
236
     *
237
     */
238
    @XmlAccessorType(XmlAccessType.FIELD)
239
    @XmlType(name = "")
240
    public static class DigestMethod {
241
 
242
        @XmlAttribute(name = "Algorithm", required = true)
243
        @XmlSchemaType(name = "anyURI")
244
        protected String algorithm;
245
 
246
        /**
247
         * Obtém o valor da propriedade algorithm.
248
         *
249
         * @return
250
         *     possible object is
251
         *     {@link String }
252
         *    
253
         */
254
        public String getAlgorithm() {
255
            if (algorithm == null) {
256
                return "http://www.w3.org/2000/09/xmldsig#sha1";
257
            } else {
258
                return algorithm;
259
            }
260
        }
261
 
262
        /**
263
         * Define o valor da propriedade algorithm.
264
         *
265
         * @param value
266
         *     allowed object is
267
         *     {@link String }
268
         *    
269
         */
270
        public void setAlgorithm(String value) {
271
            this.algorithm = value;
272
        }
273
 
274
    }
275
 
276
}