Class VecCompatibilityStatement
- All Implemented Interfaces:
Identifiable,ModifiableIdentifiable,HasCustomProperties<VecCustomProperty>,Visitable,Serializable
A CompatibilityStatement is used to express compatibility between parts. This can be either compatibility for contacting (terminals, wires, seals, a.s.o.) or for plugging (connector housings, slots, a.s.o.).
A CompatibilityStatement can be used to explicitly express compatibility (hasCompatibility = true) or to express incompatibility / negation (hasCompatibility = false).
The CompatibilityStatement is stated by referencing the corresponding specifications. In the concrete implementation this mechanisms allows three different variants to express compatibility.
In the first variant the CompatibilityStatement references specifications that are not directly related to a concrete PartVersion (association in the super-class PartOrUsageRelatedSpecification). In this case the attributes of the specification represent a search pattern for searching compatible parts in a component library.
In the second variant the CompatibilityStatement references the same specifications that are used to specify the component attributes of a PartVersion. This would be equivalent to an explicit mapping compatible PartVersions.
In the third variant the CompatibilityStatement references specifications that do not have any attributes at all. These specifications are normally defined in the same document that defines the CompatibilitySpecification. Such a specification can group multiple PartVersion by referencing them. This is possible, because the VEC makes no restriction on the number of specifications that can be defined for single PartVersion.
Java class for CompatibilityStatement complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CompatibilityStatement">
<complexContent>
<extension base="{http://www.prostep.org/ecad-if/2011/vec}ExtendableElement">
<sequence>
<element name="HasCompatibility" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
<element name="Cavity" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="CavityPlugSpecification" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="CavitySealSpecification" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="CavitySpecification" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="ConnectorHousingSpecification" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="Slot" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="TerminalSpecification" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="WireSpecification" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionReferences explicit cavities for which the compatibility statement is stated.protected List<VecCavityPlugSpecification>References the CavityPlugSpecifications for which the compatibility statement is stated.protected List<VecCavitySealSpecification>References the CavitySealSpecifications for which the compatibility statement is stated.protected List<VecCavitySpecification>References the CavitySpecifications for which the compatibility statement is stated.protected List<VecConnectorHousingSpecification>References the ConnectorHousingSpecifications for which the compatibility statement is stated.protected booleanIf true the CompatibilityStatement states compatibility, otherwise incompatibility.protected List<VecAbstractSlot>References explicit Slots for which the compatibility statement is stated.protected List<VecTerminalSpecification>References the TerminalSpecifications for which the compatibility statement is stated.protected List<VecWireSpecification>References the WireSpecifications for which the compatibility statement is stated.Fields inherited from class com.foursoft.harness.vec.v113.VecExtendableElement
customProperties, xmlId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,E extends Throwable>
RGets the value of the cavity property.Gets the value of the cavityPlugSpecification property.Gets the value of the cavitySealSpecification property.Gets the value of the cavitySpecification property.Gets the value of the connectorHousingSpecification property.Gets a reference to the parent of this object in the XML DOM Tree.getSlot()Gets the value of the slot property.Gets the value of the terminalSpecification property.Gets the value of the wireSpecification property.booleanGets the value of the hasCompatibility property.voidsetHasCompatibility(boolean value) Sets the value of the hasCompatibility property.Methods inherited from class com.foursoft.harness.vec.v113.VecExtendableElement
getCustomProperties, getRefExternalMapping, getXmlId, setXmlId, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.foursoft.harness.vec.common.HasCustomProperties
getCustomPropertiesWithType, getCustomProperty
-
Field Details
-
hasCompatibility
protected boolean hasCompatibilityIf true the CompatibilityStatement states compatibility, otherwise incompatibility.
-
cavity
References explicit cavities for which the compatibility statement is stated.
-
cavityPlugSpecification
References the CavityPlugSpecifications for which the compatibility statement is stated.
-
cavitySealSpecification
References the CavitySealSpecifications for which the compatibility statement is stated.
-
cavitySpecification
References the CavitySpecifications for which the compatibility statement is stated.
-
connectorHousingSpecification
References the ConnectorHousingSpecifications for which the compatibility statement is stated.
-
slot
References explicit Slots for which the compatibility statement is stated.
-
terminalSpecification
References the TerminalSpecifications for which the compatibility statement is stated.
-
wireSpecification
References the WireSpecifications for which the compatibility statement is stated.
-
-
Constructor Details
-
VecCompatibilityStatement
public VecCompatibilityStatement()
-
-
Method Details
-
isHasCompatibility
public boolean isHasCompatibility()Gets the value of the hasCompatibility property.If true the CompatibilityStatement states compatibility, otherwise incompatibility.
-
setHasCompatibility
public void setHasCompatibility(boolean value) Sets the value of the hasCompatibility property.- See Also:
-
getCavity
Gets the value of the cavity 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
setmethod for the cavity property.For example, to add a new item, do as follows:
getCavity().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences explicit cavities for which the compatibility statement is stated.
-
getCavityPlugSpecification
Gets the value of the cavityPlugSpecification 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
setmethod for the cavityPlugSpecification property.For example, to add a new item, do as follows:
getCavityPlugSpecification().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences the CavityPlugSpecifications for which the compatibility statement is stated.
-
getCavitySealSpecification
Gets the value of the cavitySealSpecification 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
setmethod for the cavitySealSpecification property.For example, to add a new item, do as follows:
getCavitySealSpecification().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences the CavitySealSpecifications for which the compatibility statement is stated.
-
getCavitySpecification
Gets the value of the cavitySpecification 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
setmethod for the cavitySpecification property.For example, to add a new item, do as follows:
getCavitySpecification().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences the CavitySpecifications for which the compatibility statement is stated.
-
getConnectorHousingSpecification
Gets the value of the connectorHousingSpecification 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
setmethod for the connectorHousingSpecification property.For example, to add a new item, do as follows:
getConnectorHousingSpecification().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences the ConnectorHousingSpecifications for which the compatibility statement is stated.
-
getSlot
Gets the value of the slot 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
setmethod for the slot property.For example, to add a new item, do as follows:
getSlot().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences explicit Slots for which the compatibility statement is stated.
-
getTerminalSpecification
Gets the value of the terminalSpecification 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
setmethod for the terminalSpecification property.For example, to add a new item, do as follows:
getTerminalSpecification().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences the TerminalSpecifications for which the compatibility statement is stated.
-
getWireSpecification
Gets the value of the wireSpecification 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
setmethod for the wireSpecification property.For example, to add a new item, do as follows:
getWireSpecification().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences the WireSpecifications for which the compatibility statement is stated.
-
getParentCompatibilitySpecification
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 aVecCompatibilitySpecificationotherwise it will be null.
Warning!: This is a readonly property! It has to be initialized during the unmarshalling process by theExtendedUnmarshaller.
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
-