com.foursoft.harness.kbl.v24.KblModularSlotOccurrence Maven / Gradle / Ivy
Show all versions of kbl-v24 Show documentation
//
// 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.07.05 at 05:22:49 PM UTC
//
package com.foursoft.harness.kbl.v24;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.Marshaller;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import com.foursoft.harness.kbl.v24.visitor.Visitable;
import com.foursoft.harness.kbl.v24.visitor.Visitor;
import com.foursoft.jaxb.navext.runtime.annotations.XmlBackReference;
/**
* Java class for Modular_slot_occurrence complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Modular_slot_occurrence">
* <complexContent>
* <extension base="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Abstract_slot_occurrence">
* <sequence>
* <element name="Part" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* <element name="Used_insets" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Modular_slot_occurrence", namespace = "http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema", propOrder = {
"part",
"usedInsets"
})
public class KblModularSlotOccurrence
extends KblAbstractSlotOccurrence
implements Serializable, Visitable
{
private final static long serialVersionUID = 1L;
/**
* ref to Modular_slot
*
*/
@XmlElement(name = "Part", required = true, type = java.lang.Object.class)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
@XmlBackReference(destinationField = "refModularSlotOccurrence")
protected KblModularSlot part;
/**
* ref to Component_box_occurrence
*
*/
@XmlList
@XmlElement(name = "Used_insets", type = java.lang.Object.class)
@XmlIDREF
@XmlSchemaType(name = "IDREFS")
@XmlBackReference(destinationField = "refModularSlotOccurrence")
protected List usedInsets;
/**
* Gets the value of the part property.
*
* ref to Modular_slot
*
* @return
* possible object is
* {@link Object }
*
*/
public KblModularSlot getPart() {
return part;
}
/**
* Sets the value of the part property.
*
* @param value
* allowed object is
* {@link Object }
*
* @see #getPart()
*/
public void setPart(KblModularSlot value) {
this.part = value;
}
/**
* Gets the value of the usedInsets property.
*
*
* 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 set
method for the usedInsets property.
*
*
* For example, to add a new item, do as follows:
*
* getUsedInsets().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
* ref to Component_box_occurrence
*
*/
public List getUsedInsets() {
if (usedInsets == null) {
usedInsets = new ArrayList();
}
return this.usedInsets;
}
publicR accept(Visitor aVisitor)
throws E
{
return aVisitor.visitKblModularSlotOccurrence(this);
}
public boolean beforeMarshal(Marshaller marshaller) {
super.beforeMarshal(marshaller);
if ((usedInsets!= null)&&usedInsets.isEmpty()) {
usedInsets = null;
}
return true;
}
}