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