// // 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.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.XmlRootElement; 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 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="bPKDecryption" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="keyInformation" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
 *                   <element name="iv" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
 *                   <element name="keyStoreFileName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                   <element name="keyAlias" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="bPKEncryption" maxOccurs="unbounded" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="publicKey" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
 *                   <element name="target" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                   <element name="vkz" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "bpkDecryption", "bpkEncryption" }) @XmlRootElement(name = "EncBPKInformation") public class EncBPKInformation implements Serializable, Equals, HashCode { @XmlElement(name = "bPKDecryption") protected BPKDecryption bpkDecryption; @XmlElement(name = "bPKEncryption") protected List bpkEncryption; @XmlAttribute(name = "Hjid") protected Long hjid; /** * Gets the value of the bpkDecryption property. * * @return * possible object is * {@link BPKDecryption } * */ @ManyToOne(targetEntity = BPKDecryption.class, cascade = { CascadeType.ALL }) public BPKDecryption getBPKDecryption() { return bpkDecryption; } /** * Sets the value of the bpkDecryption property. * * @param value * allowed object is * {@link BPKDecryption } * */ public void setBPKDecryption(BPKDecryption value) { this.bpkDecryption = value; } /** * Gets the value of the bpkEncryption 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 bpkEncryption property. * *

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

     *    getBPKEncryption().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link BPKEncryption } * * */ @OneToMany(targetEntity = BPKEncryption.class, cascade = { CascadeType.ALL }) public List getBPKEncryption() { if (bpkEncryption == null) { bpkEncryption = new ArrayList(); } return this.bpkEncryption; } /** * * */ public void setBPKEncryption(List bpkEncryption) { this.bpkEncryption = bpkEncryption; } /** * 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 EncBPKInformation)) { return false; } if (this == object) { return true; } final EncBPKInformation that = ((EncBPKInformation) object); { BPKDecryption lhsBPKDecryption; lhsBPKDecryption = this.getBPKDecryption(); BPKDecryption rhsBPKDecryption; rhsBPKDecryption = that.getBPKDecryption(); if (!strategy.equals(LocatorUtils.property(thisLocator, "bpkDecryption", lhsBPKDecryption), LocatorUtils.property(thatLocator, "bpkDecryption", rhsBPKDecryption), lhsBPKDecryption, rhsBPKDecryption)) { return false; } } { List lhsBPKEncryption; lhsBPKEncryption = (((this.bpkEncryption!= null)&&(!this.bpkEncryption.isEmpty()))?this.getBPKEncryption():null); List rhsBPKEncryption; rhsBPKEncryption = (((that.bpkEncryption!= null)&&(!that.bpkEncryption.isEmpty()))?that.getBPKEncryption():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "bpkEncryption", lhsBPKEncryption), LocatorUtils.property(thatLocator, "bpkEncryption", rhsBPKEncryption), lhsBPKEncryption, rhsBPKEncryption)) { 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; { BPKDecryption theBPKDecryption; theBPKDecryption = this.getBPKDecryption(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bpkDecryption", theBPKDecryption), currentHashCode, theBPKDecryption); } { List theBPKEncryption; theBPKEncryption = (((this.bpkEncryption!= null)&&(!this.bpkEncryption.isEmpty()))?this.getBPKEncryption():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bpkEncryption", theBPKEncryption), currentHashCode, theBPKEncryption); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }