// // 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.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; 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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import com.sun.tools.xjc.runtime.ZeroOneBooleanAdapter; 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 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="PublicURLPrefix" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *         <element name="IssuerName" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *         <element name="Organization">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   <element name="DisplayName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   <element name="URL" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element ref="{http://www.buergerkarte.at/namespaces/moaconfig#}Contact" maxOccurs="unbounded"/>
 *       </sequence>
 *       <attribute name="isActive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "publicURLPrefix", "issuerName", "organization", "contact" }) public class PVP2 implements Serializable, Equals, HashCode { @XmlElement(name = "PublicURLPrefix", required = true) @XmlSchemaType(name = "anyURI") protected String publicURLPrefix; @XmlElement(name = "IssuerName", required = true) @XmlSchemaType(name = "anyURI") protected String issuerName; @XmlElement(name = "Organization", required = true) protected Organization organization; @XmlElement(name = "Contact", required = true) protected List contact; @XmlAttribute(name = "isActive") @XmlJavaTypeAdapter(ZeroOneBooleanAdapter.class) @XmlSchemaType(name = "boolean") protected Boolean isActive; @XmlAttribute(name = "Hjid") protected Long hjid; /** * Gets the value of the publicURLPrefix property. * * @return * possible object is * {@link String } * */ public String getPublicURLPrefix() { return publicURLPrefix; } /** * Sets the value of the publicURLPrefix property. * * @param value * allowed object is * {@link String } * */ public void setPublicURLPrefix(String value) { this.publicURLPrefix = value; } /** * Gets the value of the issuerName property. * * @return * possible object is * {@link String } * */ public String getIssuerName() { return issuerName; } /** * Sets the value of the issuerName property. * * @param value * allowed object is * {@link String } * */ public void setIssuerName(String value) { this.issuerName = value; } /** * Gets the value of the organization property. * * @return * possible object is * {@link Organization } * */ @ManyToOne(targetEntity = Organization.class, cascade = { CascadeType.ALL }) public Organization getOrganization() { return organization; } /** * Sets the value of the organization property. * * @param value * allowed object is * {@link Organization } * */ public void setOrganization(Organization value) { this.organization = value; } /** * Gets the value of the contact 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 contact property. * *

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

     *    getContact().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Contact } * * */ @OneToMany(targetEntity = Contact.class, cascade = { CascadeType.ALL }) public List getContact() { if (contact == null) { contact = new ArrayList(); } return this.contact; } /** * * */ public void setContact(List contact) { this.contact = contact; } /** * Gets the value of the isActive property. * * @return * possible object is * {@link String } * */ public boolean isIsActive() { if (isActive == null) { return new ZeroOneBooleanAdapter().unmarshal("true"); } else { return isActive; } } /** * Sets the value of the isActive property. * * @param value * allowed object is * {@link String } * */ public void setIsActive(Boolean value) { this.isActive = value; } /** * Gets the value of the hjid property. * * @return * possible object is * {@link Long } * */ public Long getHjid() { return hjid; } /** * Sets the value of the hjid property. * * @param value * allowed object is * {@link Long } * */ public void setHjid(Long value) { this.hjid = value; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof PVP2)) { return false; } if (this == object) { return true; } final PVP2 that = ((PVP2) object); { String lhsPublicURLPrefix; lhsPublicURLPrefix = this.getPublicURLPrefix(); String rhsPublicURLPrefix; rhsPublicURLPrefix = that.getPublicURLPrefix(); if (!strategy.equals(LocatorUtils.property(thisLocator, "publicURLPrefix", lhsPublicURLPrefix), LocatorUtils.property(thatLocator, "publicURLPrefix", rhsPublicURLPrefix), lhsPublicURLPrefix, rhsPublicURLPrefix)) { return false; } } { String lhsIssuerName; lhsIssuerName = this.getIssuerName(); String rhsIssuerName; rhsIssuerName = that.getIssuerName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "issuerName", lhsIssuerName), LocatorUtils.property(thatLocator, "issuerName", rhsIssuerName), lhsIssuerName, rhsIssuerName)) { return false; } } { Organization lhsOrganization; lhsOrganization = this.getOrganization(); Organization rhsOrganization; rhsOrganization = that.getOrganization(); if (!strategy.equals(LocatorUtils.property(thisLocator, "organization", lhsOrganization), LocatorUtils.property(thatLocator, "organization", rhsOrganization), lhsOrganization, rhsOrganization)) { return false; } } { List lhsContact; lhsContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); List rhsContact; rhsContact = (((that.contact!= null)&&(!that.contact.isEmpty()))?that.getContact():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "contact", lhsContact), LocatorUtils.property(thatLocator, "contact", rhsContact), lhsContact, rhsContact)) { return false; } } { boolean lhsIsActive; lhsIsActive = ((this.isActive!= null)?this.isIsActive():false); boolean rhsIsActive; rhsIsActive = ((that.isActive!= null)?that.isIsActive():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "isActive", lhsIsActive), LocatorUtils.property(thatLocator, "isActive", rhsIsActive), lhsIsActive, rhsIsActive)) { 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 thePublicURLPrefix; thePublicURLPrefix = this.getPublicURLPrefix(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "publicURLPrefix", thePublicURLPrefix), currentHashCode, thePublicURLPrefix); } { String theIssuerName; theIssuerName = this.getIssuerName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "issuerName", theIssuerName), currentHashCode, theIssuerName); } { Organization theOrganization; theOrganization = this.getOrganization(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "organization", theOrganization), currentHashCode, theOrganization); } { List theContact; theContact = (((this.contact!= null)&&(!this.contact.isEmpty()))?this.getContact():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "contact", theContact), currentHashCode, theContact); } { boolean theIsActive; theIsActive = ((this.isActive!= null)?this.isIsActive():false); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "isActive", theIsActive), currentHashCode, theIsActive); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }