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

no.nhn.schemas.reg.hprv2.WSArrayOfEndringslogginnslag Maven / Gradle / Ivy

There is a newer version: 1.2019.09.25-00.21-49b69f0625e0
Show newest version

package no.nhn.schemas.reg.hprv2;

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

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

 * <complexType name="ArrayOfEndringslogginnslag">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Endringslogginnslag" type="{http://schemas.nhn.no/reg/HPRv2}Endringslogginnslag" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ArrayOfEndringslogginnslag", propOrder = { "endringslogginnslags" }) public class WSArrayOfEndringslogginnslag implements Equals, HashCode { @XmlElement(name = "Endringslogginnslag", nillable = true) protected List endringslogginnslags; /** * Gets the value of the endringslogginnslags 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 endringslogginnslags property. * *

* For example, to add a new item, do as follows: *

     *    getEndringslogginnslags().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link WSEndringslogginnslag } * * */ public List getEndringslogginnslags() { if (endringslogginnslags == null) { endringslogginnslags = new ArrayList(); } return this.endringslogginnslags; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { List theEndringslogginnslags; theEndringslogginnslags = (((this.endringslogginnslags!= null)&&(!this.endringslogginnslags.isEmpty()))?this.getEndringslogginnslags():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "endringslogginnslags", theEndringslogginnslags), currentHashCode, theEndringslogginnslags); } 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 WSArrayOfEndringslogginnslag)) { return false; } if (this == object) { return true; } final WSArrayOfEndringslogginnslag that = ((WSArrayOfEndringslogginnslag) object); { List lhsEndringslogginnslags; lhsEndringslogginnslags = (((this.endringslogginnslags!= null)&&(!this.endringslogginnslags.isEmpty()))?this.getEndringslogginnslags():null); List rhsEndringslogginnslags; rhsEndringslogginnslags = (((that.endringslogginnslags!= null)&&(!that.endringslogginnslags.isEmpty()))?that.getEndringslogginnslags():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "endringslogginnslags", lhsEndringslogginnslags), LocatorUtils.property(thatLocator, "endringslogginnslags", rhsEndringslogginnslags), lhsEndringslogginnslags, rhsEndringslogginnslags)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public WSArrayOfEndringslogginnslag withEndringslogginnslags(WSEndringslogginnslag... values) { if (values!= null) { for (WSEndringslogginnslag value: values) { getEndringslogginnslags().add(value); } } return this; } public WSArrayOfEndringslogginnslag withEndringslogginnslags(Collection values) { if (values!= null) { getEndringslogginnslags().addAll(values); } return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy