Class VecPartUsage

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

public class VecPartUsage extends VecOccurrenceOrUsage implements Serializable, Visitable

PartUsages shall be used for the specification of the elements on an electrical system wiring plan and for the specification of the elements on a pure geometry description. PartUsages shall more than ever be used in cases where it is necessary to describe a certain instance of a part or part group, possibly together with certain technical properties, but where it is at the same time yet not possible to define a concrete part number.

Java class for PartUsage complex type.

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


 <complexType name="PartUsage">
   <complexContent>
     <extension base="{http://www.prostep.org/ecad-if/2011/vec}OccurrenceOrUsage">
       <sequence>
         <element name="PrimaryPartUsageType" type="{http://www.prostep.org/ecad-if/2011/vec}PrimaryPartType"/>
         <element name="PartOrUsageRelatedSpecification" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
         <element name="PartSubstitution" type="{http://www.w3.org/2001/XMLSchema}IDREF" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
See Also:
  • Field Details

    • primaryPartUsageType

      protected VecPrimaryPartType primaryPartUsageType

      The primary type of the PartUsage defines the type of the described part (e.g. ConnectorHousing, Fixing, etc.) Since the VEC supports dual use parts (e.g. Fixing & WireProtection) there is no direct connection between the primaryPartUsageType and the allowed specifications for the description of a PartUsage.

    • partOrUsageRelatedSpecification

      protected List<VecPartOrUsageRelatedSpecification> partOrUsageRelatedSpecification
    • partSubstitution

      protected VecPartSubstitutionSpecification partSubstitution
  • Constructor Details

    • VecPartUsage

      public VecPartUsage()
  • Method Details

    • getPrimaryPartUsageType

      public VecPrimaryPartType getPrimaryPartUsageType()
      Gets the value of the primaryPartUsageType property.

      The primary type of the PartUsage defines the type of the described part (e.g. ConnectorHousing, Fixing, etc.) Since the VEC supports dual use parts (e.g. Fixing & WireProtection) there is no direct connection between the primaryPartUsageType and the allowed specifications for the description of a PartUsage.

      Returns:
      possible object is VecPrimaryPartType
    • setPrimaryPartUsageType

      public void setPrimaryPartUsageType(VecPrimaryPartType value)
      Sets the value of the primaryPartUsageType property.
      Parameters:
      value - allowed object is VecPrimaryPartType
      See Also:
    • getPartSubstitution

      public VecPartSubstitutionSpecification getPartSubstitution()
      Gets the value of the partSubstitution property.
      Returns:
      possible object is Object
    • setPartSubstitution

      public void setPartSubstitution(VecPartSubstitutionSpecification value)
      Sets the value of the partSubstitution property.
      Parameters:
      value - allowed object is Object
    • 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.
    • getPartOrUsageRelatedSpecification

      public List<VecPartOrUsageRelatedSpecification> getPartOrUsageRelatedSpecification()
      Gets the value of the partOrUsageRelatedSpecification 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 partOrUsageRelatedSpecification property.

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

          getPartOrUsageRelatedSpecification().add(newItem);
       

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

    • getParentPartUsageSpecification

      public VecPartUsageSpecification getParentPartUsageSpecification()
      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 VecPartUsageSpecification 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