no.difi.begrep.sdp.schema_v10.SDPDigitalPost 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
The newest version!
//
// 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 no.difi.begrep.sdp.schema_v10;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import no.digipost.org.w3.xmldsig.Reference;
import no.digipost.org.w3.xmldsig.Signature;
import no.digipost.xsd.types.DigitalPostformidling;
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;
/**
*
* Sikker digital postmelding fra avsender til mottaker, samt
* informasjon relatert til presentasjon og behandling av denne.
*
*
* Java class for DigitalPost complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DigitalPost">
* <complexContent>
* <extension base="{http://begrep.difi.no/sdp/schema_v10}Melding">
* <sequence>
* <element name="avsender" type="{http://begrep.difi.no/sdp/schema_v10}Avsender"/>
* <choice>
* <element name="fysiskPostInfo" type="{http://begrep.difi.no/sdp/schema_v10}FysiskPostInfo"/>
* <sequence>
* <element name="mottaker" type="{http://begrep.difi.no/sdp/schema_v10}Mottaker"/>
* <element name="digitalPostInfo" type="{http://begrep.difi.no/sdp/schema_v10}DigitalPostInfo"/>
* </sequence>
* </choice>
* <element name="dokumentpakkefingeravtrykk" type="{http://www.w3.org/2000/09/xmldsig#}ReferenceType"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DigitalPost", propOrder = {
"avsender",
"mottaker",
"digitalPostInfo",
"fysiskPostInfo",
"dokumentpakkefingeravtrykk"
})
@XmlRootElement(name = "digitalPost")
public class SDPDigitalPost
extends SDPMelding
implements DigitalPostformidling, Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected SDPAvsender avsender;
protected SDPMottaker mottaker;
protected SDPDigitalPostInfo digitalPostInfo;
protected SDPFysiskPostInfo fysiskPostInfo;
@XmlElement(required = true)
protected Reference dokumentpakkefingeravtrykk;
/**
* Default no-arg constructor
*
*/
public SDPDigitalPost() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SDPDigitalPost(final Signature signature, final SDPAvsender avsender, final SDPMottaker mottaker, final SDPDigitalPostInfo digitalPostInfo, final SDPFysiskPostInfo fysiskPostInfo, final Reference dokumentpakkefingeravtrykk) {
super(signature);
this.avsender = avsender;
this.mottaker = mottaker;
this.digitalPostInfo = digitalPostInfo;
this.fysiskPostInfo = fysiskPostInfo;
this.dokumentpakkefingeravtrykk = dokumentpakkefingeravtrykk;
}
/**
* Gets the value of the avsender property.
*
* @return
* possible object is
* {@link SDPAvsender }
*
*/
public SDPAvsender getAvsender() {
return avsender;
}
/**
* Sets the value of the avsender property.
*
* @param value
* allowed object is
* {@link SDPAvsender }
*
*/
public void setAvsender(SDPAvsender value) {
this.avsender = value;
}
/**
* Gets the value of the mottaker property.
*
* @return
* possible object is
* {@link SDPMottaker }
*
*/
public SDPMottaker getMottaker() {
return mottaker;
}
/**
* Sets the value of the mottaker property.
*
* @param value
* allowed object is
* {@link SDPMottaker }
*
*/
public void setMottaker(SDPMottaker value) {
this.mottaker = value;
}
/**
* Gets the value of the digitalPostInfo property.
*
* @return
* possible object is
* {@link SDPDigitalPostInfo }
*
*/
public SDPDigitalPostInfo getDigitalPostInfo() {
return digitalPostInfo;
}
/**
* Sets the value of the digitalPostInfo property.
*
* @param value
* allowed object is
* {@link SDPDigitalPostInfo }
*
*/
public void setDigitalPostInfo(SDPDigitalPostInfo value) {
this.digitalPostInfo = value;
}
/**
* Gets the value of the fysiskPostInfo property.
*
* @return
* possible object is
* {@link SDPFysiskPostInfo }
*
*/
public SDPFysiskPostInfo getFysiskPostInfo() {
return fysiskPostInfo;
}
/**
* Sets the value of the fysiskPostInfo property.
*
* @param value
* allowed object is
* {@link SDPFysiskPostInfo }
*
*/
public void setFysiskPostInfo(SDPFysiskPostInfo value) {
this.fysiskPostInfo = value;
}
/**
* Gets the value of the dokumentpakkefingeravtrykk property.
*
* @return
* possible object is
* {@link Reference }
*
*/
public Reference getDokumentpakkefingeravtrykk() {
return dokumentpakkefingeravtrykk;
}
/**
* Sets the value of the dokumentpakkefingeravtrykk property.
*
* @param value
* allowed object is
* {@link Reference }
*
*/
public void setDokumentpakkefingeravtrykk(Reference value) {
this.dokumentpakkefingeravtrykk = 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) {
super.appendFields(locator, buffer, strategy);
{
SDPAvsender theAvsender;
theAvsender = this.getAvsender();
strategy.appendField(locator, this, "avsender", buffer, theAvsender, (this.avsender!= null));
}
{
SDPMottaker theMottaker;
theMottaker = this.getMottaker();
strategy.appendField(locator, this, "mottaker", buffer, theMottaker, (this.mottaker!= null));
}
{
SDPDigitalPostInfo theDigitalPostInfo;
theDigitalPostInfo = this.getDigitalPostInfo();
strategy.appendField(locator, this, "digitalPostInfo", buffer, theDigitalPostInfo, (this.digitalPostInfo!= null));
}
{
SDPFysiskPostInfo theFysiskPostInfo;
theFysiskPostInfo = this.getFysiskPostInfo();
strategy.appendField(locator, this, "fysiskPostInfo", buffer, theFysiskPostInfo, (this.fysiskPostInfo!= null));
}
{
Reference theDokumentpakkefingeravtrykk;
theDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk();
strategy.appendField(locator, this, "dokumentpakkefingeravtrykk", buffer, theDokumentpakkefingeravtrykk, (this.dokumentpakkefingeravtrykk!= 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;
}
if (!super.equals(thisLocator, thatLocator, object, strategy)) {
return false;
}
final SDPDigitalPost that = ((SDPDigitalPost) object);
{
SDPAvsender lhsAvsender;
lhsAvsender = this.getAvsender();
SDPAvsender rhsAvsender;
rhsAvsender = that.getAvsender();
if (!strategy.equals(LocatorUtils.property(thisLocator, "avsender", lhsAvsender), LocatorUtils.property(thatLocator, "avsender", rhsAvsender), lhsAvsender, rhsAvsender, (this.avsender!= null), (that.avsender!= null))) {
return false;
}
}
{
SDPMottaker lhsMottaker;
lhsMottaker = this.getMottaker();
SDPMottaker rhsMottaker;
rhsMottaker = that.getMottaker();
if (!strategy.equals(LocatorUtils.property(thisLocator, "mottaker", lhsMottaker), LocatorUtils.property(thatLocator, "mottaker", rhsMottaker), lhsMottaker, rhsMottaker, (this.mottaker!= null), (that.mottaker!= null))) {
return false;
}
}
{
SDPDigitalPostInfo lhsDigitalPostInfo;
lhsDigitalPostInfo = this.getDigitalPostInfo();
SDPDigitalPostInfo rhsDigitalPostInfo;
rhsDigitalPostInfo = that.getDigitalPostInfo();
if (!strategy.equals(LocatorUtils.property(thisLocator, "digitalPostInfo", lhsDigitalPostInfo), LocatorUtils.property(thatLocator, "digitalPostInfo", rhsDigitalPostInfo), lhsDigitalPostInfo, rhsDigitalPostInfo, (this.digitalPostInfo!= null), (that.digitalPostInfo!= null))) {
return false;
}
}
{
SDPFysiskPostInfo lhsFysiskPostInfo;
lhsFysiskPostInfo = this.getFysiskPostInfo();
SDPFysiskPostInfo rhsFysiskPostInfo;
rhsFysiskPostInfo = that.getFysiskPostInfo();
if (!strategy.equals(LocatorUtils.property(thisLocator, "fysiskPostInfo", lhsFysiskPostInfo), LocatorUtils.property(thatLocator, "fysiskPostInfo", rhsFysiskPostInfo), lhsFysiskPostInfo, rhsFysiskPostInfo, (this.fysiskPostInfo!= null), (that.fysiskPostInfo!= null))) {
return false;
}
}
{
Reference lhsDokumentpakkefingeravtrykk;
lhsDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk();
Reference rhsDokumentpakkefingeravtrykk;
rhsDokumentpakkefingeravtrykk = that.getDokumentpakkefingeravtrykk();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dokumentpakkefingeravtrykk", lhsDokumentpakkefingeravtrykk), LocatorUtils.property(thatLocator, "dokumentpakkefingeravtrykk", rhsDokumentpakkefingeravtrykk), lhsDokumentpakkefingeravtrykk, rhsDokumentpakkefingeravtrykk, (this.dokumentpakkefingeravtrykk!= null), (that.dokumentpakkefingeravtrykk!= 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 = super.hashCode(locator, strategy);
{
SDPAvsender theAvsender;
theAvsender = this.getAvsender();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "avsender", theAvsender), currentHashCode, theAvsender, (this.avsender!= null));
}
{
SDPMottaker theMottaker;
theMottaker = this.getMottaker();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mottaker", theMottaker), currentHashCode, theMottaker, (this.mottaker!= null));
}
{
SDPDigitalPostInfo theDigitalPostInfo;
theDigitalPostInfo = this.getDigitalPostInfo();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "digitalPostInfo", theDigitalPostInfo), currentHashCode, theDigitalPostInfo, (this.digitalPostInfo!= null));
}
{
SDPFysiskPostInfo theFysiskPostInfo;
theFysiskPostInfo = this.getFysiskPostInfo();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fysiskPostInfo", theFysiskPostInfo), currentHashCode, theFysiskPostInfo, (this.fysiskPostInfo!= null));
}
{
Reference theDokumentpakkefingeravtrykk;
theDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dokumentpakkefingeravtrykk", theDokumentpakkefingeravtrykk), currentHashCode, theDokumentpakkefingeravtrykk, (this.dokumentpakkefingeravtrykk!= null));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
public SDPDigitalPost withAvsender(SDPAvsender value) {
setAvsender(value);
return this;
}
public SDPDigitalPost withMottaker(SDPMottaker value) {
setMottaker(value);
return this;
}
public SDPDigitalPost withDigitalPostInfo(SDPDigitalPostInfo value) {
setDigitalPostInfo(value);
return this;
}
public SDPDigitalPost withFysiskPostInfo(SDPFysiskPostInfo value) {
setFysiskPostInfo(value);
return this;
}
public SDPDigitalPost withDokumentpakkefingeravtrykk(Reference value) {
setDokumentpakkefingeravtrykk(value);
return this;
}
@Override
public SDPDigitalPost withSignature(Signature value) {
setSignature(value);
return this;
}
}