Class VecPartOccurrence

All Implemented Interfaces:
Identifiable, ModifiableIdentifiable, HasCustomProperties<VecCustomProperty>, HasDescription<VecAbstractLocalizedString>, HasIdentification, HasModifiableIdentification, HasRoles<VecRole>, Visitable, Serializable

public class VecPartOccurrence extends VecOccurrenceOrUsage implements Serializable, Visitable

A PartOccurrence is an instance of a component with a specified part number (PartVersion).

Java class for PartOccurrence complex type.

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


 <complexType name="PartOccurrence">
   <complexContent>
     <extension base="{http://www.prostep.org/ecad-if/2011/vec}OccurrenceOrUsage">
       <sequence>
         <element name="IsSecondaryAlternative" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="AlternativeOccurrence" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
         <element name="InstanciatedOccurrence" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
         <element name="Part" type="{http://www.w3.org/2001/XMLSchema}IDREF" minOccurs="0"/>
         <element name="RealizedPartUsage" type="{http://www.w3.org/2001/XMLSchema}IDREF" minOccurs="0"/>
         <element name="ReferenceElement" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

    • isSecondaryAlternative

      protected Boolean isSecondaryAlternative

      If a PartUsage is realized by more than one PartOccurrence it is possible to specify which one is the preferred. (see KBLFRM-264)

    • alternativeOccurrence

      protected List<VecPartOccurrence> alternativeOccurrence

      References the PartOcurrences that are an alternative for this PartOccurrence.

    • instanciatedOccurrence

      protected List<VecPartOccurrence> instanciatedOccurrence

      References the PartOccurrence which is instantiated by the PartOccurrence. This reference is for example needed in the case of usage of assemblies.

    • part

      protected VecPartVersion part

      References the PartVersion that is instantiated by this PartOccurrence.

    • realizedPartUsage

      protected VecPartUsage realizedPartUsage
    • referenceElement

      protected List<VecPartOccurrence> referenceElement

      References the PartOcurrence for which this PartOccurrence is an accessory.

  • Constructor Details

    • VecPartOccurrence

      public VecPartOccurrence()
  • Method Details

    • isIsSecondaryAlternative

      public Boolean isIsSecondaryAlternative()
      Gets the value of the isSecondaryAlternative property.

      If a PartUsage is realized by more than one PartOccurrence it is possible to specify which one is the preferred. (see KBLFRM-264)

      Returns:
      possible object is Boolean
    • setIsSecondaryAlternative

      public void setIsSecondaryAlternative(Boolean value)
      Sets the value of the isSecondaryAlternative property.
      Parameters:
      value - allowed object is Boolean
      See Also:
    • getPart

      public VecPartVersion getPart()
      Gets the value of the part property.

      References the PartVersion that is instantiated by this PartOccurrence.

      Returns:
      possible object is Object
    • setPart

      public void setPart(VecPartVersion value)
      Sets the value of the part property.
      Parameters:
      value - allowed object is Object
      See Also:
    • getRealizedPartUsage

      public VecPartUsage getRealizedPartUsage()
      Gets the value of the realizedPartUsage property.
      Returns:
      possible object is Object
    • setRealizedPartUsage

      public void setRealizedPartUsage(VecPartUsage value)
      Sets the value of the realizedPartUsage property.
      Parameters:
      value - allowed object is Object
    • getRefModuleList

      public Set<VecModuleList> getRefModuleList()
      Gets a Set of all VecModuleList 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 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.
    • getAlternativeOccurrence

      public List<VecPartOccurrence> getAlternativeOccurrence()
      Gets the value of the alternativeOccurrence 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 alternativeOccurrence property.

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

          getAlternativeOccurrence().add(newItem);
       

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

      References the PartOcurrences that are an alternative for this PartOccurrence.

    • getRefPartOccurrence

      public Set<VecPartOccurrence> getRefPartOccurrence()
      Gets a Set of all VecPartOccurrence 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 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.
    • getInstanciatedOccurrence

      public List<VecPartOccurrence> getInstanciatedOccurrence()
      Gets the value of the instanciatedOccurrence 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 instanciatedOccurrence property.

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

          getInstanciatedOccurrence().add(newItem);
       

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

      References the PartOccurrence which is instantiated by the PartOccurrence. This reference is for example needed in the case of usage of assemblies.

    • getReferenceElement

      public List<VecPartOccurrence> getReferenceElement()
      Gets the value of the referenceElement 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 referenceElement property.

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

          getReferenceElement().add(newItem);
       

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

      References the PartOcurrence for which this PartOccurrence is an accessory.

    • getRefPartStructureSpecification

      public Set<VecPartStructureSpecification> getRefPartStructureSpecification()
      Gets a Set of all VecPartStructureSpecification 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 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.
    • getParentCompositionSpecification

      public VecCompositionSpecification getParentCompositionSpecification()
      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 VecCompositionSpecification 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