// // 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.XmlSchemaType; import javax.xml.bind.annotation.XmlTransient; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 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 com.sun.tools.xjc.runtime.ZeroOneBooleanAdapter; /** *

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="credentialOID" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="enableTestCredentials" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "credentialOID" }) public class TestCredentials implements Serializable, Equals, HashCode { protected List credentialOID; @XmlAttribute(name = "enableTestCredentials") @XmlJavaTypeAdapter(ZeroOneBooleanAdapter.class) @XmlSchemaType(name = "boolean") protected Boolean enableTestCredentials; @XmlAttribute(name = "Hjid") protected Long hjid; //protected transient List credentialOIDItems; @XmlTransient protected boolean useTestIDLTrustStore; @XmlTransient protected boolean useTestAuthBlockTrustStore; /** * Gets the value of the credentialOID 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 credentialOID property. * *

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

     *    getCredentialOID().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ @Transient public List getCredentialOID() { if (credentialOID == null) { credentialOID = new ArrayList(); } return this.credentialOID; } /** * * */ public void setCredentialOID(List credentialOID) { this.credentialOID = credentialOID; } /** * Gets the value of the enableTestCredentials property. * * @return * possible object is * {@link String } * */ public boolean isEnableTestCredentials() { if (enableTestCredentials == null) { return new ZeroOneBooleanAdapter().unmarshal("false"); } else { return enableTestCredentials; } } /** * Sets the value of the enableTestCredentials property. * * @param value * allowed object is * {@link String } * */ public void setEnableTestCredentials(Boolean value) { this.enableTestCredentials = 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; } // @OneToMany(targetEntity = TestCredentialsCredentialOIDItem.class, cascade = { // CascadeType.ALL // }) // // public List getCredentialOIDItems() { // if (this.credentialOIDItems == null) { // this.credentialOIDItems = new ArrayList(); // } // if (ItemUtils.shouldBeWrapped(this.credentialOID)) { // this.credentialOID = ItemUtils.wrap(this.credentialOID, this.credentialOIDItems, TestCredentialsCredentialOIDItem.class); // } // return this.credentialOIDItems; // } // // public void setCredentialOIDItems(List value) { // this.credentialOID = null; // this.credentialOIDItems = null; // this.credentialOIDItems = value; // if (this.credentialOIDItems == null) { // this.credentialOIDItems = new ArrayList(); // } // if (ItemUtils.shouldBeWrapped(this.credentialOID)) { // this.credentialOID = ItemUtils.wrap(this.credentialOID, this.credentialOIDItems, TestCredentialsCredentialOIDItem.class); // } // } /** * @return the useTestIDLTrustStore */ public boolean isUseTestIDLTrustStore() { return useTestIDLTrustStore; } /** * @param useTestIDLTrustStore the useTestIDLTrustStore to set */ public void setUseTestIDLTrustStore(boolean useTestIDLTrustStore) { this.useTestIDLTrustStore = useTestIDLTrustStore; } /** * @return the useTestAuthBlockTrustStore */ public boolean isUseTestAuthBlockTrustStore() { return useTestAuthBlockTrustStore; } /** * @param useTestAuthBlockTrustStore the useTestAuthBlockTrustStore to set */ public void setUseTestAuthBlockTrustStore(boolean useTestAuthBlockTrustStore) { this.useTestAuthBlockTrustStore = useTestAuthBlockTrustStore; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof TestCredentials)) { return false; } if (this == object) { return true; } final TestCredentials that = ((TestCredentials) object); { List lhsCredentialOID; lhsCredentialOID = (((this.credentialOID!= null)&&(!this.credentialOID.isEmpty()))?this.getCredentialOID():null); List rhsCredentialOID; rhsCredentialOID = (((that.credentialOID!= null)&&(!that.credentialOID.isEmpty()))?that.getCredentialOID():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "credentialOID", lhsCredentialOID), LocatorUtils.property(thatLocator, "credentialOID", rhsCredentialOID), lhsCredentialOID, rhsCredentialOID)) { return false; } } { boolean lhsEnableTestCredentials; lhsEnableTestCredentials = ((this.enableTestCredentials!= null)?this.isEnableTestCredentials():false); boolean rhsEnableTestCredentials; rhsEnableTestCredentials = ((that.enableTestCredentials!= null)?that.isEnableTestCredentials():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "enableTestCredentials", lhsEnableTestCredentials), LocatorUtils.property(thatLocator, "enableTestCredentials", rhsEnableTestCredentials), lhsEnableTestCredentials, rhsEnableTestCredentials)) { 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 theCredentialOID; theCredentialOID = (((this.credentialOID!= null)&&(!this.credentialOID.isEmpty()))?this.getCredentialOID():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "credentialOID", theCredentialOID), currentHashCode, theCredentialOID); } { boolean theEnableTestCredentials; theEnableTestCredentials = ((this.enableTestCredentials!= null)?this.isEnableTestCredentials():false); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enableTestCredentials", theEnableTestCredentials), currentHashCode, theEnableTestCredentials); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }