
no.difi.begrep.sdp.schema_v10.SDPDigitalPostInfo 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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import no.digipost.xsd.jaxb.XSDateAdapter;
import no.digipost.xsd.jaxb.XSDateTimeAdapter;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
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 DigitalPostInfo complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DigitalPostInfo">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice>
* <element name="virkningsdato" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* <element name="virkningstidspunkt" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* </choice>
* <element name="aapningskvittering" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="sikkerhetsnivaa" type="{http://begrep.difi.no/sdp/schema_v10}Sikkerhetsnivaa"/>
* <element name="ikkeSensitivTittel" type="{http://begrep.difi.no/sdp/schema_v10}Tittel"/>
* <element name="varsler" type="{http://begrep.difi.no/sdp/schema_v10}Varsler" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DigitalPostInfo", propOrder = {
"virkningstidspunkt",
"virkningsdato",
"aapningskvittering",
"sikkerhetsnivaa",
"ikkeSensitivTittel",
"varsler"
})
public class SDPDigitalPostInfo implements Equals, HashCode, ToString
{
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(XSDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected DateTime virkningstidspunkt;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(XSDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate virkningsdato;
@XmlElement(defaultValue = "false")
protected Boolean aapningskvittering = false;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected SDPSikkerhetsnivaa sikkerhetsnivaa;
@XmlElement(required = true)
protected SDPTittel ikkeSensitivTittel;
protected SDPVarsler varsler;
/**
* Default no-arg constructor
*
*/
public SDPDigitalPostInfo() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SDPDigitalPostInfo(final DateTime virkningstidspunkt, final LocalDate virkningsdato, final Boolean aapningskvittering, final SDPSikkerhetsnivaa sikkerhetsnivaa, final SDPTittel ikkeSensitivTittel, final SDPVarsler varsler) {
this.virkningstidspunkt = virkningstidspunkt;
this.virkningsdato = virkningsdato;
this.aapningskvittering = aapningskvittering;
this.sikkerhetsnivaa = sikkerhetsnivaa;
this.ikkeSensitivTittel = ikkeSensitivTittel;
this.varsler = varsler;
}
/**
* Gets the value of the virkningstidspunkt property.
*
* @return
* possible object is
* {@link String }
*
*/
public DateTime getVirkningstidspunkt() {
return virkningstidspunkt;
}
/**
* Sets the value of the virkningstidspunkt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVirkningstidspunkt(DateTime value) {
this.virkningstidspunkt = value;
}
/**
* Gets the value of the virkningsdato property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getVirkningsdato() {
return virkningsdato;
}
/**
* Sets the value of the virkningsdato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVirkningsdato(LocalDate value) {
this.virkningsdato = value;
}
/**
* Gets the value of the aapningskvittering property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean getAapningskvittering() {
return aapningskvittering;
}
/**
* Sets the value of the aapningskvittering property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAapningskvittering(Boolean value) {
this.aapningskvittering = value;
}
/**
* Gets the value of the sikkerhetsnivaa property.
*
* @return
* possible object is
* {@link SDPSikkerhetsnivaa }
*
*/
public SDPSikkerhetsnivaa getSikkerhetsnivaa() {
return sikkerhetsnivaa;
}
/**
* Sets the value of the sikkerhetsnivaa property.
*
* @param value
* allowed object is
* {@link SDPSikkerhetsnivaa }
*
*/
public void setSikkerhetsnivaa(SDPSikkerhetsnivaa value) {
this.sikkerhetsnivaa = value;
}
/**
* Gets the value of the ikkeSensitivTittel property.
*
* @return
* possible object is
* {@link SDPTittel }
*
*/
public SDPTittel getIkkeSensitivTittel() {
return ikkeSensitivTittel;
}
/**
* Sets the value of the ikkeSensitivTittel property.
*
* @param value
* allowed object is
* {@link SDPTittel }
*
*/
public void setIkkeSensitivTittel(SDPTittel value) {
this.ikkeSensitivTittel = value;
}
/**
* Gets the value of the varsler property.
*
* @return
* possible object is
* {@link SDPVarsler }
*
*/
public SDPVarsler getVarsler() {
return varsler;
}
/**
* Sets the value of the varsler property.
*
* @param value
* allowed object is
* {@link SDPVarsler }
*
*/
public void setVarsler(SDPVarsler value) {
this.varsler = 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 theVirkningstidspunkt;
theVirkningstidspunkt = this.getVirkningstidspunkt();
strategy.appendField(locator, this, "virkningstidspunkt", buffer, theVirkningstidspunkt);
}
{
LocalDate theVirkningsdato;
theVirkningsdato = this.getVirkningsdato();
strategy.appendField(locator, this, "virkningsdato", buffer, theVirkningsdato);
}
{
Boolean theAapningskvittering;
theAapningskvittering = this.getAapningskvittering();
strategy.appendField(locator, this, "aapningskvittering", buffer, theAapningskvittering);
}
{
SDPSikkerhetsnivaa theSikkerhetsnivaa;
theSikkerhetsnivaa = this.getSikkerhetsnivaa();
strategy.appendField(locator, this, "sikkerhetsnivaa", buffer, theSikkerhetsnivaa);
}
{
SDPTittel theIkkeSensitivTittel;
theIkkeSensitivTittel = this.getIkkeSensitivTittel();
strategy.appendField(locator, this, "ikkeSensitivTittel", buffer, theIkkeSensitivTittel);
}
{
SDPVarsler theVarsler;
theVarsler = this.getVarsler();
strategy.appendField(locator, this, "varsler", buffer, theVarsler);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SDPDigitalPostInfo)) {
return false;
}
if (this == object) {
return true;
}
final SDPDigitalPostInfo that = ((SDPDigitalPostInfo) object);
{
DateTime lhsVirkningstidspunkt;
lhsVirkningstidspunkt = this.getVirkningstidspunkt();
DateTime rhsVirkningstidspunkt;
rhsVirkningstidspunkt = that.getVirkningstidspunkt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "virkningstidspunkt", lhsVirkningstidspunkt), LocatorUtils.property(thatLocator, "virkningstidspunkt", rhsVirkningstidspunkt), lhsVirkningstidspunkt, rhsVirkningstidspunkt)) {
return false;
}
}
{
LocalDate lhsVirkningsdato;
lhsVirkningsdato = this.getVirkningsdato();
LocalDate rhsVirkningsdato;
rhsVirkningsdato = that.getVirkningsdato();
if (!strategy.equals(LocatorUtils.property(thisLocator, "virkningsdato", lhsVirkningsdato), LocatorUtils.property(thatLocator, "virkningsdato", rhsVirkningsdato), lhsVirkningsdato, rhsVirkningsdato)) {
return false;
}
}
{
Boolean lhsAapningskvittering;
lhsAapningskvittering = this.getAapningskvittering();
Boolean rhsAapningskvittering;
rhsAapningskvittering = that.getAapningskvittering();
if (!strategy.equals(LocatorUtils.property(thisLocator, "aapningskvittering", lhsAapningskvittering), LocatorUtils.property(thatLocator, "aapningskvittering", rhsAapningskvittering), lhsAapningskvittering, rhsAapningskvittering)) {
return false;
}
}
{
SDPSikkerhetsnivaa lhsSikkerhetsnivaa;
lhsSikkerhetsnivaa = this.getSikkerhetsnivaa();
SDPSikkerhetsnivaa rhsSikkerhetsnivaa;
rhsSikkerhetsnivaa = that.getSikkerhetsnivaa();
if (!strategy.equals(LocatorUtils.property(thisLocator, "sikkerhetsnivaa", lhsSikkerhetsnivaa), LocatorUtils.property(thatLocator, "sikkerhetsnivaa", rhsSikkerhetsnivaa), lhsSikkerhetsnivaa, rhsSikkerhetsnivaa)) {
return false;
}
}
{
SDPTittel lhsIkkeSensitivTittel;
lhsIkkeSensitivTittel = this.getIkkeSensitivTittel();
SDPTittel rhsIkkeSensitivTittel;
rhsIkkeSensitivTittel = that.getIkkeSensitivTittel();
if (!strategy.equals(LocatorUtils.property(thisLocator, "ikkeSensitivTittel", lhsIkkeSensitivTittel), LocatorUtils.property(thatLocator, "ikkeSensitivTittel", rhsIkkeSensitivTittel), lhsIkkeSensitivTittel, rhsIkkeSensitivTittel)) {
return false;
}
}
{
SDPVarsler lhsVarsler;
lhsVarsler = this.getVarsler();
SDPVarsler rhsVarsler;
rhsVarsler = that.getVarsler();
if (!strategy.equals(LocatorUtils.property(thisLocator, "varsler", lhsVarsler), LocatorUtils.property(thatLocator, "varsler", rhsVarsler), lhsVarsler, rhsVarsler)) {
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 theVirkningstidspunkt;
theVirkningstidspunkt = this.getVirkningstidspunkt();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "virkningstidspunkt", theVirkningstidspunkt), currentHashCode, theVirkningstidspunkt);
}
{
LocalDate theVirkningsdato;
theVirkningsdato = this.getVirkningsdato();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "virkningsdato", theVirkningsdato), currentHashCode, theVirkningsdato);
}
{
Boolean theAapningskvittering;
theAapningskvittering = this.getAapningskvittering();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "aapningskvittering", theAapningskvittering), currentHashCode, theAapningskvittering);
}
{
SDPSikkerhetsnivaa theSikkerhetsnivaa;
theSikkerhetsnivaa = this.getSikkerhetsnivaa();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "sikkerhetsnivaa", theSikkerhetsnivaa), currentHashCode, theSikkerhetsnivaa);
}
{
SDPTittel theIkkeSensitivTittel;
theIkkeSensitivTittel = this.getIkkeSensitivTittel();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ikkeSensitivTittel", theIkkeSensitivTittel), currentHashCode, theIkkeSensitivTittel);
}
{
SDPVarsler theVarsler;
theVarsler = this.getVarsler();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "varsler", theVarsler), currentHashCode, theVarsler);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public SDPDigitalPostInfo withVirkningstidspunkt(DateTime value) {
setVirkningstidspunkt(value);
return this;
}
public SDPDigitalPostInfo withVirkningsdato(LocalDate value) {
setVirkningsdato(value);
return this;
}
public SDPDigitalPostInfo withAapningskvittering(Boolean value) {
setAapningskvittering(value);
return this;
}
public SDPDigitalPostInfo withSikkerhetsnivaa(SDPSikkerhetsnivaa value) {
setSikkerhetsnivaa(value);
return this;
}
public SDPDigitalPostInfo withIkkeSensitivTittel(SDPTittel value) {
setIkkeSensitivTittel(value);
return this;
}
public SDPDigitalPostInfo withVarsler(SDPVarsler value) {
setVarsler(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy