com.foursoft.harness.kbl.v24.KblComponentBox 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.HashSet;
import java.util.List;
import java.util.Set;
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.XmlTransient;
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.ExtendedUnmarshaller;
import com.foursoft.jaxb.navext.runtime.annotations.XmlParent;
/**
* Java class for Component_box complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Component_box">
* <complexContent>
* <extension base="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Part">
* <sequence>
* <element name="Component_box_connectors" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Component_box_connector" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Component_slots" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Component_slot" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Connections" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Component_box_connection" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Component_box", namespace = "http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema", propOrder = {
"componentBoxConnectors",
"componentSlots",
"connections"
})
public class KblComponentBox
extends KblPart
implements Serializable, CompatibleConnector, Visitable
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "Component_box_connectors")
protected List componentBoxConnectors;
@XmlElement(name = "Component_slots")
protected List componentSlots;
@XmlElement(name = "Connections")
protected List connections;
@XmlTransient
private Set refComponentBoxConnector = new HashSet();
@XmlTransient
private Set refComponentBoxOccurrence = new HashSet();
@XmlTransient
private Set refModularSlot = new HashSet();
@XmlTransient
@XmlParent
private KBLContainer parentKBLContainer;
/**
* Gets the value of the componentBoxConnectors 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 componentBoxConnectors property.
*
*
* For example, to add a new item, do as follows:
*
* getComponentBoxConnectors().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblComponentBoxConnector }
*
*
*/
public List getComponentBoxConnectors() {
if (componentBoxConnectors == null) {
componentBoxConnectors = new ArrayList();
}
return this.componentBoxConnectors;
}
/**
* Gets the value of the componentSlots 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 componentSlots property.
*
*
* For example, to add a new item, do as follows:
*
* getComponentSlots().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblComponentSlot }
*
*
*/
public List getComponentSlots() {
if (componentSlots == null) {
componentSlots = new ArrayList();
}
return this.componentSlots;
}
/**
* Gets the value of the connections 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 connections property.
*
*
* For example, to add a new item, do as follows:
*
* getConnections().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblComponentBoxConnection }
*
*
*/
public List getConnections() {
if (connections == null) {
connections = new ArrayList();
}
return this.connections;
}
/**
* Gets a {@link Set } of all {@link KblComponentBoxConnector } that have a outgoing reference to this object.
* Warning!: This is a readonly property! It has to be initialized during the unmarshalling process by the {@link ExtendedUnmarshaller }.
This property is consistent to the state of object model at the time of unmarshalling. It does not reflect any changes done in the object model after the unmarshalling.
* This property has no effect when the object is marshalled to xml.
*
*/
public Set getRefComponentBoxConnector() {
return refComponentBoxConnector;
}
/**
* Gets a {@link Set } of all {@link KblComponentBoxOccurrence } that have a outgoing reference to this object.
* Warning!: This is a readonly property! It has to be initialized during the unmarshalling process by the {@link ExtendedUnmarshaller }.
This property is consistent to the state of object model at the time of unmarshalling. It does not reflect any changes done in the object model after the unmarshalling.
* This property has no effect when the object is marshalled to xml.
*
*/
public Set getRefComponentBoxOccurrence() {
return refComponentBoxOccurrence;
}
/**
* Gets a {@link Set } of all {@link KblModularSlot } that have a outgoing reference to this object.
* Warning!: This is a readonly property! It has to be initialized during the unmarshalling process by the {@link ExtendedUnmarshaller }.
This property is consistent to the state of object model at the time of unmarshalling. It does not reflect any changes done in the object model after the unmarshalling.
* This property has no effect when the object is marshalled to xml.
*
*/
public Set getRefModularSlot() {
return refModularSlot;
}
/**
* Gets a reference to the parent of this object in the XML DOM Tree. If this class can have different parents in DOM, this property is initialized with the parent, if the parent is a {@link KBLContainer } otherwise it will be null
* Warning!: This is a readonly property! It has to be initialized during the unmarshalling process by the {@link ExtendedUnmarshaller }.
This property is consistent to the state of object model at the time of unmarshalling. It does not reflect any changes done in the object model after the unmarshalling.
* This property has no effect when the object is marshalled to xml.
*
*/
public KBLContainer getParentKBLContainer() {
return parentKBLContainer;
}
publicR accept(Visitor aVisitor)
throws E
{
return aVisitor.visitKblComponentBox(this);
}
public boolean beforeMarshal(Marshaller marshaller) {
super.beforeMarshal(marshaller);
if ((componentBoxConnectors!= null)&&componentBoxConnectors.isEmpty()) {
componentBoxConnectors = null;
}
if ((componentSlots!= null)&&componentSlots.isEmpty()) {
componentSlots = null;
}
if ((connections!= null)&&connections.isEmpty()) {
connections = null;
}
return true;
}
}