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

no.difi.begrep.sdp.utvidelser.arrangement.SDPStrekkode 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.utvidelser.arrangement;

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 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 Strekkode complex type. * *

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

 * <complexType name="Strekkode">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="tittel" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Tittel" minOccurs="0"/>
 *         <element name="verdi" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Strekkodeverdi"/>
 *         <element name="type" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Strekkodetype"/>
 *         <element name="tekst" type="{http://begrep.difi.no/sdp/utvidelser/arrangement}Beskrivelse" minOccurs="0"/>
 *         <element name="vis-verdi" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Strekkode", propOrder = { "tittel", "verdi", "type", "tekst", "visVerdi" }) public class SDPStrekkode implements Equals2, HashCode2, ToString2 { protected SDPTittel tittel; @XmlElement(required = true) protected String verdi; @XmlElement(required = true) @XmlSchemaType(name = "string") protected SDPStrekkodetype type; protected SDPBeskrivelse tekst; @XmlElement(name = "vis-verdi", defaultValue = "true") protected Boolean visVerdi = true; /** * Default no-arg constructor * */ public SDPStrekkode() { super(); } /** * Fully-initialising value constructor * */ public SDPStrekkode(final SDPTittel tittel, final String verdi, final SDPStrekkodetype type, final SDPBeskrivelse tekst, final Boolean visVerdi) { this.tittel = tittel; this.verdi = verdi; this.type = type; this.tekst = tekst; this.visVerdi = visVerdi; } /** * Gets the value of the tittel property. * * @return * possible object is * {@link SDPTittel } * */ public SDPTittel getTittel() { return tittel; } /** * Sets the value of the tittel property. * * @param value * allowed object is * {@link SDPTittel } * */ public void setTittel(SDPTittel value) { this.tittel = value; } /** * Gets the value of the verdi property. * * @return * possible object is * {@link String } * */ public String getVerdi() { return verdi; } /** * Sets the value of the verdi property. * * @param value * allowed object is * {@link String } * */ public void setVerdi(String value) { this.verdi = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link SDPStrekkodetype } * */ public SDPStrekkodetype getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link SDPStrekkodetype } * */ public void setType(SDPStrekkodetype value) { this.type = value; } /** * Gets the value of the tekst property. * * @return * possible object is * {@link SDPBeskrivelse } * */ public SDPBeskrivelse getTekst() { return tekst; } /** * Sets the value of the tekst property. * * @param value * allowed object is * {@link SDPBeskrivelse } * */ public void setTekst(SDPBeskrivelse value) { this.tekst = value; } /** * Gets the value of the visVerdi property. * * @return * possible object is * {@link Boolean } * */ public Boolean getVisVerdi() { return visVerdi; } /** * Sets the value of the visVerdi property. * * @param value * allowed object is * {@link Boolean } * */ public void setVisVerdi(Boolean value) { this.visVerdi = 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) { { SDPTittel theTittel; theTittel = this.getTittel(); strategy.appendField(locator, this, "tittel", buffer, theTittel, (this.tittel!= null)); } { String theVerdi; theVerdi = this.getVerdi(); strategy.appendField(locator, this, "verdi", buffer, theVerdi, (this.verdi!= null)); } { SDPStrekkodetype theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { SDPBeskrivelse theTekst; theTekst = this.getTekst(); strategy.appendField(locator, this, "tekst", buffer, theTekst, (this.tekst!= null)); } { Boolean theVisVerdi; theVisVerdi = this.getVisVerdi(); strategy.appendField(locator, this, "visVerdi", buffer, theVisVerdi, (this.visVerdi!= 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 SDPStrekkode that = ((SDPStrekkode) object); { SDPTittel lhsTittel; lhsTittel = this.getTittel(); SDPTittel rhsTittel; rhsTittel = that.getTittel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tittel", lhsTittel), LocatorUtils.property(thatLocator, "tittel", rhsTittel), lhsTittel, rhsTittel, (this.tittel!= null), (that.tittel!= null))) { return false; } } { String lhsVerdi; lhsVerdi = this.getVerdi(); String rhsVerdi; rhsVerdi = that.getVerdi(); if (!strategy.equals(LocatorUtils.property(thisLocator, "verdi", lhsVerdi), LocatorUtils.property(thatLocator, "verdi", rhsVerdi), lhsVerdi, rhsVerdi, (this.verdi!= null), (that.verdi!= null))) { return false; } } { SDPStrekkodetype lhsType; lhsType = this.getType(); SDPStrekkodetype 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; } } { SDPBeskrivelse lhsTekst; lhsTekst = this.getTekst(); SDPBeskrivelse rhsTekst; rhsTekst = that.getTekst(); if (!strategy.equals(LocatorUtils.property(thisLocator, "tekst", lhsTekst), LocatorUtils.property(thatLocator, "tekst", rhsTekst), lhsTekst, rhsTekst, (this.tekst!= null), (that.tekst!= null))) { return false; } } { Boolean lhsVisVerdi; lhsVisVerdi = this.getVisVerdi(); Boolean rhsVisVerdi; rhsVisVerdi = that.getVisVerdi(); if (!strategy.equals(LocatorUtils.property(thisLocator, "visVerdi", lhsVisVerdi), LocatorUtils.property(thatLocator, "visVerdi", rhsVisVerdi), lhsVisVerdi, rhsVisVerdi, (this.visVerdi!= null), (that.visVerdi!= 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; { SDPTittel theTittel; theTittel = this.getTittel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tittel", theTittel), currentHashCode, theTittel, (this.tittel!= null)); } { String theVerdi; theVerdi = this.getVerdi(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "verdi", theVerdi), currentHashCode, theVerdi, (this.verdi!= null)); } { SDPStrekkodetype theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { SDPBeskrivelse theTekst; theTekst = this.getTekst(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "tekst", theTekst), currentHashCode, theTekst, (this.tekst!= null)); } { Boolean theVisVerdi; theVisVerdi = this.getVisVerdi(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "visVerdi", theVisVerdi), currentHashCode, theVisVerdi, (this.visVerdi!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPStrekkode withTittel(SDPTittel value) { setTittel(value); return this; } public SDPStrekkode withVerdi(String value) { setVerdi(value); return this; } public SDPStrekkode withType(SDPStrekkodetype value) { setType(value); return this; } public SDPStrekkode withTekst(SDPBeskrivelse value) { setTekst(value); return this; } public SDPStrekkode withVisVerdi(Boolean value) { setVisVerdi(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy