
no.difi.begrep.sdp.schema_v10.SDPEpostVarsel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdp-xsd Show documentation
Show all versions of sdp-xsd Show documentation
XSDer og genererte JAXB-klasser
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.05.30 at 01:15:57 PM CEST
//
package no.difi.begrep.sdp.schema_v10;
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 no.digipost.xsd.types.Varsel;
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;
/**
* Java class for EpostVarsel complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="EpostVarsel">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="epostadresse" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="varslingsTekst" type="{http://begrep.difi.no/sdp/schema_v10}EpostVarselTekst"/>
* <element name="repetisjoner" type="{http://begrep.difi.no/sdp/schema_v10}Repetisjoner"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EpostVarsel", propOrder = {
"epostadresse",
"varslingsTekst",
"repetisjoner"
})
public class SDPEpostVarsel implements Varsel, Equals, HashCode, ToString
{
@XmlElement(required = true)
protected String epostadresse;
@XmlElement(required = true)
protected SDPEpostVarselTekst varslingsTekst;
@XmlElement(required = true)
protected SDPRepetisjoner repetisjoner;
/**
* Default no-arg constructor
*
*/
public SDPEpostVarsel() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public SDPEpostVarsel(final String epostadresse, final SDPEpostVarselTekst varslingsTekst, final SDPRepetisjoner repetisjoner) {
this.epostadresse = epostadresse;
this.varslingsTekst = varslingsTekst;
this.repetisjoner = repetisjoner;
}
/**
* Gets the value of the epostadresse property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEpostadresse() {
return epostadresse;
}
/**
* Sets the value of the epostadresse property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEpostadresse(String value) {
this.epostadresse = value;
}
/**
* Gets the value of the varslingsTekst property.
*
* @return
* possible object is
* {@link SDPEpostVarselTekst }
*
*/
public SDPEpostVarselTekst getVarslingsTekst() {
return varslingsTekst;
}
/**
* Sets the value of the varslingsTekst property.
*
* @param value
* allowed object is
* {@link SDPEpostVarselTekst }
*
*/
public void setVarslingsTekst(SDPEpostVarselTekst value) {
this.varslingsTekst = value;
}
/**
* Gets the value of the repetisjoner property.
*
* @return
* possible object is
* {@link SDPRepetisjoner }
*
*/
public SDPRepetisjoner getRepetisjoner() {
return repetisjoner;
}
/**
* Sets the value of the repetisjoner property.
*
* @param value
* allowed object is
* {@link SDPRepetisjoner }
*
*/
public void setRepetisjoner(SDPRepetisjoner value) {
this.repetisjoner = 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) {
{
String theEpostadresse;
theEpostadresse = this.getEpostadresse();
strategy.appendField(locator, this, "epostadresse", buffer, theEpostadresse);
}
{
SDPEpostVarselTekst theVarslingsTekst;
theVarslingsTekst = this.getVarslingsTekst();
strategy.appendField(locator, this, "varslingsTekst", buffer, theVarslingsTekst);
}
{
SDPRepetisjoner theRepetisjoner;
theRepetisjoner = this.getRepetisjoner();
strategy.appendField(locator, this, "repetisjoner", buffer, theRepetisjoner);
}
return buffer;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof SDPEpostVarsel)) {
return false;
}
if (this == object) {
return true;
}
final SDPEpostVarsel that = ((SDPEpostVarsel) object);
{
String lhsEpostadresse;
lhsEpostadresse = this.getEpostadresse();
String rhsEpostadresse;
rhsEpostadresse = that.getEpostadresse();
if (!strategy.equals(LocatorUtils.property(thisLocator, "epostadresse", lhsEpostadresse), LocatorUtils.property(thatLocator, "epostadresse", rhsEpostadresse), lhsEpostadresse, rhsEpostadresse)) {
return false;
}
}
{
SDPEpostVarselTekst lhsVarslingsTekst;
lhsVarslingsTekst = this.getVarslingsTekst();
SDPEpostVarselTekst rhsVarslingsTekst;
rhsVarslingsTekst = that.getVarslingsTekst();
if (!strategy.equals(LocatorUtils.property(thisLocator, "varslingsTekst", lhsVarslingsTekst), LocatorUtils.property(thatLocator, "varslingsTekst", rhsVarslingsTekst), lhsVarslingsTekst, rhsVarslingsTekst)) {
return false;
}
}
{
SDPRepetisjoner lhsRepetisjoner;
lhsRepetisjoner = this.getRepetisjoner();
SDPRepetisjoner rhsRepetisjoner;
rhsRepetisjoner = that.getRepetisjoner();
if (!strategy.equals(LocatorUtils.property(thisLocator, "repetisjoner", lhsRepetisjoner), LocatorUtils.property(thatLocator, "repetisjoner", rhsRepetisjoner), lhsRepetisjoner, rhsRepetisjoner)) {
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;
{
String theEpostadresse;
theEpostadresse = this.getEpostadresse();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "epostadresse", theEpostadresse), currentHashCode, theEpostadresse);
}
{
SDPEpostVarselTekst theVarslingsTekst;
theVarslingsTekst = this.getVarslingsTekst();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "varslingsTekst", theVarslingsTekst), currentHashCode, theVarslingsTekst);
}
{
SDPRepetisjoner theRepetisjoner;
theRepetisjoner = this.getRepetisjoner();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "repetisjoner", theRepetisjoner), currentHashCode, theRepetisjoner);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public SDPEpostVarsel withEpostadresse(String value) {
setEpostadresse(value);
return this;
}
public SDPEpostVarsel withVarslingsTekst(SDPEpostVarselTekst value) {
setVarslingsTekst(value);
return this;
}
public SDPEpostVarsel withRepetisjoner(SDPRepetisjoner value) {
setRepetisjoner(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy