br.com.swconsultoria.mdfe.schema_300.retEventoMDFe.ReferenceType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-mdfe Show documentation
Show all versions of java-mdfe Show documentation
API Java para consumo do WebService de MDFe
The newest version!
package br.com.swconsultoria.mdfe.schema_300.retEventoMDFe;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Classe Java de ReferenceType complex type.
*
*
O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
*
*
* <complexType name="ReferenceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Transforms" type="{http://www.w3.org/2000/09/xmldsig#}TransformsType"/>
* <element name="DigestMethod">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="DigestValue" type="{http://www.w3.org/2000/09/xmldsig#}DigestValueType"/>
* </sequence>
* <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="URI" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyURI">
* <minLength value="2"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReferenceType", propOrder = {
"transforms",
"digestMethod",
"digestValue"
})
public class ReferenceType {
@XmlElement(name = "Transforms", required = true)
protected TransformsType transforms;
@XmlElement(name = "DigestMethod", required = true)
protected DigestMethod digestMethod;
@XmlElement(name = "DigestValue", required = true)
protected byte[] digestValue;
@XmlAttribute(name = "Id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "URI", required = true)
protected String uri;
@XmlAttribute(name = "Type")
@XmlSchemaType(name = "anyURI")
protected String type;
/**
* Obtém o valor da propriedade transforms.
*
* @return possible object is
* {@link TransformsType }
*/
public TransformsType getTransforms() {
return transforms;
}
/**
* Define o valor da propriedade transforms.
*
* @param value allowed object is
* {@link TransformsType }
*/
public void setTransforms(TransformsType value) {
this.transforms = value;
}
/**
* Obtém o valor da propriedade digestMethod.
*
* @return possible object is
* {@link DigestMethod }
*/
public DigestMethod getDigestMethod() {
return digestMethod;
}
/**
* Define o valor da propriedade digestMethod.
*
* @param value allowed object is
* {@link DigestMethod }
*/
public void setDigestMethod(DigestMethod value) {
this.digestMethod = value;
}
/**
* Obtém o valor da propriedade digestValue.
*
* @return possible object is
* byte[]
*/
public byte[] getDigestValue() {
return digestValue;
}
/**
* Define o valor da propriedade digestValue.
*
* @param value allowed object is
* byte[]
*/
public void setDigestValue(byte[] value) {
this.digestValue = value;
}
/**
* Obtém o valor da propriedade id.
*
* @return possible object is
* {@link String }
*/
public String getId() {
return id;
}
/**
* Define o valor da propriedade id.
*
* @param value allowed object is
* {@link String }
*/
public void setId(String value) {
this.id = value;
}
/**
* Obtém o valor da propriedade uri.
*
* @return possible object is
* {@link String }
*/
public String getURI() {
return uri;
}
/**
* Define o valor da propriedade uri.
*
* @param value allowed object is
* {@link String }
*/
public void setURI(String value) {
this.uri = value;
}
/**
* Obtém o valor da propriedade type.
*
* @return possible object is
* {@link String }
*/
public String getType() {
return type;
}
/**
* Define o valor da propriedade type.
*
* @param value allowed object is
* {@link String }
*/
public void setType(String value) {
this.type = value;
}
/**
* Classe Java de anonymous complex type.
*
*
O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.w3.org/2000/09/xmldsig#sha1" />
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class DigestMethod {
@XmlAttribute(name = "Algorithm", required = true)
@XmlSchemaType(name = "anyURI")
protected String algorithm;
/**
* Obtém o valor da propriedade algorithm.
*
* @return possible object is
* {@link String }
*/
public String getAlgorithm() {
if (algorithm == null) {
return "http://www.w3.org/2000/09/xmldsig#sha1";
} else {
return algorithm;
}
}
/**
* Define o valor da propriedade algorithm.
*
* @param value allowed object is
* {@link String }
*/
public void setAlgorithm(String value) {
this.algorithm = value;
}
}
}