
no.udi.common.v2.Kodeverksdefinisjoner Maven / Gradle / Ivy
package no.udi.common.v2;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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;
/**
* Java class for Kodeverksdefinisjoner complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Kodeverksdefinisjoner">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Kodeverksdefinisjon" type="{http://udi.no/Common/v2}Kodeverksdefinisjon" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Kodeverksdefinisjoner", propOrder = {
"kodeverksdefinisjon"
})
public class Kodeverksdefinisjoner
implements Serializable, Equals, HashCode
{
@XmlElement(name = "Kodeverksdefinisjon")
protected List kodeverksdefinisjon;
/**
* Gets the value of the kodeverksdefinisjon property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the kodeverksdefinisjon property.
*
*
* For example, to add a new item, do as follows:
*
* getKodeverksdefinisjon().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Kodeverksdefinisjon }
*
*
*/
public List getKodeverksdefinisjon() {
if (kodeverksdefinisjon == null) {
kodeverksdefinisjon = new ArrayList();
}
return this.kodeverksdefinisjon;
}
public Kodeverksdefinisjoner withKodeverksdefinisjon(Kodeverksdefinisjon... values) {
if (values!= null) {
for (Kodeverksdefinisjon value: values) {
getKodeverksdefinisjon().add(value);
}
}
return this;
}
public Kodeverksdefinisjoner withKodeverksdefinisjon(Collection values) {
if (values!= null) {
getKodeverksdefinisjon().addAll(values);
}
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
List theKodeverksdefinisjon;
theKodeverksdefinisjon = (((this.kodeverksdefinisjon!= null)&&(!this.kodeverksdefinisjon.isEmpty()))?this.getKodeverksdefinisjon():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "kodeverksdefinisjon", theKodeverksdefinisjon), currentHashCode, theKodeverksdefinisjon);
}
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 Kodeverksdefinisjoner)) {
return false;
}
if (this == object) {
return true;
}
final Kodeverksdefinisjoner that = ((Kodeverksdefinisjoner) object);
{
List lhsKodeverksdefinisjon;
lhsKodeverksdefinisjon = (((this.kodeverksdefinisjon!= null)&&(!this.kodeverksdefinisjon.isEmpty()))?this.getKodeverksdefinisjon():null);
List rhsKodeverksdefinisjon;
rhsKodeverksdefinisjon = (((that.kodeverksdefinisjon!= null)&&(!that.kodeverksdefinisjon.isEmpty()))?that.getKodeverksdefinisjon():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "kodeverksdefinisjon", lhsKodeverksdefinisjon), LocatorUtils.property(thatLocator, "kodeverksdefinisjon", rhsKodeverksdefinisjon), lhsKodeverksdefinisjon, rhsKodeverksdefinisjon)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}