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

no.difi.begrep.sdp.schema_v10.SDPDokument 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import no.digipost.xsd.types.DokumentpakkeFil;
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 Dokument complex type. * *

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

 * <complexType name="Dokument">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="tittel" type="{http://begrep.difi.no/sdp/schema_v10}Tittel" minOccurs="0"/>
 *         <element name="data" type="{http://begrep.difi.no/sdp/schema_v10}DokumentData" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="href" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             <minLength value="4"/>
 *             <maxLength value="100"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="mime" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             <minLength value="1"/>
 *             <maxLength value="100"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Dokument", propOrder = { "tittel", "data" }) public class SDPDokument implements DokumentpakkeFil, Equals2, HashCode2, ToString2 { protected SDPTittel tittel; protected SDPDokumentData data; @XmlAttribute(name = "href", required = true) protected String href; @XmlAttribute(name = "mime", required = true) protected String mime; /** * Default no-arg constructor * */ public SDPDokument() { super(); } /** * Fully-initialising value constructor * */ public SDPDokument(final SDPTittel tittel, final SDPDokumentData data, final String href, final String mime) { this.tittel = tittel; this.data = data; this.href = href; this.mime = mime; } /** * 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 data property. * * @return * possible object is * {@link SDPDokumentData } * */ public SDPDokumentData getData() { return data; } /** * Sets the value of the data property. * * @param value * allowed object is * {@link SDPDokumentData } * */ public void setData(SDPDokumentData value) { this.data = value; } /** * Gets the value of the href property. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } /** * Gets the value of the mime property. * * @return * possible object is * {@link String } * */ public String getMime() { return mime; } /** * Sets the value of the mime property. * * @param value * allowed object is * {@link String } * */ public void setMime(String value) { this.mime = 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)); } { SDPDokumentData theData; theData = this.getData(); strategy.appendField(locator, this, "data", buffer, theData, (this.data!= null)); } { String theHref; theHref = this.getHref(); strategy.appendField(locator, this, "href", buffer, theHref, (this.href!= null)); } { String theMime; theMime = this.getMime(); strategy.appendField(locator, this, "mime", buffer, theMime, (this.mime!= 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 SDPDokument that = ((SDPDokument) 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; } } { SDPDokumentData lhsData; lhsData = this.getData(); SDPDokumentData rhsData; rhsData = that.getData(); if (!strategy.equals(LocatorUtils.property(thisLocator, "data", lhsData), LocatorUtils.property(thatLocator, "data", rhsData), lhsData, rhsData, (this.data!= null), (that.data!= null))) { return false; } } { String lhsHref; lhsHref = this.getHref(); String rhsHref; rhsHref = that.getHref(); if (!strategy.equals(LocatorUtils.property(thisLocator, "href", lhsHref), LocatorUtils.property(thatLocator, "href", rhsHref), lhsHref, rhsHref, (this.href!= null), (that.href!= null))) { return false; } } { String lhsMime; lhsMime = this.getMime(); String rhsMime; rhsMime = that.getMime(); if (!strategy.equals(LocatorUtils.property(thisLocator, "mime", lhsMime), LocatorUtils.property(thatLocator, "mime", rhsMime), lhsMime, rhsMime, (this.mime!= null), (that.mime!= 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)); } { SDPDokumentData theData; theData = this.getData(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "data", theData), currentHashCode, theData, (this.data!= null)); } { String theHref; theHref = this.getHref(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "href", theHref), currentHashCode, theHref, (this.href!= null)); } { String theMime; theMime = this.getMime(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mime", theMime), currentHashCode, theMime, (this.mime!= null)); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } public SDPDokument withTittel(SDPTittel value) { setTittel(value); return this; } public SDPDokument withData(SDPDokumentData value) { setData(value); return this; } public SDPDokument withHref(String value) { setHref(value); return this; } public SDPDokument withMime(String value) { setMime(value); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy