
org.etsi.uri._01903.v1_3.SignedSignatureProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-xsd Show documentation
Show all versions of sdp-xsd Show documentation
XSDer og genererte JAXB-klasser
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.05.30 at 01:15:57 PM CEST
//
package org.etsi.uri._01903.v1_3;
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.joda.time.DateTime;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
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.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString
{
@XmlElement(name = "SigningTime", type = String.class)
@XmlJavaTypeAdapter(XSDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected DateTime 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 DateTime 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 DateTime getSigningTime() {
return signingTime;
}
/**
* Sets the value of the signingTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSigningTime(DateTime 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;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
DateTime theSigningTime;
theSigningTime = this.getSigningTime();
strategy.appendField(locator, this, "signingTime", buffer, theSigningTime);
}
{
SigningCertificate theSigningCertificate;
theSigningCertificate = this.getSigningCertificate();
strategy.appendField(locator, this, "signingCertificate", buffer, theSigningCertificate);
}
{
SignaturePolicyIdentifier theSignaturePolicyIdentifier;
theSignaturePolicyIdentifier = this.getSignaturePolicyIdentifier();
strategy.appendField(locator, this, "signaturePolicyIdentifier", buffer, theSignaturePolicyIdentifier);
}
{
SignatureProductionPlace theSignatureProductionPlace;
theSignatureProductionPlace = this.getSignatureProductionPlace();
strategy.appendField(locator, this, "signatureProductionPlace", buffer, theSignatureProductionPlace);
}
{
SignerRole theSignerRole;
theSignerRole = this.getSignerRole();
strategy.appendField(locator, this, "signerRole", buffer, theSignerRole);
}
{
String theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SignedSignatureProperties)) {
return false;
}
if (this == object) {
return true;
}
final SignedSignatureProperties that = ((SignedSignatureProperties) object);
{
DateTime lhsSigningTime;
lhsSigningTime = this.getSigningTime();
DateTime rhsSigningTime;
rhsSigningTime = that.getSigningTime();
if (!strategy.equals(LocatorUtils.property(thisLocator, "signingTime", lhsSigningTime), LocatorUtils.property(thatLocator, "signingTime", rhsSigningTime), lhsSigningTime, rhsSigningTime)) {
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)) {
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)) {
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)) {
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)) {
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)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
DateTime theSigningTime;
theSigningTime = this.getSigningTime();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signingTime", theSigningTime), currentHashCode, theSigningTime);
}
{
SigningCertificate theSigningCertificate;
theSigningCertificate = this.getSigningCertificate();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signingCertificate", theSigningCertificate), currentHashCode, theSigningCertificate);
}
{
SignaturePolicyIdentifier theSignaturePolicyIdentifier;
theSignaturePolicyIdentifier = this.getSignaturePolicyIdentifier();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signaturePolicyIdentifier", theSignaturePolicyIdentifier), currentHashCode, theSignaturePolicyIdentifier);
}
{
SignatureProductionPlace theSignatureProductionPlace;
theSignatureProductionPlace = this.getSignatureProductionPlace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signatureProductionPlace", theSignatureProductionPlace), currentHashCode, theSignatureProductionPlace);
}
{
SignerRole theSignerRole;
theSignerRole = this.getSignerRole();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signerRole", theSignerRole), currentHashCode, theSignerRole);
}
{
String theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public SignedSignatureProperties withSigningTime(DateTime 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 - 2025 Weber Informatics LLC | Privacy Policy