package org.oasis.names.tc.saml.assertion; import java.io.Serializable; 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.XmlType; import javax.xml.namespace.QName; 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 AuthorityBindingType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="AuthorityBindingType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="AuthorityKind" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" /> * <attribute name="Location" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * <attribute name="Binding" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AuthorityBindingType") public class AuthorityBindingType implements Serializable, Equals, HashCode, ToString { @XmlAttribute(name = "AuthorityKind", required = true) protected QName authorityKind; @XmlAttribute(name = "Location", required = true) @XmlSchemaType(name = "anyURI") protected String location; @XmlAttribute(name = "Binding", required = true) @XmlSchemaType(name = "anyURI") protected String binding; /** * Gets the value of the authorityKind property. * * @return * possible object is * {@link QName } * */ public QName getAuthorityKind() { return authorityKind; } /** * Sets the value of the authorityKind property. * * @param value * allowed object is * {@link QName } * */ public void setAuthorityKind(QName value) { this.authorityKind = value; } /** * Gets the value of the location property. * * @return * possible object is * {@link String } * */ public String getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link String } * */ public void setLocation(String value) { this.location = value; } /** * Gets the value of the binding property. * * @return * possible object is * {@link String } * */ public String getBinding() { return binding; } /** * Sets the value of the binding property. * * @param value * allowed object is * {@link String } * */ public void setBinding(String value) { this.binding = 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) { { QName theAuthorityKind; theAuthorityKind = this.getAuthorityKind(); strategy.appendField(locator, this, "authorityKind", buffer, theAuthorityKind); } { String theLocation; theLocation = this.getLocation(); strategy.appendField(locator, this, "location", buffer, theLocation); } { String theBinding; theBinding = this.getBinding(); strategy.appendField(locator, this, "binding", buffer, theBinding); } return buffer; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { QName theAuthorityKind; theAuthorityKind = this.getAuthorityKind(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "authorityKind", theAuthorityKind), currentHashCode, theAuthorityKind); } { String theLocation; theLocation = this.getLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation); } { String theBinding; theBinding = this.getBinding(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "binding", theBinding), currentHashCode, theBinding); } 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 AuthorityBindingType)) { return false; } if (this == object) { return true; } final AuthorityBindingType that = ((AuthorityBindingType) object); { QName lhsAuthorityKind; lhsAuthorityKind = this.getAuthorityKind(); QName rhsAuthorityKind; rhsAuthorityKind = that.getAuthorityKind(); if (!strategy.equals(LocatorUtils.property(thisLocator, "authorityKind", lhsAuthorityKind), LocatorUtils.property(thatLocator, "authorityKind", rhsAuthorityKind), lhsAuthorityKind, rhsAuthorityKind)) { return false; } } { String lhsLocation; lhsLocation = this.getLocation(); String rhsLocation; rhsLocation = that.getLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "location", lhsLocation), LocatorUtils.property(thatLocator, "location", rhsLocation), lhsLocation, rhsLocation)) { return false; } } { String lhsBinding; lhsBinding = this.getBinding(); String rhsBinding; rhsBinding = that.getBinding(); if (!strategy.equals(LocatorUtils.property(thisLocator, "binding", lhsBinding), LocatorUtils.property(thatLocator, "binding", rhsBinding), lhsBinding, rhsBinding)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } }