Class VecUsageConstraint

java.lang.Object
com.foursoft.harness.vec.v113.VecExtendableElement
com.foursoft.harness.vec.v113.VecUsageConstraint
All Implemented Interfaces:
Identifiable, ModifiableIdentifiable, HasCustomProperties<VecCustomProperty>, Visitable, Serializable

public class VecUsageConstraint extends VecExtendableElement implements Serializable, Visitable

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 Details

    • type

      protected VecUsageConstraintType type

      Defines if the usage constraint is positive (allowance) or negative (denial).

    • fromDate

      protected XMLGregorianCalendar fromDate

      Specifies the lower bound of the time period to which the usage constraint applies.

    • toDate

      protected XMLGregorianCalendar toDate

      Specifies the upper bound of the time period to which the usage constraint applies.

    • fromSerialNumber

      protected String fromSerialNumber

      Specifies the lower bound of a serial number range to which the usage constraint applies.

    • toSerialNumber

      protected String toSerialNumber

      Specifies the upper bound of a serial number range to which the usage constraint applies.

    • projectPhases

      protected List<String> projectPhases

      Specifies the project phases to which the usage constraint applies.

    • project

      protected List<VecProject> project

      References theProjectsto which theUsageConstraintapplies. This means the described PartVersion is allowed / denied in the referenced UsageConstraint.

    • usageNode

      protected List<VecUsageNode> usageNode
      UsageNode UsageConstraint PartVersion
  • Constructor Details

    • VecUsageConstraint

      public VecUsageConstraint()
  • Method Details

    • getType

      public VecUsageConstraintType 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

      public void setType(VecUsageConstraintType value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is VecUsageConstraintType
      See Also:
    • getFromDate

      public XMLGregorianCalendar 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

      public void setFromDate(XMLGregorianCalendar value)
      Sets the value of the fromDate property.
      Parameters:
      value - allowed object is XMLGregorianCalendar
      See Also:
    • getToDate

      public XMLGregorianCalendar 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

      public void setToDate(XMLGregorianCalendar value)
      Sets the value of the toDate property.
      Parameters:
      value - allowed object is XMLGregorianCalendar
      See Also:
    • getFromSerialNumber

      public String 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

      public void setFromSerialNumber(String value)
      Sets the value of the fromSerialNumber property.
      Parameters:
      value - allowed object is String
      See Also:
    • getToSerialNumber

      public String 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

      public void setToSerialNumber(String value)
      Sets the value of the toSerialNumber property.
      Parameters:
      value - allowed object is String
      See Also:
    • getProjectPhases

      public List<String> 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 set method 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 String

      Specifies the project phases to which the usage constraint applies.

      Returns:
      The value of the projectPhases property.
    • getProject

      public List<VecProject> 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 set method 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 Object

      References theProjectsto which theUsageConstraintapplies. This means the described PartVersion is allowed / denied in the referenced UsageConstraint.

    • getUsageNode

      public List<VecUsageNode> 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 set method 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 Object

      UsageNode UsageConstraint PartVersion

    • getParentUsageConstraintSpecification

      public VecUsageConstraintSpecification 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 a VecUsageConstraintSpecification 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