com.foursoft.harness.kbl.v24.KblRouting 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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlIDREF;
import javax.xml.bind.annotation.XmlList;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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.XmlBackReference;
import com.foursoft.jaxb.navext.runtime.annotations.XmlParent;
import com.foursoft.jaxb.navext.runtime.model.Identifiable;
import com.foursoft.jaxb.navext.runtime.model.ModifiableIdentifiable;
/**
* Java class for Routing complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Routing">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Routed_wire" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* <element name="Segments" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
* <element name="Processing_information" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Processing_instruction" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Routing", namespace = "http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema", propOrder = {
"routedWire",
"segments",
"processingInformations"
})
public class KblRouting implements Serializable, ChangedElement, HasProcessingInformation, Visitable, Identifiable, ModifiableIdentifiable
{
private final static long serialVersionUID = 1L;
/**
* ref to Connection
*
*/
@XmlElement(name = "Routed_wire", required = true, type = java.lang.Object.class)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
@XmlBackReference(destinationField = "refRouting")
protected KblConnection routedWire;
/**
* ref to Segment
*
*/
@XmlList
@XmlElement(name = "Segments", type = java.lang.Object.class)
@XmlIDREF
@XmlSchemaType(name = "IDREFS")
@XmlBackReference(destinationField = "refRouting")
protected List segments;
@XmlElement(name = "Processing_information")
protected List processingInformations;
@XmlAttribute(name = "id", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String xmlId;
@XmlTransient
private Set refChangeDescription = new HashSet();
@XmlTransient
@XmlParent
private KBLContainer parentKBLContainer;
/**
* Gets the value of the routedWire property.
*
* ref to Connection
*
* @return
* possible object is
* {@link Object }
*
*/
public KblConnection getRoutedWire() {
return routedWire;
}
/**
* Sets the value of the routedWire property.
*
* @param value
* allowed object is
* {@link Object }
*
* @see #getRoutedWire()
*/
public void setRoutedWire(KblConnection value) {
this.routedWire = value;
}
/**
* Gets the value of the processingInformations 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 processingInformations property.
*
*
* For example, to add a new item, do as follows:
*
* getProcessingInformations().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblProcessingInstruction }
*
*
*/
public List getProcessingInformations() {
if (processingInformations == null) {
processingInformations = new ArrayList();
}
return this.processingInformations;
}
/**
* Gets the value of the xmlId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXmlId() {
return xmlId;
}
/**
* Sets the value of the xmlId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXmlId(String value) {
this.xmlId = value;
}
/**
* Gets a {@link Set } of all {@link KblChangeDescription } 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 getRefChangeDescription() {
return refChangeDescription;
}
/**
* Gets the value of the segments 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 segments property.
*
*
* For example, to add a new item, do as follows:
*
* getSegments().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
* ref to Segment
*
*/
public List getSegments() {
if (segments == null) {
segments = new ArrayList();
}
return this.segments;
}
/**
* 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.visitKblRouting(this);
}
public boolean beforeMarshal(Marshaller marshaller) {
if ((segments!= null)&&segments.isEmpty()) {
segments = null;
}
if ((processingInformations!= null)&&processingInformations.isEmpty()) {
processingInformations = null;
}
return true;
}
@Override
public String toString() {
return this.getClass().getSimpleName() + "[" + this.getXmlId() + "]";
}
}