All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.etsi.uri._01903.v1_3.SignedSignatureProperties Maven / Gradle / Ivy

//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.11.06 at 01:54:33 PM UTC 
//


package org.etsi.uri._01903.v1_3;

import java.time.ZonedDateTime;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import no.digipost.xsd.jaxb.XSDateTimeAdapter;
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;


/**
 * 

Java class for SignedSignaturePropertiesType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="SignedSignaturePropertiesType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="SigningTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         <element name="SigningCertificate" type="{http://uri.etsi.org/01903/v1.3.2#}CertIDListType" minOccurs="0"/>
 *         <element name="SignaturePolicyIdentifier" type="{http://uri.etsi.org/01903/v1.3.2#}SignaturePolicyIdentifierType" minOccurs="0"/>
 *         <element name="SignatureProductionPlace" type="{http://uri.etsi.org/01903/v1.3.2#}SignatureProductionPlaceType" minOccurs="0"/>
 *         <element name="SignerRole" type="{http://uri.etsi.org/01903/v1.3.2#}SignerRoleType" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SignedSignaturePropertiesType", propOrder = { "signingTime", "signingCertificate", "signaturePolicyIdentifier", "signatureProductionPlace", "signerRole" }) @XmlRootElement(name = "SignedSignatureProperties") public class SignedSignatureProperties implements Equals2, HashCode2, ToString2 { @XmlElement(name = "SigningTime", type = String.class) @XmlJavaTypeAdapter(XSDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime signingTime; @XmlElement(name = "SigningCertificate") protected SigningCertificate signingCertificate; @XmlElement(name = "SignaturePolicyIdentifier") protected SignaturePolicyIdentifier signaturePolicyIdentifier; @XmlElement(name = "SignatureProductionPlace") protected SignatureProductionPlace signatureProductionPlace; @XmlElement(name = "SignerRole") protected SignerRole signerRole; @XmlAttribute(name = "Id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; /** * Default no-arg constructor * */ public SignedSignatureProperties() { super(); } /** * Fully-initialising value constructor * */ public SignedSignatureProperties(final ZonedDateTime signingTime, final SigningCertificate signingCertificate, final SignaturePolicyIdentifier signaturePolicyIdentifier, final SignatureProductionPlace signatureProductionPlace, final SignerRole signerRole, final String id) { this.signingTime = signingTime; this.signingCertificate = signingCertificate; this.signaturePolicyIdentifier = signaturePolicyIdentifier; this.signatureProductionPlace = signatureProductionPlace; this.signerRole = signerRole; this.id = id; } /** * Gets the value of the signingTime property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getSigningTime() { return signingTime; } /** * Sets the value of the signingTime property. * * @param value * allowed object is * {@link String } * */ public void setSigningTime(ZonedDateTime value) { this.signingTime = value; } /** * Gets the value of the signingCertificate property. * * @return * possible object is * {@link SigningCertificate } * */ public SigningCertificate getSigningCertificate() { return signingCertificate; } /** * Sets the value of the signingCertificate property. * * @param value * allowed object is * {@link SigningCertificate } * */ public void setSigningCertificate(SigningCertificate value) { this.signingCertificate = value; } /** * Gets the value of the signaturePolicyIdentifier property. * * @return * possible object is * {@link SignaturePolicyIdentifier } * */ public SignaturePolicyIdentifier getSignaturePolicyIdentifier() { return signaturePolicyIdentifier; } /** * Sets the value of the signaturePolicyIdentifier property. * * @param value * allowed object is * {@link SignaturePolicyIdentifier } * */ public void setSignaturePolicyIdentifier(SignaturePolicyIdentifier value) { this.signaturePolicyIdentifier = value; } /** * Gets the value of the signatureProductionPlace property. * * @return * possible object is * {@link SignatureProductionPlace } * */ public SignatureProductionPlace getSignatureProductionPlace() { return signatureProductionPlace; } /** * Sets the value of the signatureProductionPlace property. * * @param value * allowed object is * {@link SignatureProductionPlace } * */ public void setSignatureProductionPlace(SignatureProductionPlace value) { this.signatureProductionPlace = value; } /** * Gets the value of the signerRole property. * * @return * possible object is * {@link SignerRole } * */ public SignerRole getSignerRole() { return signerRole; } /** * Sets the value of the signerRole property. * * @param value * allowed object is * {@link SignerRole } * */ public void setSignerRole(SignerRole value) { this.signerRole = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override 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; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { ZonedDateTime theSigningTime; theSigningTime = this.getSigningTime(); strategy.appendField(locator, this, "signingTime", buffer, theSigningTime, (this.signingTime!= null)); } { SigningCertificate theSigningCertificate; theSigningCertificate = this.getSigningCertificate(); strategy.appendField(locator, this, "signingCertificate", buffer, theSigningCertificate, (this.signingCertificate!= null)); } { SignaturePolicyIdentifier theSignaturePolicyIdentifier; theSignaturePolicyIdentifier = this.getSignaturePolicyIdentifier(); strategy.appendField(locator, this, "signaturePolicyIdentifier", buffer, theSignaturePolicyIdentifier, (this.signaturePolicyIdentifier!= null)); } { SignatureProductionPlace theSignatureProductionPlace; theSignatureProductionPlace = this.getSignatureProductionPlace(); strategy.appendField(locator, this, "signatureProductionPlace", buffer, theSignatureProductionPlace, (this.signatureProductionPlace!= null)); } { SignerRole theSignerRole; theSignerRole = this.getSignerRole(); strategy.appendField(locator, this, "signerRole", buffer, theSignerRole, (this.signerRole!= null)); } { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } return buffer; } @Override 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 SignedSignatureProperties that = ((SignedSignatureProperties) object); { ZonedDateTime lhsSigningTime; lhsSigningTime = this.getSigningTime(); ZonedDateTime rhsSigningTime; rhsSigningTime = that.getSigningTime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "signingTime", lhsSigningTime), LocatorUtils.property(thatLocator, "signingTime", rhsSigningTime), lhsSigningTime, rhsSigningTime, (this.signingTime!= null), (that.signingTime!= null))) { return false; } } { SigningCertificate lhsSigningCertificate; lhsSigningCertificate = this.getSigningCertificate(); SigningCertificate rhsSigningCertificate; rhsSigningCertificate = that.getSigningCertificate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "signingCertificate", lhsSigningCertificate), LocatorUtils.property(thatLocator, "signingCertificate", rhsSigningCertificate), lhsSigningCertificate, rhsSigningCertificate, (this.signingCertificate!= null), (that.signingCertificate!= null))) { return false; } } { SignaturePolicyIdentifier lhsSignaturePolicyIdentifier; lhsSignaturePolicyIdentifier = this.getSignaturePolicyIdentifier(); SignaturePolicyIdentifier rhsSignaturePolicyIdentifier; rhsSignaturePolicyIdentifier = that.getSignaturePolicyIdentifier(); if (!strategy.equals(LocatorUtils.property(thisLocator, "signaturePolicyIdentifier", lhsSignaturePolicyIdentifier), LocatorUtils.property(thatLocator, "signaturePolicyIdentifier", rhsSignaturePolicyIdentifier), lhsSignaturePolicyIdentifier, rhsSignaturePolicyIdentifier, (this.signaturePolicyIdentifier!= null), (that.signaturePolicyIdentifier!= null))) { return false; } } { SignatureProductionPlace lhsSignatureProductionPlace; lhsSignatureProductionPlace = this.getSignatureProductionPlace(); SignatureProductionPlace rhsSignatureProductionPlace; rhsSignatureProductionPlace = that.getSignatureProductionPlace(); if (!strategy.equals(LocatorUtils.property(thisLocator, "signatureProductionPlace", lhsSignatureProductionPlace), LocatorUtils.property(thatLocator, "signatureProductionPlace", rhsSignatureProductionPlace), lhsSignatureProductionPlace, rhsSignatureProductionPlace, (this.signatureProductionPlace!= null), (that.signatureProductionPlace!= null))) { return false; } } { SignerRole lhsSignerRole; lhsSignerRole = this.getSignerRole(); SignerRole rhsSignerRole; rhsSignerRole = that.getSignerRole(); if (!strategy.equals(LocatorUtils.property(thisLocator, "signerRole", lhsSignerRole), LocatorUtils.property(thatLocator, "signerRole", rhsSignerRole), lhsSignerRole, rhsSignerRole, (this.signerRole!= null), (that.signerRole!= null))) { return false; } } { String lhsId; lhsId = this.getId(); String 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; } } return true; } @Override public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { ZonedDateTime theSigningTime; theSigningTime = this.getSigningTime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signingTime", theSigningTime), currentHashCode, theSigningTime, (this.signingTime!= null)); } { SigningCertificate theSigningCertificate; theSigningCertificate = this.getSigningCertificate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signingCertificate", theSigningCertificate), currentHashCode, theSigningCertificate, (this.signingCertificate!= null)); } { SignaturePolicyIdentifier theSignaturePolicyIdentifier; theSignaturePolicyIdentifier = this.getSignaturePolicyIdentifier(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signaturePolicyIdentifier", theSignaturePolicyIdentifier), currentHashCode, theSignaturePolicyIdentifier, (this.signaturePolicyIdentifier!= null)); } { SignatureProductionPlace theSignatureProductionPlace; theSignatureProductionPlace = this.getSignatureProductionPlace(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signatureProductionPlace", theSignatureProductionPlace), currentHashCode, theSignatureProductionPlace, (this.signatureProductionPlace!= null)); } { SignerRole theSignerRole; theSignerRole = this.getSignerRole(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signerRole", theSignerRole), currentHashCode, theSignerRole, (this.signerRole!= null)); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SignedSignatureProperties withSigningTime(ZonedDateTime value) { setSigningTime(value); return this; } public SignedSignatureProperties withSigningCertificate(SigningCertificate value) { setSigningCertificate(value); return this; } public SignedSignatureProperties withSignaturePolicyIdentifier(SignaturePolicyIdentifier value) { setSignaturePolicyIdentifier(value); return this; } public SignedSignatureProperties withSignatureProductionPlace(SignatureProductionPlace value) { setSignatureProductionPlace(value); return this; } public SignedSignatureProperties withSignerRole(SignerRole value) { setSignerRole(value); return this; } public SignedSignatureProperties withId(String value) { setId(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy