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

no.difi.begrep.sdp.schema_v10.SDPLenke Maven / Gradle / Ivy

//
// 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 java.time.ZonedDateTime;
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.XSDateTimeAdapter;
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 Lenke complex type. * *

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

 * <complexType name="Lenke">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="url" type="{http://begrep.difi.no/sdp/schema_v10}HttpLenke"/>
 *         <element name="beskrivelse" type="{http://begrep.difi.no/sdp/schema_v10}LenkeBeskrivelseTekst" minOccurs="0"/>
 *         <element name="knappTekst" type="{http://begrep.difi.no/sdp/schema_v10}LenkeKnappTekst" minOccurs="0"/>
 *         <element name="frist" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Lenke", propOrder = { "url", "beskrivelse", "knappTekst", "frist" }) public class SDPLenke implements Equals2, HashCode2, ToString2 { @XmlElement(required = true) @XmlSchemaType(name = "anyURI") protected String url; protected SDPLenkeBeskrivelseTekst beskrivelse; protected SDPLenkeKnappTekst knappTekst; @XmlElement(type = String.class) @XmlJavaTypeAdapter(XSDateTimeAdapter.class) @XmlSchemaType(name = "dateTime") protected ZonedDateTime frist; /** * Default no-arg constructor * */ public SDPLenke() { super(); } /** * Fully-initialising value constructor * */ public SDPLenke(final String url, final SDPLenkeBeskrivelseTekst beskrivelse, final SDPLenkeKnappTekst knappTekst, final ZonedDateTime frist) { this.url = url; this.beskrivelse = beskrivelse; this.knappTekst = knappTekst; this.frist = frist; } /** * Gets the value of the url property. * * @return * possible object is * {@link String } * */ public String getUrl() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is * {@link String } * */ public void setUrl(String value) { this.url = value; } /** * Gets the value of the beskrivelse property. * * @return * possible object is * {@link SDPLenkeBeskrivelseTekst } * */ public SDPLenkeBeskrivelseTekst getBeskrivelse() { return beskrivelse; } /** * Sets the value of the beskrivelse property. * * @param value * allowed object is * {@link SDPLenkeBeskrivelseTekst } * */ public void setBeskrivelse(SDPLenkeBeskrivelseTekst value) { this.beskrivelse = value; } /** * Gets the value of the knappTekst property. * * @return * possible object is * {@link SDPLenkeKnappTekst } * */ public SDPLenkeKnappTekst getKnappTekst() { return knappTekst; } /** * Sets the value of the knappTekst property. * * @param value * allowed object is * {@link SDPLenkeKnappTekst } * */ public void setKnappTekst(SDPLenkeKnappTekst value) { this.knappTekst = value; } /** * Gets the value of the frist property. * * @return * possible object is * {@link String } * */ public ZonedDateTime getFrist() { return frist; } /** * Sets the value of the frist property. * * @param value * allowed object is * {@link String } * */ public void setFrist(ZonedDateTime value) { this.frist = 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) { { String theUrl; theUrl = this.getUrl(); strategy.appendField(locator, this, "url", buffer, theUrl, (this.url!= null)); } { SDPLenkeBeskrivelseTekst theBeskrivelse; theBeskrivelse = this.getBeskrivelse(); strategy.appendField(locator, this, "beskrivelse", buffer, theBeskrivelse, (this.beskrivelse!= null)); } { SDPLenkeKnappTekst theKnappTekst; theKnappTekst = this.getKnappTekst(); strategy.appendField(locator, this, "knappTekst", buffer, theKnappTekst, (this.knappTekst!= null)); } { ZonedDateTime theFrist; theFrist = this.getFrist(); strategy.appendField(locator, this, "frist", buffer, theFrist, (this.frist!= 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; } final SDPLenke that = ((SDPLenke) object); { String lhsUrl; lhsUrl = this.getUrl(); String rhsUrl; rhsUrl = that.getUrl(); if (!strategy.equals(LocatorUtils.property(thisLocator, "url", lhsUrl), LocatorUtils.property(thatLocator, "url", rhsUrl), lhsUrl, rhsUrl, (this.url!= null), (that.url!= null))) { return false; } } { SDPLenkeBeskrivelseTekst lhsBeskrivelse; lhsBeskrivelse = this.getBeskrivelse(); SDPLenkeBeskrivelseTekst rhsBeskrivelse; rhsBeskrivelse = that.getBeskrivelse(); if (!strategy.equals(LocatorUtils.property(thisLocator, "beskrivelse", lhsBeskrivelse), LocatorUtils.property(thatLocator, "beskrivelse", rhsBeskrivelse), lhsBeskrivelse, rhsBeskrivelse, (this.beskrivelse!= null), (that.beskrivelse!= null))) { return false; } } { SDPLenkeKnappTekst lhsKnappTekst; lhsKnappTekst = this.getKnappTekst(); SDPLenkeKnappTekst rhsKnappTekst; rhsKnappTekst = that.getKnappTekst(); if (!strategy.equals(LocatorUtils.property(thisLocator, "knappTekst", lhsKnappTekst), LocatorUtils.property(thatLocator, "knappTekst", rhsKnappTekst), lhsKnappTekst, rhsKnappTekst, (this.knappTekst!= null), (that.knappTekst!= null))) { return false; } } { ZonedDateTime lhsFrist; lhsFrist = this.getFrist(); ZonedDateTime rhsFrist; rhsFrist = that.getFrist(); if (!strategy.equals(LocatorUtils.property(thisLocator, "frist", lhsFrist), LocatorUtils.property(thatLocator, "frist", rhsFrist), lhsFrist, rhsFrist, (this.frist!= null), (that.frist!= 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 = 1; { String theUrl; theUrl = this.getUrl(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theUrl), currentHashCode, theUrl, (this.url!= null)); } { SDPLenkeBeskrivelseTekst theBeskrivelse; theBeskrivelse = this.getBeskrivelse(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "beskrivelse", theBeskrivelse), currentHashCode, theBeskrivelse, (this.beskrivelse!= null)); } { SDPLenkeKnappTekst theKnappTekst; theKnappTekst = this.getKnappTekst(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "knappTekst", theKnappTekst), currentHashCode, theKnappTekst, (this.knappTekst!= null)); } { ZonedDateTime theFrist; theFrist = this.getFrist(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "frist", theFrist), currentHashCode, theFrist, (this.frist!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPLenke withUrl(String value) { setUrl(value); return this; } public SDPLenke withBeskrivelse(SDPLenkeBeskrivelseTekst value) { setBeskrivelse(value); return this; } public SDPLenke withKnappTekst(SDPLenkeKnappTekst value) { setKnappTekst(value); return this; } public SDPLenke withFrist(ZonedDateTime value) { setFrist(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy