// // 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.JoinTable; import javax.persistence.ManyToMany; 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.XmlRootElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 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="AttributeValue" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *         <element ref="{http://www.buergerkarte.at/namespaces/moaconfig#}OA_STORK" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="countryCode" use="required" type="{http://www.buergerkarte.at/namespaces/moaconfig#}CountryCodeType" />
 *       <attribute name="URL" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="supportsXMLSignature" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "attributeValue", "oastork" }) @XmlRootElement(name = "C-PEPS") public class CPEPS implements Serializable, Equals, HashCode { @XmlElement(name = "AttributeValue") protected List attributeValue; @XmlElement(name = "OA_STORK") protected List oastork; @XmlAttribute(name = "countryCode", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String countryCode; @XmlAttribute(name = "URL", required = true) @XmlSchemaType(name = "anyURI") protected String url; @XmlAttribute(name = "supportsXMLSignature") @XmlJavaTypeAdapter(ZeroOneBooleanAdapter.class) @XmlSchemaType(name = "boolean") protected Boolean supportsXMLSignature; @XmlAttribute(name = "Hjid") protected Long hjid; // protected transient List attributeValueItems; /** * Gets the value of the attributeValue 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 attributeValue property. * *

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

     *    getAttributeValue().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ @Transient public List getAttributeValue() { if (attributeValue == null) { attributeValue = new ArrayList(); } return this.attributeValue; } /** * * */ public void setAttributeValue(List attributeValue) { this.attributeValue = attributeValue; } /** * Gets the value of the oastork 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 oastork property. * *

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

     *    getOASTORK().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link OASTORK } * * */ @ManyToMany(targetEntity = OASTORK.class, cascade = { CascadeType.ALL }) @JoinTable(name = "OA_CPEPS", joinColumns = { }, inverseJoinColumns = { }) public List getOASTORK() { if (oastork == null) { oastork = new ArrayList(); } return this.oastork; } /** * * */ public void setOASTORK(List oastork) { this.oastork = oastork; } /** * Gets the value of the countryCode property. * * @return * possible object is * {@link String } * */ public String getCountryCode() { return countryCode; } /** * Sets the value of the countryCode property. * * @param value * allowed object is * {@link String } * */ public void setCountryCode(String value) { this.countryCode = value; } /** * Gets the value of the url property. * * @return * possible object is * {@link String } * */ public String getURL() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is * {@link String } * */ public void setURL(String value) { this.url = value; } /** * Gets the value of the supportsXMLSignature property. * * @return * possible object is * {@link String } * */ public boolean isSupportsXMLSignature() { if (supportsXMLSignature == null) { return new ZeroOneBooleanAdapter().unmarshal("true"); } else { return supportsXMLSignature; } } /** * Sets the value of the supportsXMLSignature property. * * @param value * allowed object is * {@link String } * */ public void setSupportsXMLSignature(Boolean value) { this.supportsXMLSignature = 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 = CPEPSAttributeValueItem.class, cascade = { // CascadeType.ALL // }) // // public List getAttributeValueItems() { // if (this.attributeValueItems == null) { // this.attributeValueItems = new ArrayList(); // } // if (ItemUtils.shouldBeWrapped(this.attributeValue)) { // this.attributeValue = ItemUtils.wrap(this.attributeValue, this.attributeValueItems, CPEPSAttributeValueItem.class); // } // return this.attributeValueItems; // } // // public void setAttributeValueItems(List value) { // this.attributeValue = null; // this.attributeValueItems = null; // this.attributeValueItems = value; // if (this.attributeValueItems == null) { // this.attributeValueItems = new ArrayList(); // } // if (ItemUtils.shouldBeWrapped(this.attributeValue)) { // this.attributeValue = ItemUtils.wrap(this.attributeValue, this.attributeValueItems, CPEPSAttributeValueItem.class); // } // } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof CPEPS)) { return false; } if (this == object) { return true; } final CPEPS that = ((CPEPS) object); { List lhsAttributeValue; lhsAttributeValue = (((this.attributeValue!= null)&&(!this.attributeValue.isEmpty()))?this.getAttributeValue():null); List rhsAttributeValue; rhsAttributeValue = (((that.attributeValue!= null)&&(!that.attributeValue.isEmpty()))?that.getAttributeValue():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "attributeValue", lhsAttributeValue), LocatorUtils.property(thatLocator, "attributeValue", rhsAttributeValue), lhsAttributeValue, rhsAttributeValue)) { return false; } } { List lhsOASTORK; lhsOASTORK = (((this.oastork!= null)&&(!this.oastork.isEmpty()))?this.getOASTORK():null); List rhsOASTORK; rhsOASTORK = (((that.oastork!= null)&&(!that.oastork.isEmpty()))?that.getOASTORK():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "oastork", lhsOASTORK), LocatorUtils.property(thatLocator, "oastork", rhsOASTORK), lhsOASTORK, rhsOASTORK)) { return false; } } { String lhsCountryCode; lhsCountryCode = this.getCountryCode(); String rhsCountryCode; rhsCountryCode = that.getCountryCode(); if (!strategy.equals(LocatorUtils.property(thisLocator, "countryCode", lhsCountryCode), LocatorUtils.property(thatLocator, "countryCode", rhsCountryCode), lhsCountryCode, rhsCountryCode)) { return false; } } { String lhsURL; lhsURL = this.getURL(); String rhsURL; rhsURL = that.getURL(); if (!strategy.equals(LocatorUtils.property(thisLocator, "url", lhsURL), LocatorUtils.property(thatLocator, "url", rhsURL), lhsURL, rhsURL)) { return false; } } { boolean lhsSupportsXMLSignature; lhsSupportsXMLSignature = ((this.supportsXMLSignature!= null)?this.isSupportsXMLSignature():false); boolean rhsSupportsXMLSignature; rhsSupportsXMLSignature = ((that.supportsXMLSignature!= null)?that.isSupportsXMLSignature():false); if (!strategy.equals(LocatorUtils.property(thisLocator, "supportsXMLSignature", lhsSupportsXMLSignature), LocatorUtils.property(thatLocator, "supportsXMLSignature", rhsSupportsXMLSignature), lhsSupportsXMLSignature, rhsSupportsXMLSignature)) { 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 theAttributeValue; theAttributeValue = (((this.attributeValue!= null)&&(!this.attributeValue.isEmpty()))?this.getAttributeValue():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "attributeValue", theAttributeValue), currentHashCode, theAttributeValue); } { List theOASTORK; theOASTORK = (((this.oastork!= null)&&(!this.oastork.isEmpty()))?this.getOASTORK():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oastork", theOASTORK), currentHashCode, theOASTORK); } { String theCountryCode; theCountryCode = this.getCountryCode(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "countryCode", theCountryCode), currentHashCode, theCountryCode); } { String theURL; theURL = this.getURL(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "url", theURL), currentHashCode, theURL); } { boolean theSupportsXMLSignature; theSupportsXMLSignature = ((this.supportsXMLSignature!= null)?this.isSupportsXMLSignature():false); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "supportsXMLSignature", theSupportsXMLSignature), currentHashCode, theSupportsXMLSignature); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }