
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
//
// 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 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.xsd.types.DigitalPostformidling;
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;
import org.w3.xmldsig.Reference;
import org.w3.xmldsig.Signature;
/**
*
* 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, Equals, HashCode, ToString
{
@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;
}
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) {
super.appendFields(locator, buffer, strategy);
{
SDPAvsender theAvsender;
theAvsender = this.getAvsender();
strategy.appendField(locator, this, "avsender", buffer, theAvsender);
}
{
SDPMottaker theMottaker;
theMottaker = this.getMottaker();
strategy.appendField(locator, this, "mottaker", buffer, theMottaker);
}
{
SDPDigitalPostInfo theDigitalPostInfo;
theDigitalPostInfo = this.getDigitalPostInfo();
strategy.appendField(locator, this, "digitalPostInfo", buffer, theDigitalPostInfo);
}
{
SDPFysiskPostInfo theFysiskPostInfo;
theFysiskPostInfo = this.getFysiskPostInfo();
strategy.appendField(locator, this, "fysiskPostInfo", buffer, theFysiskPostInfo);
}
{
Reference theDokumentpakkefingeravtrykk;
theDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk();
strategy.appendField(locator, this, "dokumentpakkefingeravtrykk", buffer, theDokumentpakkefingeravtrykk);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SDPDigitalPost)) {
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)) {
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)) {
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)) {
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)) {
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)) {
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 = super.hashCode(locator, strategy);
{
SDPAvsender theAvsender;
theAvsender = this.getAvsender();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "avsender", theAvsender), currentHashCode, theAvsender);
}
{
SDPMottaker theMottaker;
theMottaker = this.getMottaker();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mottaker", theMottaker), currentHashCode, theMottaker);
}
{
SDPDigitalPostInfo theDigitalPostInfo;
theDigitalPostInfo = this.getDigitalPostInfo();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "digitalPostInfo", theDigitalPostInfo), currentHashCode, theDigitalPostInfo);
}
{
SDPFysiskPostInfo theFysiskPostInfo;
theFysiskPostInfo = this.getFysiskPostInfo();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fysiskPostInfo", theFysiskPostInfo), currentHashCode, theFysiskPostInfo);
}
{
Reference theDokumentpakkefingeravtrykk;
theDokumentpakkefingeravtrykk = this.getDokumentpakkefingeravtrykk();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dokumentpakkefingeravtrykk", theDokumentpakkefingeravtrykk), currentHashCode, theDokumentpakkefingeravtrykk);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy