- All Implemented Interfaces:
Identifiable,ModifiableIdentifiable,HasCustomProperties<VecCustomProperty>,Visitable,Serializable
Specifies a constraint of the possible usages for PartVersion or PartUsages. UsageContraints are of part master data information. UsageConstraints specify general restrictions for the application of a PartVersion or PartUsage (e.g. a certain period of time in which the part is allowed to be used). (see KBLFRM-229)
Java class for UsageConstraint complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="UsageConstraint">
<complexContent>
<extension base="{http://www.prostep.org/ecad-if/2011/vec}ExtendableElement">
<sequence>
<element name="Type" type="{http://www.prostep.org/ecad-if/2011/vec}UsageConstraintType"/>
<element name="FromDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="ToDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
<element name="FromSerialNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="ToSerialNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="ProjectPhase" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
<element name="Project" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
<element name="UsageNode" type="{http://www.w3.org/2001/XMLSchema}IDREFS" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XMLGregorianCalendarSpecifies the lower bound of the time period to which the usage constraint applies.protected StringSpecifies the lower bound of a serial number range to which the usage constraint applies.protected List<VecProject>References theProjectsto which theUsageConstraintapplies.Specifies the project phases to which the usage constraint applies.protected XMLGregorianCalendarSpecifies the upper bound of the time period to which the usage constraint applies.protected StringSpecifies the upper bound of a serial number range to which the usage constraint applies.protected VecUsageConstraintTypeDefines if the usage constraint is positive (allowance) or negative (denial).protected List<VecUsageNode>UsageNode UsageConstraint PartVersionFields 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 fromDate property.Gets the value of the fromSerialNumber property.Gets a reference to the parent of this object in the XML DOM Tree.Gets the value of the project property.Gets the value of the projectPhases property.Gets the value of the toDate property.Gets the value of the toSerialNumber property.getType()Gets the value of the type property.Gets the value of the usageNode property.voidsetFromDate(XMLGregorianCalendar value) Sets the value of the fromDate property.voidsetFromSerialNumber(String value) Sets the value of the fromSerialNumber property.voidsetToDate(XMLGregorianCalendar value) Sets the value of the toDate property.voidsetToSerialNumber(String value) Sets the value of the toSerialNumber property.voidsetType(VecUsageConstraintType value) Sets the value of the type 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
-
type
Defines if the usage constraint is positive (allowance) or negative (denial).
-
fromDate
Specifies the lower bound of the time period to which the usage constraint applies.
-
toDate
Specifies the upper bound of the time period to which the usage constraint applies.
-
fromSerialNumber
Specifies the lower bound of a serial number range to which the usage constraint applies.
-
toSerialNumber
Specifies the upper bound of a serial number range to which the usage constraint applies.
-
projectPhases
Specifies the project phases to which the usage constraint applies.
-
project
References theProjectsto which theUsageConstraintapplies. This means the described PartVersion is allowed / denied in the referenced UsageConstraint.
-
usageNode
UsageNode UsageConstraint PartVersion
-
-
Constructor Details
-
VecUsageConstraint
public VecUsageConstraint()
-
-
Method Details
-
getType
Gets the value of the type property.Defines if the usage constraint is positive (allowance) or negative (denial).
- Returns:
- possible object is
VecUsageConstraintType
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isVecUsageConstraintType- See Also:
-
getFromDate
Gets the value of the fromDate property.Specifies the lower bound of the time period to which the usage constraint applies.
- Returns:
- possible object is
XMLGregorianCalendar
-
setFromDate
Sets the value of the fromDate property.- Parameters:
value- allowed object isXMLGregorianCalendar- See Also:
-
getToDate
Gets the value of the toDate property.Specifies the upper bound of the time period to which the usage constraint applies.
- Returns:
- possible object is
XMLGregorianCalendar
-
setToDate
Sets the value of the toDate property.- Parameters:
value- allowed object isXMLGregorianCalendar- See Also:
-
getFromSerialNumber
Gets the value of the fromSerialNumber property.Specifies the lower bound of a serial number range to which the usage constraint applies.
- Returns:
- possible object is
String
-
setFromSerialNumber
Sets the value of the fromSerialNumber property.- Parameters:
value- allowed object isString- See Also:
-
getToSerialNumber
Gets the value of the toSerialNumber property.Specifies the upper bound of a serial number range to which the usage constraint applies.
- Returns:
- possible object is
String
-
setToSerialNumber
Sets the value of the toSerialNumber property.- Parameters:
value- allowed object isString- See Also:
-
getProjectPhases
Gets the value of the projectPhases 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 projectPhases property.For example, to add a new item, do as follows:
getProjectPhases().add(newItem);Objects of the following type(s) are allowed in the list
StringSpecifies the project phases to which the usage constraint applies.
- Returns:
- The value of the projectPhases property.
-
getProject
Gets the value of the project 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 project property.For example, to add a new item, do as follows:
getProject().add(newItem);Objects of the following type(s) are allowed in the list
ObjectReferences theProjectsto which theUsageConstraintapplies. This means the described PartVersion is allowed / denied in the referenced UsageConstraint.
-
getUsageNode
Gets the value of the usageNode 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 usageNode property.For example, to add a new item, do as follows:
getUsageNode().add(newItem);Objects of the following type(s) are allowed in the list
ObjectUsageNode UsageConstraint PartVersion
-
getParentUsageConstraintSpecification
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 aVecUsageConstraintSpecificationotherwise 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
-