All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foursoft.harness.kbl.v24.KblPart Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
//
// 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.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.XmlSeeAlso;
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.jaxb.navext.runtime.annotations.XmlBackReference;
import com.foursoft.jaxb.navext.runtime.model.Identifiable;
import com.foursoft.jaxb.navext.runtime.model.ModifiableIdentifiable;


/**
 * 

Java class for Part complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="Part">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Part_number" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Company_name" 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="Version" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Abbreviation" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="Localized_description" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Localized_string" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="Predecessor_part_number" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Degree_of_maturity" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Copyright_note" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="Mass_information" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Numerical_value" minOccurs="0"/>
 *         <element name="External_references" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
 *         <element name="Change" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Change" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="Material_information" type="{http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema}Material" 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 = "Part", namespace = "http://www.prostep.org/Car_electric_container/KBL2.3/KBLSchema", propOrder = { "partNumber", "companyName", "aliasIds", "version", "abbreviation", "description", "localizedDescriptions", "predecessorPartNumber", "degreeOfMaturity", "copyrightNote", "massInformation", "externalReferences", "changes", "materialInformation", "processingInformations" }) @XmlSeeAlso({ KblAccessory.class, KblAssemblyPart.class, KblCavityPlug.class, KblCavitySeal.class, KblCoPackPart.class, KblComponentBox.class, KblConnectorHousing.class, KblFixing.class, KblGeneralTerminal.class, KblGeneralWire.class, KblWireProtection.class, KblComponent.class, KblPartWithTitleBlock.class }) public abstract class KblPart implements Serializable, HasAliasId, HasDescription, HasProcessingInformation, Visitable, Identifiable, ModifiableIdentifiable { private final static long serialVersionUID = 1L; @XmlElement(name = "Part_number", required = true) protected String partNumber; @XmlElement(name = "Company_name", required = true) protected String companyName; @XmlElement(name = "Alias_id") protected List aliasIds; @XmlElement(name = "Version", required = true) protected String version; @XmlElement(name = "Abbreviation", required = true) protected String abbreviation; @XmlElement(name = "Description", required = true) protected String description; @XmlElement(name = "Localized_description") protected List localizedDescriptions; @XmlElement(name = "Predecessor_part_number") protected String predecessorPartNumber; @XmlElement(name = "Degree_of_maturity") protected String degreeOfMaturity; @XmlElement(name = "Copyright_note") protected String copyrightNote; @XmlElement(name = "Mass_information") protected KblNumericalValue massInformation; /** * ref to External_reference * */ @XmlList @XmlElement(name = "External_references", type = java.lang.Object.class) @XmlIDREF @XmlSchemaType(name = "IDREFS") @XmlBackReference(destinationField = "refPart") protected List externalReferences; @XmlElement(name = "Change") protected List changes; @XmlElement(name = "Material_information") protected KblMaterial materialInformation; @XmlElement(name = "Processing_information") protected List processingInformations; @XmlAttribute(name = "id", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String xmlId; /** * Gets the value of the partNumber property. * * @return * possible object is * {@link String } * */ public String getPartNumber() { return partNumber; } /** * Sets the value of the partNumber property. * * @param value * allowed object is * {@link String } * */ public void setPartNumber(String value) { this.partNumber = value; } /** * Gets the value of the companyName property. * * @return * possible object is * {@link String } * */ public String getCompanyName() { return companyName; } /** * Sets the value of the companyName property. * * @param value * allowed object is * {@link String } * */ public void setCompanyName(String value) { this.companyName = 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 version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the abbreviation property. * * @return * possible object is * {@link String } * */ public String getAbbreviation() { return abbreviation; } /** * Sets the value of the abbreviation property. * * @param value * allowed object is * {@link String } * */ public void setAbbreviation(String value) { this.abbreviation = value; } /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the localizedDescriptions 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 localizedDescriptions property. * *

* For example, to add a new item, do as follows: *

     *    getLocalizedDescriptions().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link KblLocalizedString } * * */ public List getLocalizedDescriptions() { if (localizedDescriptions == null) { localizedDescriptions = new ArrayList(); } return this.localizedDescriptions; } /** * Gets the value of the predecessorPartNumber property. * * @return * possible object is * {@link String } * */ public String getPredecessorPartNumber() { return predecessorPartNumber; } /** * Sets the value of the predecessorPartNumber property. * * @param value * allowed object is * {@link String } * */ public void setPredecessorPartNumber(String value) { this.predecessorPartNumber = value; } /** * Gets the value of the degreeOfMaturity property. * * @return * possible object is * {@link String } * */ public String getDegreeOfMaturity() { return degreeOfMaturity; } /** * Sets the value of the degreeOfMaturity property. * * @param value * allowed object is * {@link String } * */ public void setDegreeOfMaturity(String value) { this.degreeOfMaturity = value; } /** * Gets the value of the copyrightNote property. * * @return * possible object is * {@link String } * */ public String getCopyrightNote() { return copyrightNote; } /** * Sets the value of the copyrightNote property. * * @param value * allowed object is * {@link String } * */ public void setCopyrightNote(String value) { this.copyrightNote = value; } /** * Gets the value of the massInformation property. * * @return * possible object is * {@link KblNumericalValue } * */ public KblNumericalValue getMassInformation() { return massInformation; } /** * Sets the value of the massInformation property. * * @param value * allowed object is * {@link KblNumericalValue } * */ public void setMassInformation(KblNumericalValue value) { this.massInformation = value; } /** * Gets the value of the changes 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 changes property. * *

* For example, to add a new item, do as follows: *

     *    getChanges().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link KblChange } * * */ public List getChanges() { if (changes == null) { changes = new ArrayList(); } return this.changes; } /** * Gets the value of the materialInformation property. * * @return * possible object is * {@link KblMaterial } * */ public KblMaterial getMaterialInformation() { return materialInformation; } /** * Sets the value of the materialInformation property. * * @param value * allowed object is * {@link KblMaterial } * */ public void setMaterialInformation(KblMaterial value) { this.materialInformation = 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 the value of the externalReferences 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 externalReferences property. * *

* For example, to add a new item, do as follows: *

     *    getExternalReferences().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * *

* ref to External_reference * */ public List getExternalReferences() { if (externalReferences == null) { externalReferences = new ArrayList(); } return this.externalReferences; } public boolean beforeMarshal(Marshaller marshaller) { if ((aliasIds!= null)&&aliasIds.isEmpty()) { aliasIds = null; } if ((localizedDescriptions!= null)&&localizedDescriptions.isEmpty()) { localizedDescriptions = null; } if ((externalReferences!= null)&&externalReferences.isEmpty()) { externalReferences = null; } if ((changes!= null)&&changes.isEmpty()) { changes = null; } if ((processingInformations!= null)&&processingInformations.isEmpty()) { processingInformations = null; } return true; } @Override public String toString() { return this.getClass().getSimpleName() + "[" + this.getXmlId() + "]"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy