package org.cagrid.gaards.authentication; import java.io.Serializable; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import gov.nih.nci.cagrid.metadata.ServiceMetadata; 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.lang.JAXBToStringStrategy; import org.jvnet.jaxb2_commons.lang.ToString; import org.jvnet.jaxb2_commons.lang.ToStringStrategy; import org.jvnet.jaxb2_commons.locator.ObjectLocator; import org.jvnet.jaxb2_commons.locator.util.LocatorUtils; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element ref="{gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata}ServiceMetadata"/> * <element ref="{http://gaards.cagrid.org/authentication}AuthenticationProfiles"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "serviceMetadata", "authenticationProfiles" }) @XmlRootElement(name = "AuthenticationServiceResourceProperties") public class AuthenticationServiceResourceProperties implements Serializable, Equals, HashCode, ToString { @XmlElement(name = "ServiceMetadata", namespace = "gme://caGrid.caBIG/1.0/gov.nih.nci.cagrid.metadata", required = true) protected ServiceMetadata serviceMetadata; @XmlElement(name = "AuthenticationProfiles", namespace = "http://gaards.cagrid.org/authentication", required = true) protected AuthenticationProfiles authenticationProfiles; /** * Gets the value of the serviceMetadata property. * * @return * possible object is * {@link ServiceMetadata } * */ public ServiceMetadata getServiceMetadata() { return serviceMetadata; } /** * Sets the value of the serviceMetadata property. * * @param value * allowed object is * {@link ServiceMetadata } * */ public void setServiceMetadata(ServiceMetadata value) { this.serviceMetadata = value; } /** * Gets the value of the authenticationProfiles property. * * @return * possible object is * {@link AuthenticationProfiles } * */ public AuthenticationProfiles getAuthenticationProfiles() { return authenticationProfiles; } /** * Sets the value of the authenticationProfiles property. * * @param value * allowed object is * {@link AuthenticationProfiles } * */ public void setAuthenticationProfiles(AuthenticationProfiles value) { this.authenticationProfiles = value; } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { ServiceMetadata theServiceMetadata; theServiceMetadata = this.getServiceMetadata(); strategy.appendField(locator, this, "serviceMetadata", buffer, theServiceMetadata); } { AuthenticationProfiles theAuthenticationProfiles; theAuthenticationProfiles = this.getAuthenticationProfiles(); strategy.appendField(locator, this, "authenticationProfiles", buffer, theAuthenticationProfiles); } return buffer; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { ServiceMetadata theServiceMetadata; theServiceMetadata = this.getServiceMetadata(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "serviceMetadata", theServiceMetadata), currentHashCode, theServiceMetadata); } { AuthenticationProfiles theAuthenticationProfiles; theAuthenticationProfiles = this.getAuthenticationProfiles(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "authenticationProfiles", theAuthenticationProfiles), currentHashCode, theAuthenticationProfiles); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof AuthenticationServiceResourceProperties)) { return false; } if (this == object) { return true; } final AuthenticationServiceResourceProperties that = ((AuthenticationServiceResourceProperties) object); { ServiceMetadata lhsServiceMetadata; lhsServiceMetadata = this.getServiceMetadata(); ServiceMetadata rhsServiceMetadata; rhsServiceMetadata = that.getServiceMetadata(); if (!strategy.equals(LocatorUtils.property(thisLocator, "serviceMetadata", lhsServiceMetadata), LocatorUtils.property(thatLocator, "serviceMetadata", rhsServiceMetadata), lhsServiceMetadata, rhsServiceMetadata)) { return false; } } { AuthenticationProfiles lhsAuthenticationProfiles; lhsAuthenticationProfiles = this.getAuthenticationProfiles(); AuthenticationProfiles rhsAuthenticationProfiles; rhsAuthenticationProfiles = that.getAuthenticationProfiles(); if (!strategy.equals(LocatorUtils.property(thisLocator, "authenticationProfiles", lhsAuthenticationProfiles), LocatorUtils.property(thatLocator, "authenticationProfiles", rhsAuthenticationProfiles), lhsAuthenticationProfiles, rhsAuthenticationProfiles)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } }