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

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

There is a newer version: 5.1.2
Show newest version
//
// 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 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.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 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 Equals, HashCode, ToString { @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; List<Title> draftl = this.getTitles(); draftl.addAll(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) { { List<Title> theTitles; theTitles = (((this.titles!= null)&&(!this.titles.isEmpty()))?this.getTitles():null); strategy.appendField(locator, this, "titles", buffer, theTitles); } { TypeType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { String theArcrole; theArcrole = this.getArcrole(); strategy.appendField(locator, this, "arcrole", buffer, theArcrole); } { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle); } { ShowType theShow; theShow = this.getShow(); strategy.appendField(locator, this, "show", buffer, theShow); } { ActuateType theActuate; theActuate = this.getActuate(); strategy.appendField(locator, this, "actuate", buffer, theActuate); } { String theFrom; theFrom = this.getFrom(); strategy.appendField(locator, this, "from", buffer, theFrom); } { String theTo; theTo = this.getTo(); strategy.appendField(locator, this, "to", buffer, theTo); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Arc)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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; { List<Title> theTitles; theTitles = (((this.titles!= null)&&(!this.titles.isEmpty()))?this.getTitles():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "titles", theTitles), currentHashCode, theTitles); } { TypeType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { String theArcrole; theArcrole = this.getArcrole(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "arcrole", theArcrole), currentHashCode, theArcrole); } { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle); } { ShowType theShow; theShow = this.getShow(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "show", theShow), currentHashCode, theShow); } { ActuateType theActuate; theActuate = this.getActuate(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "actuate", theActuate), currentHashCode, theActuate); } { String theFrom; theFrom = this.getFrom(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "from", theFrom), currentHashCode, theFrom); } { String theTo; theTo = this.getTo(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "to", theTo), currentHashCode, theTo); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; 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 class='clear'></div> </main> </div> <br/><br/> <div class="align-center">© 2015 - 2025 <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>