com.foursoft.harness.kbl.v24.KblSegment 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.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 Segment complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Segment">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Id" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Alias_id" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Alias_identification" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Start_vector" type="{http://www.w3.org/2001/XMLSchema}double" maxOccurs="3" minOccurs="0"/>
* <element name="End_vector" type="{http://www.w3.org/2001/XMLSchema}double" maxOccurs="3" minOccurs="0"/>
* <element name="Virtual_length" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Numerical_value" minOccurs="0"/>
* <element name="Physical_length" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Numerical_value" minOccurs="0"/>
* <element name="Form" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Segment_form" minOccurs="0"/>
* <element name="End_node" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* <element name="Start_node" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* <element name="Center_curve" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}B_spline_curve" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Cross_section_area_information" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Cross_section_area" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Fixing_assignment" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Fixing_assignment" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Processing_information" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Processing_instruction" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Protection_area" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Protection_area" 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 = "Segment", namespace = "http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema", propOrder = {
"id",
"aliasIds",
"startVectors",
"endVectors",
"virtualLength",
"physicalLength",
"form",
"endNode",
"startNode",
"centerCurves",
"crossSectionAreaInformations",
"fixingAssignments",
"processingInformations",
"protectionAreas"
})
public class KblSegment implements Serializable, ChangedElement, HasAliasId, HasIdentification, HasProcessingInformation, Visitable, Identifiable, ModifiableIdentifiable
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "Id", required = true)
protected String id;
@XmlElement(name = "Alias_id")
protected List aliasIds;
@XmlElement(name = "Start_vector", type = Double.class)
protected List startVectors;
@XmlElement(name = "End_vector", type = Double.class)
protected List endVectors;
@XmlElement(name = "Virtual_length")
protected KblNumericalValue virtualLength;
@XmlElement(name = "Physical_length")
protected KblNumericalValue physicalLength;
@XmlElement(name = "Form")
@XmlSchemaType(name = "string")
protected KblSegmentForm form;
/**
* ref to Node
*
*/
@XmlElement(name = "End_node", required = true, type = java.lang.Object.class)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
@XmlBackReference(destinationField = "refSegment")
protected KblNode endNode;
/**
* ref to Node
*
*/
@XmlElement(name = "Start_node", required = true, type = java.lang.Object.class)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
@XmlBackReference(destinationField = "refSegment")
protected KblNode startNode;
@XmlElement(name = "Center_curve")
protected List centerCurves;
@XmlElement(name = "Cross_section_area_information")
protected List crossSectionAreaInformations;
@XmlElement(name = "Fixing_assignment")
protected List fixingAssignments;
@XmlElement(name = "Processing_information")
protected List processingInformations;
@XmlElement(name = "Protection_area")
protected List protectionAreas;
@XmlAttribute(name = "id", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String xmlId;
@XmlTransient
private Set refChangeDescription = new HashSet();
@XmlTransient
private Set refDimensionSpecification = new HashSet();
@XmlTransient
private Set refRouting = new HashSet();
@XmlTransient
@XmlParent
private KBLContainer parentKBLContainer;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the aliasIds 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 aliasIds property.
*
*
* For example, to add a new item, do as follows:
*
* getAliasIds().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblAliasIdentification }
*
*
*/
public List getAliasIds() {
if (aliasIds == null) {
aliasIds = new ArrayList();
}
return this.aliasIds;
}
/**
* Gets the value of the startVectors 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 startVectors property.
*
*
* For example, to add a new item, do as follows:
*
* getStartVectors().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Double }
*
*
*/
public List getStartVectors() {
if (startVectors == null) {
startVectors = new ArrayList();
}
return this.startVectors;
}
/**
* Gets the value of the endVectors 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 endVectors property.
*
*
* For example, to add a new item, do as follows:
*
* getEndVectors().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Double }
*
*
*/
public List getEndVectors() {
if (endVectors == null) {
endVectors = new ArrayList();
}
return this.endVectors;
}
/**
* Gets the value of the virtualLength property.
*
* @return
* possible object is
* {@link KblNumericalValue }
*
*/
public KblNumericalValue getVirtualLength() {
return virtualLength;
}
/**
* Sets the value of the virtualLength property.
*
* @param value
* allowed object is
* {@link KblNumericalValue }
*
*/
public void setVirtualLength(KblNumericalValue value) {
this.virtualLength = value;
}
/**
* Gets the value of the physicalLength property.
*
* @return
* possible object is
* {@link KblNumericalValue }
*
*/
public KblNumericalValue getPhysicalLength() {
return physicalLength;
}
/**
* Sets the value of the physicalLength property.
*
* @param value
* allowed object is
* {@link KblNumericalValue }
*
*/
public void setPhysicalLength(KblNumericalValue value) {
this.physicalLength = value;
}
/**
* Gets the value of the form property.
*
* @return
* possible object is
* {@link KblSegmentForm }
*
*/
public KblSegmentForm getForm() {
return form;
}
/**
* Sets the value of the form property.
*
* @param value
* allowed object is
* {@link KblSegmentForm }
*
*/
public void setForm(KblSegmentForm value) {
this.form = value;
}
/**
* Gets the value of the endNode property.
*
* ref to Node
*
* @return
* possible object is
* {@link Object }
*
*/
public KblNode getEndNode() {
return endNode;
}
/**
* Sets the value of the endNode property.
*
* @param value
* allowed object is
* {@link Object }
*
* @see #getEndNode()
*/
public void setEndNode(KblNode value) {
this.endNode = value;
}
/**
* Gets the value of the startNode property.
*
* ref to Node
*
* @return
* possible object is
* {@link Object }
*
*/
public KblNode getStartNode() {
return startNode;
}
/**
* Sets the value of the startNode property.
*
* @param value
* allowed object is
* {@link Object }
*
* @see #getStartNode()
*/
public void setStartNode(KblNode value) {
this.startNode = value;
}
/**
* Gets the value of the centerCurves 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 centerCurves property.
*
*
* For example, to add a new item, do as follows:
*
* getCenterCurves().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblBSplineCurve }
*
*
*/
public List getCenterCurves() {
if (centerCurves == null) {
centerCurves = new ArrayList();
}
return this.centerCurves;
}
/**
* Gets the value of the crossSectionAreaInformations 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 crossSectionAreaInformations property.
*
*
* For example, to add a new item, do as follows:
*
* getCrossSectionAreaInformations().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblCrossSectionArea }
*
*
*/
public List getCrossSectionAreaInformations() {
if (crossSectionAreaInformations == null) {
crossSectionAreaInformations = new ArrayList();
}
return this.crossSectionAreaInformations;
}
/**
* Gets the value of the fixingAssignments 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 fixingAssignments property.
*
*
* For example, to add a new item, do as follows:
*
* getFixingAssignments().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblFixingAssignment }
*
*
*/
public List getFixingAssignments() {
if (fixingAssignments == null) {
fixingAssignments = new ArrayList();
}
return this.fixingAssignments;
}
/**
* 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 protectionAreas 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 protectionAreas property.
*
*
* For example, to add a new item, do as follows:
*
* getProtectionAreas().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KblProtectionArea }
*
*
*/
public List getProtectionAreas() {
if (protectionAreas == null) {
protectionAreas = new ArrayList();
}
return this.protectionAreas;
}
/**
* 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 a {@link Set } of all {@link KblDimensionSpecification } 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 getRefDimensionSpecification() {
return refDimensionSpecification;
}
/**
* Gets a {@link Set } of all {@link KblRouting } 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 getRefRouting() {
return refRouting;
}
/**
* 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.visitKblSegment(this);
}
public boolean beforeMarshal(Marshaller marshaller) {
if ((aliasIds!= null)&&aliasIds.isEmpty()) {
aliasIds = null;
}
if ((startVectors!= null)&&startVectors.isEmpty()) {
startVectors = null;
}
if ((endVectors!= null)&&endVectors.isEmpty()) {
endVectors = null;
}
if ((centerCurves!= null)&¢erCurves.isEmpty()) {
centerCurves = null;
}
if ((crossSectionAreaInformations!= null)&&crossSectionAreaInformations.isEmpty()) {
crossSectionAreaInformations = null;
}
if ((fixingAssignments!= null)&&fixingAssignments.isEmpty()) {
fixingAssignments = null;
}
if ((processingInformations!= null)&&processingInformations.isEmpty()) {
processingInformations = null;
}
if ((protectionAreas!= null)&&protectionAreas.isEmpty()) {
protectionAreas = null;
}
return true;
}
@Override
public String toString() {
return this.getClass().getSimpleName() + "[" + this.getXmlId() + "]";
}
}