// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See http://java.sun.com/xml/jaxb // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.07.20 at 12:19:30 PM CEST // package at.gv.egovernment.moa.id.commons.db.dao.config.deprecated; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.Transient; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlTransient; 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; //import org.jvnet.hyperjaxb3.item.ItemUtils; /** *

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Profiles" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="ProfileName" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "profiles", "profileName" }) public class Mandates implements Serializable, Equals, HashCode { @XmlElement(name = "Profiles", required = true) protected String profiles; @XmlElement(name = "ProfileName") protected List profileName; @XmlAttribute(name = "Hjid") protected Long hjid; // protected transient List profileNameItems; @XmlTransient protected String selectedMISServiceURL; @XmlTransient protected String selecteELGAServiceURL; /** * Gets the value of the profiles property. * * @return * possible object is * {@link String } * */ public String getProfiles() { return profiles; } /** * Sets the value of the profiles property. * * @param value * allowed object is * {@link String } * */ public void setProfiles(String value) { this.profiles = value; } /** * Gets the value of the profileName 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 profileName property. * *

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

     *    getProfileName().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ @Transient public List getProfileName() { if (profileName == null) { profileName = new ArrayList(); } return this.profileName; } /** * * */ public void setProfileName(List profileName) { this.profileName = profileName; } /** * Gets the value of the hjid property. * * @return * possible object is * {@link Long } * */ public Long getHjid() { return hjid; } /** * @return the selectedMISServiceURL */ public String getSelectedMISServiceURL() { return selectedMISServiceURL; } /** * @param selectedMISServiceURL the selectedMISServiceURL to set */ public void setSelectedMISServiceURL(String selectedMISServiceURL) { this.selectedMISServiceURL = selectedMISServiceURL; } /** * @return the selecteELGAServiceURL */ public String getSelecteELGAServiceURL() { return selecteELGAServiceURL; } /** * @param selecteELGAServiceURL the selecteELGAServiceURL to set */ public void setSelecteELGAServiceURL(String selecteELGAServiceURL) { this.selecteELGAServiceURL = selecteELGAServiceURL; } /** * Sets the value of the hjid property. * * @param value * allowed object is * {@link Long } * */ public void setHjid(Long value) { this.hjid = value; } // @OneToMany(targetEntity = MandatesProfileNameItem.class, cascade = { // CascadeType.ALL // }) // // public List getProfileNameItems() { // if (this.profileNameItems == null) { // this.profileNameItems = new ArrayList(); // } // if (ItemUtils.shouldBeWrapped(this.profileName)) { // this.profileName = ItemUtils.wrap(this.profileName, this.profileNameItems, MandatesProfileNameItem.class); // } // return this.profileNameItems; // } // // public void setProfileNameItems(List value) { // this.profileName = null; // this.profileNameItems = null; // this.profileNameItems = value; // if (this.profileNameItems == null) { // this.profileNameItems = new ArrayList(); // } // if (ItemUtils.shouldBeWrapped(this.profileName)) { // this.profileName = ItemUtils.wrap(this.profileName, this.profileNameItems, MandatesProfileNameItem.class); // } // } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Mandates)) { return false; } if (this == object) { return true; } final Mandates that = ((Mandates) object); { String lhsProfiles; lhsProfiles = this.getProfiles(); String rhsProfiles; rhsProfiles = that.getProfiles(); if (!strategy.equals(LocatorUtils.property(thisLocator, "profiles", lhsProfiles), LocatorUtils.property(thatLocator, "profiles", rhsProfiles), lhsProfiles, rhsProfiles)) { return false; } } { List lhsProfileName; lhsProfileName = (((this.profileName!= null)&&(!this.profileName.isEmpty()))?this.getProfileName():null); List rhsProfileName; rhsProfileName = (((that.profileName!= null)&&(!that.profileName.isEmpty()))?that.getProfileName():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "profileName", lhsProfileName), LocatorUtils.property(thatLocator, "profileName", rhsProfileName), lhsProfileName, rhsProfileName)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theProfiles; theProfiles = this.getProfiles(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "profiles", theProfiles), currentHashCode, theProfiles); } { List theProfileName; theProfileName = (((this.profileName!= null)&&(!this.profileName.isEmpty()))?this.getProfileName():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "profileName", theProfileName), currentHashCode, theProfileName); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }