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

no.digipost.org.w3.xlink.Arc Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.11.16 at 09:22:53 AM UTC 
//


package no.digipost.org.w3.xlink;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
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.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 

Java class for arcType complex type. * *

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

 * <complexType name="arcType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <group ref="{http://www.w3.org/1999/xlink}arcModel"/>
 *       <attGroup ref="{http://www.w3.org/1999/xlink}arcAttrs"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "arcType", propOrder = { "titles" }) @XmlRootElement(name = "arc") public abstract class Arc implements Equals2, HashCode2, ToString2 { @XmlElement(name = "title") protected List titles; @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) protected TypeType type; @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") protected String arcrole; @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") protected String title; @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") protected ShowType show; @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") protected ActuateType actuate; @XmlAttribute(name = "from", namespace = "http://www.w3.org/1999/xlink") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String from; @XmlAttribute(name = "to", namespace = "http://www.w3.org/1999/xlink") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String to; /** * Default no-arg constructor * */ public Arc() { super(); } /** * Fully-initialising value constructor * */ public Arc(final List<Title> titles, final TypeType type, final String arcrole, final String title, final ShowType show, final ActuateType actuate, final String from, final String to) { this.titles = titles; this.type = type; this.arcrole = arcrole; this.title = title; this.show = show; this.actuate = actuate; this.from = from; this.to = to; } /** * Gets the value of the titles property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the titles property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTitles().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Title } * * */ public List<Title> getTitles() { if (titles == null) { titles = new ArrayList<Title>(); } return this.titles; } /** * Gets the value of the type property. * * @return * possible object is * {@link TypeType } * */ public TypeType getType() { if (type == null) { return TypeType.ARC; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link TypeType } * */ public void setType(TypeType value) { this.type = value; } /** * Gets the value of the arcrole property. * * @return * possible object is * {@link String } * */ public String getArcrole() { return arcrole; } /** * Sets the value of the arcrole property. * * @param value * allowed object is * {@link String } * */ public void setArcrole(String value) { this.arcrole = value; } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } /** * Gets the value of the show property. * * @return * possible object is * {@link ShowType } * */ public ShowType getShow() { return show; } /** * Sets the value of the show property. * * @param value * allowed object is * {@link ShowType } * */ public void setShow(ShowType value) { this.show = value; } /** * Gets the value of the actuate property. * * @return * possible object is * {@link ActuateType } * */ public ActuateType getActuate() { return actuate; } /** * Sets the value of the actuate property. * * @param value * allowed object is * {@link ActuateType } * */ public void setActuate(ActuateType value) { this.actuate = value; } /** * Gets the value of the from property. * * @return * possible object is * {@link String } * */ public String getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link String } * */ public void setFrom(String value) { this.from = value; } /** * * from and to have default behavior when values are missing * * * @return * possible object is * {@link String } * */ public String getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link String } * */ public void setTo(String value) { this.to = value; } public void setTitles(List<Title> value) { this.titles = null; if (value!= null) { List<Title> draftl = this.getTitles(); draftl.addAll(value); } } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List<Title> theTitles; theTitles = (((this.titles!= null)&&(!this.titles.isEmpty()))?this.getTitles():null); strategy.appendField(locator, this, "titles", buffer, theTitles, ((this.titles!= null)&&(!this.titles.isEmpty()))); } { TypeType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { String theArcrole; theArcrole = this.getArcrole(); strategy.appendField(locator, this, "arcrole", buffer, theArcrole, (this.arcrole!= null)); } { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, (this.title!= null)); } { ShowType theShow; theShow = this.getShow(); strategy.appendField(locator, this, "show", buffer, theShow, (this.show!= null)); } { ActuateType theActuate; theActuate = this.getActuate(); strategy.appendField(locator, this, "actuate", buffer, theActuate, (this.actuate!= null)); } { String theFrom; theFrom = this.getFrom(); strategy.appendField(locator, this, "from", buffer, theFrom, (this.from!= null)); } { String theTo; theTo = this.getTo(); strategy.appendField(locator, this, "to", buffer, theTo, (this.to!= null)); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final Arc that = ((Arc) object); { List<Title> lhsTitles; lhsTitles = (((this.titles!= null)&&(!this.titles.isEmpty()))?this.getTitles():null); List<Title> rhsTitles; rhsTitles = (((that.titles!= null)&&(!that.titles.isEmpty()))?that.getTitles():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "titles", lhsTitles), LocatorUtils.property(thatLocator, "titles", rhsTitles), lhsTitles, rhsTitles, ((this.titles!= null)&&(!this.titles.isEmpty())), ((that.titles!= null)&&(!that.titles.isEmpty())))) { return false; } } { TypeType lhsType; lhsType = this.getType(); TypeType rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { String lhsArcrole; lhsArcrole = this.getArcrole(); String rhsArcrole; rhsArcrole = that.getArcrole(); if (!strategy.equals(LocatorUtils.property(thisLocator, "arcrole", lhsArcrole), LocatorUtils.property(thatLocator, "arcrole", rhsArcrole), lhsArcrole, rhsArcrole, (this.arcrole!= null), (that.arcrole!= null))) { return false; } } { String lhsTitle; lhsTitle = this.getTitle(); String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle, (this.title!= null), (that.title!= null))) { return false; } } { ShowType lhsShow; lhsShow = this.getShow(); ShowType rhsShow; rhsShow = that.getShow(); if (!strategy.equals(LocatorUtils.property(thisLocator, "show", lhsShow), LocatorUtils.property(thatLocator, "show", rhsShow), lhsShow, rhsShow, (this.show!= null), (that.show!= null))) { return false; } } { ActuateType lhsActuate; lhsActuate = this.getActuate(); ActuateType rhsActuate; rhsActuate = that.getActuate(); if (!strategy.equals(LocatorUtils.property(thisLocator, "actuate", lhsActuate), LocatorUtils.property(thatLocator, "actuate", rhsActuate), lhsActuate, rhsActuate, (this.actuate!= null), (that.actuate!= null))) { return false; } } { String lhsFrom; lhsFrom = this.getFrom(); String rhsFrom; rhsFrom = that.getFrom(); if (!strategy.equals(LocatorUtils.property(thisLocator, "from", lhsFrom), LocatorUtils.property(thatLocator, "from", rhsFrom), lhsFrom, rhsFrom, (this.from!= null), (that.from!= null))) { return false; } } { String lhsTo; lhsTo = this.getTo(); String rhsTo; rhsTo = that.getTo(); if (!strategy.equals(LocatorUtils.property(thisLocator, "to", lhsTo), LocatorUtils.property(thatLocator, "to", rhsTo), lhsTo, rhsTo, (this.to!= null), (that.to!= null))) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List<Title> theTitles; theTitles = (((this.titles!= null)&&(!this.titles.isEmpty()))?this.getTitles():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "titles", theTitles), currentHashCode, theTitles, ((this.titles!= null)&&(!this.titles.isEmpty()))); } { TypeType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { String theArcrole; theArcrole = this.getArcrole(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "arcrole", theArcrole), currentHashCode, theArcrole, (this.arcrole!= null)); } { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, (this.title!= null)); } { ShowType theShow; theShow = this.getShow(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "show", theShow), currentHashCode, theShow, (this.show!= null)); } { ActuateType theActuate; theActuate = this.getActuate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "actuate", theActuate), currentHashCode, theActuate, (this.actuate!= null)); } { String theFrom; theFrom = this.getFrom(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "from", theFrom), currentHashCode, theFrom, (this.from!= null)); } { String theTo; theTo = this.getTo(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "to", theTo), currentHashCode, theTo, (this.to!= null)); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public Arc withTitles(Title... values) { if (values!= null) { for (Title value: values) { getTitles().add(value); } } return this; } public Arc withTitles(Collection<Title> values) { if (values!= null) { getTitles().addAll(values); } return this; } public Arc withType(TypeType value) { setType(value); return this; } public Arc withArcrole(String value) { setArcrole(value); return this; } public Arc withTitle(String value) { setTitle(value); return this; } public Arc withShow(ShowType value) { setShow(value); return this; } public Arc withActuate(ActuateType value) { setActuate(value); return this; } public Arc withFrom(String value) { setFrom(value); return this; } public Arc withTo(String value) { setTo(value); return this; } public Arc withTitles(List<Title> value) { setTitles(value); return this; } } </code></pre> <br/> <br/> <!--<div id="right-banner">--> <!--</div>--> <!--<div id="left-banner">--> <!--</div>--> <div class='clear'></div> </main> </div> <br/><br/> <div class="align-center">© 2015 - 2024 <a href="/legal-notice.php">Weber Informatics LLC</a> | <a href="/data-protection.php">Privacy Policy</a></div> <br/><br/><br/><br/><br/><br/> </body> </html>