Coverage Summary for Class: SeqType (org.kitodo.dataformat.metskitodo)
Class |
Class, %
|
Method, %
|
Line, %
|
SeqType |
0%
(0/1)
|
0%
(0/13)
|
0%
(0/42)
|
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 generiert
// Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2023.05.12 um 01:28:08 PM CEST
//
package org.kitodo.dataformat.metskitodo;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* seqType: Complex Type for Sequences of Files
* The seq element should be used to link a div to a set of content files when those files should be played/displayed sequentially to deliver content to a user. Individual <area> subelements within the seq element provide the links to the files or portions thereof.
*
*
* <p>Java-Klasse für seqType complex type.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
*
* <pre>
* <complexType name="seqType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded">
* <element name="area" type="{http://www.loc.gov/METS/}areaType" minOccurs="0"/>
* <element name="par" type="{http://www.loc.gov/METS/}parType" minOccurs="0"/>
* </choice>
* <attGroup ref="{http://www.loc.gov/METS/}ORDERLABELS"/>
* <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <anyAttribute processContents='lax' namespace='##other'/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "seqType", propOrder = {
"areaOrPar"
})
public class SeqType implements Equals2
{
@XmlElements({
@XmlElement(name = "area", type = AreaType.class),
@XmlElement(name = "par", type = ParType.class)
})
protected List<Object> areaOrPar;
@XmlAttribute(name = "ID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "ORDER")
protected BigInteger order;
@XmlAttribute(name = "ORDERLABEL")
protected String orderlabel;
@XmlAttribute(name = "LABEL")
protected String label;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the areaOrPar 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 areaOrPar property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAreaOrPar().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AreaType }
* {@link ParType }
*
*
*/
public List<Object> getAreaOrPar() {
if (areaOrPar == null) {
areaOrPar = new ArrayList<Object>();
}
return this.areaOrPar;
}
/**
* Ruft den Wert der id-Eigenschaft ab.
*
* @return
* possible object is
* {@link String }
*
*/
public String getID() {
return id;
}
/**
* Legt den Wert der id-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setID(String value) {
this.id = value;
}
/**
* Ruft den Wert der order-Eigenschaft ab.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getORDER() {
return order;
}
/**
* Legt den Wert der order-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setORDER(BigInteger value) {
this.order = value;
}
/**
* Ruft den Wert der orderlabel-Eigenschaft ab.
*
* @return
* possible object is
* {@link String }
*
*/
public String getORDERLABEL() {
return orderlabel;
}
/**
* Legt den Wert der orderlabel-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setORDERLABEL(String value) {
this.orderlabel = value;
}
/**
* Ruft den Wert der label-Eigenschaft ab.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLABEL() {
return label;
}
/**
* Legt den Wert der label-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLABEL(String value) {
this.label = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
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 SeqType that = ((SeqType) object);
{
List<Object> lhsAreaOrPar;
lhsAreaOrPar = (((this.areaOrPar!= null)&&(!this.areaOrPar.isEmpty()))?this.getAreaOrPar():null);
List<Object> rhsAreaOrPar;
rhsAreaOrPar = (((that.areaOrPar!= null)&&(!that.areaOrPar.isEmpty()))?that.getAreaOrPar():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "areaOrPar", lhsAreaOrPar), LocatorUtils.property(thatLocator, "areaOrPar", rhsAreaOrPar), lhsAreaOrPar, rhsAreaOrPar, ((this.areaOrPar!= null)&&(!this.areaOrPar.isEmpty())), ((that.areaOrPar!= null)&&(!that.areaOrPar.isEmpty())))) {
return false;
}
}
{
String lhsID;
lhsID = this.getID();
String rhsID;
rhsID = that.getID();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsID), LocatorUtils.property(thatLocator, "id", rhsID), lhsID, rhsID, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
BigInteger lhsORDER;
lhsORDER = this.getORDER();
BigInteger rhsORDER;
rhsORDER = that.getORDER();
if (!strategy.equals(LocatorUtils.property(thisLocator, "order", lhsORDER), LocatorUtils.property(thatLocator, "order", rhsORDER), lhsORDER, rhsORDER, (this.order!= null), (that.order!= null))) {
return false;
}
}
{
String lhsORDERLABEL;
lhsORDERLABEL = this.getORDERLABEL();
String rhsORDERLABEL;
rhsORDERLABEL = that.getORDERLABEL();
if (!strategy.equals(LocatorUtils.property(thisLocator, "orderlabel", lhsORDERLABEL), LocatorUtils.property(thatLocator, "orderlabel", rhsORDERLABEL), lhsORDERLABEL, rhsORDERLABEL, (this.orderlabel!= null), (that.orderlabel!= null))) {
return false;
}
}
{
String lhsLABEL;
lhsLABEL = this.getLABEL();
String rhsLABEL;
rhsLABEL = that.getLABEL();
if (!strategy.equals(LocatorUtils.property(thisLocator, "label", lhsLABEL), LocatorUtils.property(thatLocator, "label", rhsLABEL), lhsLABEL, rhsLABEL, (this.label!= null), (that.label!= null))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}