Class VecPartRelation

java.lang.Object
com.foursoft.harness.vec.v113.VecPartRelation
All Implemented Interfaces:
Identifiable, ModifiableIdentifiable, Visitable, Serializable

public class VecPartRelation extends Object implements Serializable, Identifiable, ModifiableIdentifiable, Visitable

A PartRelation can define Accessories to a specific Part. For example a fixing can need an additional cable tie. Accessories can either be mandatory, optional or one out of a group. (see KBLFRM-311)

Java class for PartRelation complex type.

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


 <complexType name="PartRelation">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="RelationType" type="{http://www.prostep.org/ecad-if/2011/vec}PartRelationType"/>
         <element name="AccessoryPart" type="{http://www.w3.org/2001/XMLSchema}IDREFS"/>
       </sequence>
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

  • Constructor Details

    • VecPartRelation

      public VecPartRelation()
  • Method Details

    • getRelationType

      public VecPartRelationType getRelationType()
      Gets the value of the relationType property.

      Specifies the type of the relation.

      Returns:
      possible object is VecPartRelationType
    • setRelationType

      public void setRelationType(VecPartRelationType value)
      Sets the value of the relationType property.
      Parameters:
      value - allowed object is VecPartRelationType
      See Also:
    • getXmlId

      public String getXmlId()
      Gets the value of the xmlId property.
      Specified by:
      getXmlId in interface Identifiable
      Returns:
      possible object is String
    • setXmlId

      public void setXmlId(String value)
      Sets the value of the xmlId property.
      Specified by:
      setXmlId in interface ModifiableIdentifiable
      Parameters:
      value - allowed object is String
    • getAccessoryPart

      public List<VecPartVersion> getAccessoryPart()
      Gets the value of the accessoryPart 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 Jakarta XML Binding object. This is why there is not a set method for the accessoryPart property.

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

          getAccessoryPart().add(newItem);
       

      Objects of the following type(s) are allowed in the list Object

    • getParentGeneralTechnicalPartSpecification

      public VecGeneralTechnicalPartSpecification getParentGeneralTechnicalPartSpecification()
      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 VecGeneralTechnicalPartSpecification otherwise it will be null.
      Warning!: This is a readonly property! It has to be initialized during the unmarshalling process by the 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.
    • accept

      public <R, E extends Throwable> R accept(Visitor<R,E> aVisitor) throws E
      Specified by:
      accept in interface Visitable
      Throws:
      E extends Throwable
    • toString

      public String toString()
      Overrides:
      toString in class Object