
no.udi.common.v2.Credentials Maven / Gradle / Ivy
package no.udi.common.v2;
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.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 Credentials complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Credentials">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Brukernavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Passord" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Credentials", propOrder = {
"brukernavn",
"passord"
})
public class Credentials
implements Serializable, Equals, HashCode
{
@XmlElement(name = "Brukernavn", required = true)
protected String brukernavn;
@XmlElement(name = "Passord", required = true)
protected String passord;
/**
* Gets the value of the brukernavn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBrukernavn() {
return brukernavn;
}
/**
* Sets the value of the brukernavn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBrukernavn(String value) {
this.brukernavn = value;
}
/**
* Gets the value of the passord property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPassord() {
return passord;
}
/**
* Sets the value of the passord property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPassord(String value) {
this.passord = value;
}
public Credentials withBrukernavn(String value) {
setBrukernavn(value);
return this;
}
public Credentials withPassord(String value) {
setPassord(value);
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theBrukernavn;
theBrukernavn = this.getBrukernavn();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brukernavn", theBrukernavn), currentHashCode, theBrukernavn);
}
{
String thePassord;
thePassord = this.getPassord();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "passord", thePassord), currentHashCode, thePassord);
}
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 Credentials)) {
return false;
}
if (this == object) {
return true;
}
final Credentials that = ((Credentials) object);
{
String lhsBrukernavn;
lhsBrukernavn = this.getBrukernavn();
String rhsBrukernavn;
rhsBrukernavn = that.getBrukernavn();
if (!strategy.equals(LocatorUtils.property(thisLocator, "brukernavn", lhsBrukernavn), LocatorUtils.property(thatLocator, "brukernavn", rhsBrukernavn), lhsBrukernavn, rhsBrukernavn)) {
return false;
}
}
{
String lhsPassord;
lhsPassord = this.getPassord();
String rhsPassord;
rhsPassord = that.getPassord();
if (!strategy.equals(LocatorUtils.property(thisLocator, "passord", lhsPassord), LocatorUtils.property(thatLocator, "passord", rhsPassord), lhsPassord, rhsPassord)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy