com.foursoft.vecmodel.vec113.VecContract Maven / Gradle / Ivy
//
// 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: 2021.08.10 at 09:49:21 AM UTC
//
package com.foursoft.vecmodel.vec113;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
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.vecmodel.vec113.visitor.Visitable;
import com.foursoft.vecmodel.vec113.visitor.Visitor;
import com.foursoft.xml.ExtendedUnmarshaller;
import com.foursoft.xml.annotations.XmlParent;
/**
* A Contract-instance describes the relationship between an ItemVersion-instance and a Company-instance additionally defining the role the company takes in reference to the ItemVersion.
*
* Java class for Contract complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Contract">
* <complexContent>
* <extension base="{http://www.prostep.org/ecad-if/2011/vec}ExtendableElement">
* <sequence>
* <element name="CompanyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="ContractRole" type="{http://www.prostep.org/ecad-if/2011/vec}ContractRole"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Contract", propOrder = {
"companyName",
"contractRole"
})
public class VecContract
extends VecExtendableElement
implements Serializable, Visitable
{
private final static long serialVersionUID = 1L;
/**
* Specifies the company which acts in the specified Role in the Contract Relationship.
*
*/
@XmlElement(name = "CompanyName", required = true)
protected String companyName;
/**
* The role the company takes in reference to the associated ItemVersion. Predefined are the values: Oem, Supplier and Manufacturer.
*
*/
@XmlElement(name = "ContractRole", required = true)
protected String contractRole;
@XmlTransient
private Set refItemVersion = new HashSet();
@XmlTransient
@XmlParent
private VecContent parentVecContent;
/**
* Gets the value of the companyName property.
*
*
Specifies the company which acts in the specified Role in the Contract Relationship.
*
* @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 }
*
* @see #getCompanyName()
*/
public void setCompanyName(String value) {
this.companyName = value;
}
/**
* Gets the value of the contractRole property.
*
*
The role the company takes in reference to the associated ItemVersion. Predefined are the values: Oem, Supplier and Manufacturer.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContractRole() {
return contractRole;
}
/**
* Sets the value of the contractRole property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getContractRole()
*/
public void setContractRole(String value) {
this.contractRole = value;
}
/**
* Gets a {@link Set } of all {@link VecItemVersion } 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 getRefItemVersion() {
return refItemVersion;
}
/**
* 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 VecContent } 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 VecContent getParentVecContent() {
return parentVecContent;
}
publicR accept(Visitor aVisitor)
throws E
{
return aVisitor.visitVecContract(this);
}
}