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

no.digipost.org.w3.xenc.EncryptedType Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2021.12.01 at 12:54:39 PM UTC 
//


package no.digipost.org.w3.xenc;

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.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import no.digipost.org.w3.xmldsig.KeyInfo;
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 EncryptedType complex type. * *

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

 * <complexType name="EncryptedType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="EncryptionMethod" type="{http://www.w3.org/2001/04/xmlenc#}EncryptionMethodType" minOccurs="0"/>
 *         <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
 *         <element ref="{http://www.w3.org/2001/04/xmlenc#}CipherData"/>
 *         <element ref="{http://www.w3.org/2001/04/xmlenc#}EncryptionProperties" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *       <attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "EncryptedType", propOrder = { "encryptionMethod", "keyInfo", "cipherData", "encryptionProperties" }) @XmlSeeAlso({ EncryptedKey.class, EncryptedData.class }) public abstract class EncryptedType implements Equals2, HashCode2, ToString2 { @XmlElement(name = "EncryptionMethod") protected EncryptionMethodType encryptionMethod; @XmlElement(name = "KeyInfo", namespace = "http://www.w3.org/2000/09/xmldsig#") protected KeyInfo keyInfo; @XmlElement(name = "CipherData", required = true) protected CipherData cipherData; @XmlElement(name = "EncryptionProperties") protected EncryptionProperties encryptionProperties; @XmlAttribute(name = "Id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; @XmlAttribute(name = "Type") @XmlSchemaType(name = "anyURI") protected String type; @XmlAttribute(name = "MimeType") protected String mimeType; @XmlAttribute(name = "Encoding") @XmlSchemaType(name = "anyURI") protected String encoding; /** * Default no-arg constructor * */ public EncryptedType() { super(); } /** * Fully-initialising value constructor * */ public EncryptedType(final EncryptionMethodType encryptionMethod, final KeyInfo keyInfo, final CipherData cipherData, final EncryptionProperties encryptionProperties, final String id, final String type, final String mimeType, final String encoding) { this.encryptionMethod = encryptionMethod; this.keyInfo = keyInfo; this.cipherData = cipherData; this.encryptionProperties = encryptionProperties; this.id = id; this.type = type; this.mimeType = mimeType; this.encoding = encoding; } /** * Gets the value of the encryptionMethod property. * * @return * possible object is * {@link EncryptionMethodType } * */ public EncryptionMethodType getEncryptionMethod() { return encryptionMethod; } /** * Sets the value of the encryptionMethod property. * * @param value * allowed object is * {@link EncryptionMethodType } * */ public void setEncryptionMethod(EncryptionMethodType value) { this.encryptionMethod = value; } /** * Gets the value of the keyInfo property. * * @return * possible object is * {@link KeyInfo } * */ public KeyInfo getKeyInfo() { return keyInfo; } /** * Sets the value of the keyInfo property. * * @param value * allowed object is * {@link KeyInfo } * */ public void setKeyInfo(KeyInfo value) { this.keyInfo = value; } /** * Gets the value of the cipherData property. * * @return * possible object is * {@link CipherData } * */ public CipherData getCipherData() { return cipherData; } /** * Sets the value of the cipherData property. * * @param value * allowed object is * {@link CipherData } * */ public void setCipherData(CipherData value) { this.cipherData = value; } /** * Gets the value of the encryptionProperties property. * * @return * possible object is * {@link EncryptionProperties } * */ public EncryptionProperties getEncryptionProperties() { return encryptionProperties; } /** * Sets the value of the encryptionProperties property. * * @param value * allowed object is * {@link EncryptionProperties } * */ public void setEncryptionProperties(EncryptionProperties value) { this.encryptionProperties = 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; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the mimeType property. * * @return * possible object is * {@link String } * */ public String getMimeType() { return mimeType; } /** * Sets the value of the mimeType property. * * @param value * allowed object is * {@link String } * */ public void setMimeType(String value) { this.mimeType = value; } /** * Gets the value of the encoding property. * * @return * possible object is * {@link String } * */ public String getEncoding() { return encoding; } /** * Sets the value of the encoding property. * * @param value * allowed object is * {@link String } * */ public void setEncoding(String value) { this.encoding = value; } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; 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) { { EncryptionMethodType theEncryptionMethod; theEncryptionMethod = this.getEncryptionMethod(); strategy.appendField(locator, this, "encryptionMethod", buffer, theEncryptionMethod, (this.encryptionMethod!= null)); } { KeyInfo theKeyInfo; theKeyInfo = this.getKeyInfo(); strategy.appendField(locator, this, "keyInfo", buffer, theKeyInfo, (this.keyInfo!= null)); } { CipherData theCipherData; theCipherData = this.getCipherData(); strategy.appendField(locator, this, "cipherData", buffer, theCipherData, (this.cipherData!= null)); } { EncryptionProperties theEncryptionProperties; theEncryptionProperties = this.getEncryptionProperties(); strategy.appendField(locator, this, "encryptionProperties", buffer, theEncryptionProperties, (this.encryptionProperties!= null)); } { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { String theMimeType; theMimeType = this.getMimeType(); strategy.appendField(locator, this, "mimeType", buffer, theMimeType, (this.mimeType!= null)); } { String theEncoding; theEncoding = this.getEncoding(); strategy.appendField(locator, this, "encoding", buffer, theEncoding, (this.encoding!= 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 EncryptedType that = ((EncryptedType) object); { EncryptionMethodType lhsEncryptionMethod; lhsEncryptionMethod = this.getEncryptionMethod(); EncryptionMethodType rhsEncryptionMethod; rhsEncryptionMethod = that.getEncryptionMethod(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encryptionMethod", lhsEncryptionMethod), LocatorUtils.property(thatLocator, "encryptionMethod", rhsEncryptionMethod), lhsEncryptionMethod, rhsEncryptionMethod, (this.encryptionMethod!= null), (that.encryptionMethod!= null))) { return false; } } { KeyInfo lhsKeyInfo; lhsKeyInfo = this.getKeyInfo(); KeyInfo rhsKeyInfo; rhsKeyInfo = that.getKeyInfo(); if (!strategy.equals(LocatorUtils.property(thisLocator, "keyInfo", lhsKeyInfo), LocatorUtils.property(thatLocator, "keyInfo", rhsKeyInfo), lhsKeyInfo, rhsKeyInfo, (this.keyInfo!= null), (that.keyInfo!= null))) { return false; } } { CipherData lhsCipherData; lhsCipherData = this.getCipherData(); CipherData rhsCipherData; rhsCipherData = that.getCipherData(); if (!strategy.equals(LocatorUtils.property(thisLocator, "cipherData", lhsCipherData), LocatorUtils.property(thatLocator, "cipherData", rhsCipherData), lhsCipherData, rhsCipherData, (this.cipherData!= null), (that.cipherData!= null))) { return false; } } { EncryptionProperties lhsEncryptionProperties; lhsEncryptionProperties = this.getEncryptionProperties(); EncryptionProperties rhsEncryptionProperties; rhsEncryptionProperties = that.getEncryptionProperties(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encryptionProperties", lhsEncryptionProperties), LocatorUtils.property(thatLocator, "encryptionProperties", rhsEncryptionProperties), lhsEncryptionProperties, rhsEncryptionProperties, (this.encryptionProperties!= null), (that.encryptionProperties!= 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; } } { String lhsType; lhsType = this.getType(); String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { String lhsMimeType; lhsMimeType = this.getMimeType(); String rhsMimeType; rhsMimeType = that.getMimeType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mimeType", lhsMimeType), LocatorUtils.property(thatLocator, "mimeType", rhsMimeType), lhsMimeType, rhsMimeType, (this.mimeType!= null), (that.mimeType!= null))) { return false; } } { String lhsEncoding; lhsEncoding = this.getEncoding(); String rhsEncoding; rhsEncoding = that.getEncoding(); if (!strategy.equals(LocatorUtils.property(thisLocator, "encoding", lhsEncoding), LocatorUtils.property(thatLocator, "encoding", rhsEncoding), lhsEncoding, rhsEncoding, (this.encoding!= null), (that.encoding!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { EncryptionMethodType theEncryptionMethod; theEncryptionMethod = this.getEncryptionMethod(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encryptionMethod", theEncryptionMethod), currentHashCode, theEncryptionMethod, (this.encryptionMethod!= null)); } { KeyInfo theKeyInfo; theKeyInfo = this.getKeyInfo(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keyInfo", theKeyInfo), currentHashCode, theKeyInfo, (this.keyInfo!= null)); } { CipherData theCipherData; theCipherData = this.getCipherData(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cipherData", theCipherData), currentHashCode, theCipherData, (this.cipherData!= null)); } { EncryptionProperties theEncryptionProperties; theEncryptionProperties = this.getEncryptionProperties(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encryptionProperties", theEncryptionProperties), currentHashCode, theEncryptionProperties, (this.encryptionProperties!= null)); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { String theMimeType; theMimeType = this.getMimeType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mimeType", theMimeType), currentHashCode, theMimeType, (this.mimeType!= null)); } { String theEncoding; theEncoding = this.getEncoding(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "encoding", theEncoding), currentHashCode, theEncoding, (this.encoding!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public EncryptedType withEncryptionMethod(EncryptionMethodType value) { setEncryptionMethod(value); return this; } public EncryptedType withKeyInfo(KeyInfo value) { setKeyInfo(value); return this; } public EncryptedType withCipherData(CipherData value) { setCipherData(value); return this; } public EncryptedType withEncryptionProperties(EncryptionProperties value) { setEncryptionProperties(value); return this; } public EncryptedType withId(String value) { setId(value); return this; } public EncryptedType withType(String value) { setType(value); return this; } public EncryptedType withMimeType(String value) { setMimeType(value); return this; } public EncryptedType withEncoding(String value) { setEncoding(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy