// // 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.EnumType; import javax.persistence.Enumerated; 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.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.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 maxOccurs="unbounded" minOccurs="0">
 *         <element name="TrustAnchor">
 *           <complexType>
 *             <complexContent>
 *               <extension base="{http://www.buergerkarte.at/namespaces/moaconfig#}X509IssuerSerialType">
 *                 <attribute name="mode" use="required" type="{http://www.buergerkarte.at/namespaces/moaconfig#}ChainingModeType" />
 *               </extension>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *       <attribute name="systemDefaultMode" type="{http://www.buergerkarte.at/namespaces/moaconfig#}ChainingModeType" default="pkix" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "trustAnchor" }) public class ChainingModes implements Serializable, Equals, HashCode { @XmlElement(name = "TrustAnchor") protected List trustAnchor; @XmlAttribute(name = "systemDefaultMode") protected ChainingModeType systemDefaultMode; @XmlAttribute(name = "Hjid") protected Long hjid; /** * Gets the value of the trustAnchor 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 trustAnchor property. * *

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

     *    getTrustAnchor().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TrustAnchor } * * */ @OneToMany(targetEntity = TrustAnchor.class, cascade = { CascadeType.ALL }) public List getTrustAnchor() { if (trustAnchor == null) { trustAnchor = new ArrayList(); } return this.trustAnchor; } /** * * */ public void setTrustAnchor(List trustAnchor) { this.trustAnchor = trustAnchor; } /** * Gets the value of the systemDefaultMode property. * * @return * possible object is * {@link ChainingModeType } * */ @Enumerated(EnumType.STRING) public ChainingModeType getSystemDefaultMode() { if (systemDefaultMode == null) { return ChainingModeType.PKIX; } else { return systemDefaultMode; } } /** * Sets the value of the systemDefaultMode property. * * @param value * allowed object is * {@link ChainingModeType } * */ public void setSystemDefaultMode(ChainingModeType value) { this.systemDefaultMode = 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 ChainingModes)) { return false; } if (this == object) { return true; } final ChainingModes that = ((ChainingModes) object); { List lhsTrustAnchor; lhsTrustAnchor = (((this.trustAnchor!= null)&&(!this.trustAnchor.isEmpty()))?this.getTrustAnchor():null); List rhsTrustAnchor; rhsTrustAnchor = (((that.trustAnchor!= null)&&(!that.trustAnchor.isEmpty()))?that.getTrustAnchor():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "trustAnchor", lhsTrustAnchor), LocatorUtils.property(thatLocator, "trustAnchor", rhsTrustAnchor), lhsTrustAnchor, rhsTrustAnchor)) { return false; } } { ChainingModeType lhsSystemDefaultMode; lhsSystemDefaultMode = this.getSystemDefaultMode(); ChainingModeType rhsSystemDefaultMode; rhsSystemDefaultMode = that.getSystemDefaultMode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "systemDefaultMode", lhsSystemDefaultMode), LocatorUtils.property(thatLocator, "systemDefaultMode", rhsSystemDefaultMode), lhsSystemDefaultMode, rhsSystemDefaultMode)) { 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; { List theTrustAnchor; theTrustAnchor = (((this.trustAnchor!= null)&&(!this.trustAnchor.isEmpty()))?this.getTrustAnchor():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "trustAnchor", theTrustAnchor), currentHashCode, theTrustAnchor); } { ChainingModeType theSystemDefaultMode; theSystemDefaultMode = this.getSystemDefaultMode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "systemDefaultMode", theSystemDefaultMode), currentHashCode, theSystemDefaultMode); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }