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

no.nhn.schemas.reg.common.no.WSArrayOfFysiskAdresse Maven / Gradle / Ivy

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

package no.nhn.schemas.reg.common.no;

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

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

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

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

     *    getFysiskAdresses().add(newItem);
     * 
* * *

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy