oasis.names.specification.ubl.schema.xsd.signatureaggregatecomponents_2.SignatureInformationType Maven / Gradle / Ivy
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.11
// Visite http://java.sun.com/xml/jaxb
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2021.03.22 a las 07:02:09 PM CET
//
package oasis.names.specification.ubl.schema.xsd.signatureaggregatecomponents_2;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType;
import oasis.names.specification.ubl.schema.xsd.signaturebasiccomponents_2.ReferencedSignatureIDType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.w3._2000._09.xmldsig_.SignatureType;
/**
* Clase Java para SignatureInformationType complex type.
*
*
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*
* <complexType name="SignatureInformationType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2}ID" minOccurs="0"/>
* <element ref="{urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2}ReferencedSignatureID" minOccurs="0"/>
* <element ref="{http://www.w3.org/2000/09/xmldsig#}Signature" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SignatureInformationType", propOrder = {
"id",
"referencedSignatureID",
"signature"
})
public class SignatureInformationType implements Serializable, Equals2, HashCode2, ToString2
{
private final static long serialVersionUID = 100L;
@XmlElement(name = "ID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")
protected IDType id;
@XmlElement(name = "ReferencedSignatureID", namespace = "urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2")
protected ReferencedSignatureIDType referencedSignatureID;
@XmlElement(name = "Signature", namespace = "http://www.w3.org/2000/09/xmldsig#")
protected SignatureType signature;
/**
* Obtiene el valor de la propiedad id.
*
* @return
* possible object is
* {@link IDType }
*
*/
public IDType getID() {
return id;
}
/**
* Define el valor de la propiedad id.
*
* @param value
* allowed object is
* {@link IDType }
*
*/
public void setID(IDType value) {
this.id = value;
}
/**
* Obtiene el valor de la propiedad referencedSignatureID.
*
* @return
* possible object is
* {@link ReferencedSignatureIDType }
*
*/
public ReferencedSignatureIDType getReferencedSignatureID() {
return referencedSignatureID;
}
/**
* Define el valor de la propiedad referencedSignatureID.
*
* @param value
* allowed object is
* {@link ReferencedSignatureIDType }
*
*/
public void setReferencedSignatureID(ReferencedSignatureIDType value) {
this.referencedSignatureID = value;
}
/**
* This is a single digital signature as defined by the W3C specification.
*
* @return
* possible object is
* {@link SignatureType }
*
*/
public SignatureType getSignature() {
return signature;
}
/**
* Define el valor de la propiedad signature.
*
* @param value
* allowed object is
* {@link SignatureType }
*
*/
public void setSignature(SignatureType value) {
this.signature = value;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
IDType theID;
theID = this.getID();
strategy.appendField(locator, this, "id", buffer, theID, (this.id!= null));
}
{
ReferencedSignatureIDType theReferencedSignatureID;
theReferencedSignatureID = this.getReferencedSignatureID();
strategy.appendField(locator, this, "referencedSignatureID", buffer, theReferencedSignatureID, (this.referencedSignatureID!= null));
}
{
SignatureType theSignature;
theSignature = this.getSignature();
strategy.appendField(locator, this, "signature", buffer, theSignature, (this.signature!= null));
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final SignatureInformationType that = ((SignatureInformationType) object);
{
IDType lhsID;
lhsID = this.getID();
IDType rhsID;
rhsID = that.getID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsID), LocatorUtils.property(thatLocator, "id", rhsID), lhsID, rhsID, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
ReferencedSignatureIDType lhsReferencedSignatureID;
lhsReferencedSignatureID = this.getReferencedSignatureID();
ReferencedSignatureIDType rhsReferencedSignatureID;
rhsReferencedSignatureID = that.getReferencedSignatureID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "referencedSignatureID", lhsReferencedSignatureID), LocatorUtils.property(thatLocator, "referencedSignatureID", rhsReferencedSignatureID), lhsReferencedSignatureID, rhsReferencedSignatureID, (this.referencedSignatureID!= null), (that.referencedSignatureID!= null))) {
return false;
}
}
{
SignatureType lhsSignature;
lhsSignature = this.getSignature();
SignatureType rhsSignature;
rhsSignature = that.getSignature();
if (!strategy.equals(LocatorUtils.property(thisLocator, "signature", lhsSignature), LocatorUtils.property(thatLocator, "signature", rhsSignature), lhsSignature, rhsSignature, (this.signature!= null), (that.signature!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
int currentHashCode = 1;
{
IDType theID;
theID = this.getID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theID), currentHashCode, theID, (this.id!= null));
}
{
ReferencedSignatureIDType theReferencedSignatureID;
theReferencedSignatureID = this.getReferencedSignatureID();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "referencedSignatureID", theReferencedSignatureID), currentHashCode, theReferencedSignatureID, (this.referencedSignatureID!= null));
}
{
SignatureType theSignature;
theSignature = this.getSignature();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signature", theSignature), currentHashCode, theSignature, (this.signature!= null));
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}