
no.udi.common.v2.Fil Maven / Gradle / Ivy
package no.udi.common.v2;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
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.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Generell type for
*
* Java class for Fil complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Fil">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="MIMEType" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Fildata" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
* <element name="Filnavn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Fil", propOrder = {
"mimeType",
"fildata",
"filnavn"
})
public class Fil
implements Serializable, Equals, HashCode
{
@XmlElement(name = "MIMEType", required = true)
protected String mimeType;
@XmlElement(name = "Fildata", required = true)
protected byte[] fildata;
@XmlElement(name = "Filnavn")
protected String filnavn;
/**
* Gets the value of the mimeType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMIMEType() {
return mimeType;
}
/**
* Sets the value of the mimeType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMIMEType(String value) {
this.mimeType = value;
}
/**
* Gets the value of the fildata property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getFildata() {
return fildata;
}
/**
* Sets the value of the fildata property.
*
* @param value
* allowed object is
* byte[]
*/
public void setFildata(byte[] value) {
this.fildata = value;
}
/**
* Gets the value of the filnavn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFilnavn() {
return filnavn;
}
/**
* Sets the value of the filnavn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFilnavn(String value) {
this.filnavn = value;
}
public Fil withMIMEType(String value) {
setMIMEType(value);
return this;
}
public Fil withFildata(byte[] value) {
setFildata(value);
return this;
}
public Fil withFilnavn(String value) {
setFilnavn(value);
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theMIMEType;
theMIMEType = this.getMIMEType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "mimeType", theMIMEType), currentHashCode, theMIMEType);
}
{
byte[] theFildata;
theFildata = this.getFildata();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fildata", theFildata), currentHashCode, theFildata);
}
{
String theFilnavn;
theFilnavn = this.getFilnavn();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "filnavn", theFilnavn), currentHashCode, theFilnavn);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof Fil)) {
return false;
}
if (this == object) {
return true;
}
final Fil that = ((Fil) object);
{
String lhsMIMEType;
lhsMIMEType = this.getMIMEType();
String rhsMIMEType;
rhsMIMEType = that.getMIMEType();
if (!strategy.equals(LocatorUtils.property(thisLocator, "mimeType", lhsMIMEType), LocatorUtils.property(thatLocator, "mimeType", rhsMIMEType), lhsMIMEType, rhsMIMEType)) {
return false;
}
}
{
byte[] lhsFildata;
lhsFildata = this.getFildata();
byte[] rhsFildata;
rhsFildata = that.getFildata();
if (!strategy.equals(LocatorUtils.property(thisLocator, "fildata", lhsFildata), LocatorUtils.property(thatLocator, "fildata", rhsFildata), lhsFildata, rhsFildata)) {
return false;
}
}
{
String lhsFilnavn;
lhsFilnavn = this.getFilnavn();
String rhsFilnavn;
rhsFilnavn = that.getFilnavn();
if (!strategy.equals(LocatorUtils.property(thisLocator, "filnavn", lhsFilnavn), LocatorUtils.property(thatLocator, "filnavn", rhsFilnavn), lhsFilnavn, rhsFilnavn)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy