All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.udi.common_tilgangskontroll.v1.Tilgang Maven / Gradle / Ivy

There is a newer version: 1.2019.09.25-00.21-49b69f0625e0
Show newest version

package no.udi.common_tilgangskontroll.v1;

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;


/**
 * Beskrivelse av autentisering og autorisasjon for en bruker
 * 
 * 

Java class for Tilgang complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Tilgang">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Token" type="{http://udi.no/Common_Tilgangskontroll/v1}Token"/>
 *         <element name="Rettigheter" type="{http://udi.no/Common_Tilgangskontroll/v1}Rettigheter"/>
 *         <element name="Signatur" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Tilgang", propOrder = { "token", "rettigheter", "signatur" }) public class Tilgang implements Serializable, Equals, HashCode { @XmlElement(name = "Token", required = true) protected Token token; @XmlElement(name = "Rettigheter", required = true) protected Rettigheter rettigheter; @XmlElement(name = "Signatur", required = true) protected String signatur; /** * Gets the value of the token property. * * @return * possible object is * {@link Token } * */ public Token getToken() { return token; } /** * Sets the value of the token property. * * @param value * allowed object is * {@link Token } * */ public void setToken(Token value) { this.token = value; } /** * Gets the value of the rettigheter property. * * @return * possible object is * {@link Rettigheter } * */ public Rettigheter getRettigheter() { return rettigheter; } /** * Sets the value of the rettigheter property. * * @param value * allowed object is * {@link Rettigheter } * */ public void setRettigheter(Rettigheter value) { this.rettigheter = value; } /** * Gets the value of the signatur property. * * @return * possible object is * {@link String } * */ public String getSignatur() { return signatur; } /** * Sets the value of the signatur property. * * @param value * allowed object is * {@link String } * */ public void setSignatur(String value) { this.signatur = value; } public Tilgang withToken(Token value) { setToken(value); return this; } public Tilgang withRettigheter(Rettigheter value) { setRettigheter(value); return this; } public Tilgang withSignatur(String value) { setSignatur(value); return this; } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { Token theToken; theToken = this.getToken(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "token", theToken), currentHashCode, theToken); } { Rettigheter theRettigheter; theRettigheter = this.getRettigheter(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rettigheter", theRettigheter), currentHashCode, theRettigheter); } { String theSignatur; theSignatur = this.getSignatur(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signatur", theSignatur), currentHashCode, theSignatur); } 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 Tilgang)) { return false; } if (this == object) { return true; } final Tilgang that = ((Tilgang) object); { Token lhsToken; lhsToken = this.getToken(); Token rhsToken; rhsToken = that.getToken(); if (!strategy.equals(LocatorUtils.property(thisLocator, "token", lhsToken), LocatorUtils.property(thatLocator, "token", rhsToken), lhsToken, rhsToken)) { return false; } } { Rettigheter lhsRettigheter; lhsRettigheter = this.getRettigheter(); Rettigheter rhsRettigheter; rhsRettigheter = that.getRettigheter(); if (!strategy.equals(LocatorUtils.property(thisLocator, "rettigheter", lhsRettigheter), LocatorUtils.property(thatLocator, "rettigheter", rhsRettigheter), lhsRettigheter, rhsRettigheter)) { return false; } } { String lhsSignatur; lhsSignatur = this.getSignatur(); String rhsSignatur; rhsSignatur = that.getSignatur(); if (!strategy.equals(LocatorUtils.property(thisLocator, "signatur", lhsSignatur), LocatorUtils.property(thatLocator, "signatur", rhsSignatur), lhsSignatur, rhsSignatur)) { 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