com.rapidtransform.part.model
Class QuantifiedInstance

java.lang.Object
  extended by com.rapidtransform.core.model.AbstractBaseModel
      extended by com.rapidtransform.core.model.VersionControlled
          extended by com.rapidtransform.part.model.ItemInstance
              extended by com.rapidtransform.part.model.QuantifiedInstance
All Implemented Interfaces:
Classified, Model, Versioned, Approvable, OrganizationalData, OrganizationElement, ItemInformation, ProductConstituent, Effective, java.io.Serializable

public class QuantifiedInstance
extends ItemInstance

A QuantifiedInstance is an object with a specified number quantity for this item in the product structure. The QuantifiedInstance is defined either as an ItemView or a Product.

Author:
Steve Werner
See Also:
Serialized Form

Constructor Summary
QuantifiedInstance()
          default constructor
QuantifiedInstance(ItemView forView, java.lang.Integer quantity)
          Construct a QuantifiedInstance with the given quantity and ItemVersion.
 
Method Summary
 java.lang.Integer getQuantity()
           
 void setQuantity(java.lang.Integer quantity)
           
 
Methods inherited from class com.rapidtransform.part.model.ItemInstance
getAliases, getConfigs, getDescription, getDocuments, getItemView, getManufacturingConfigs, getRelations, setAliases, setConfigs, setDescription, setDocuments, setItemView, setManufacturingConfig, setManufacturingConfigs, setRelations
 
Methods inherited from class com.rapidtransform.core.model.VersionControlled
getCreatedBy, getCreatedDate, getIteration, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setIteration, setModifiedBy, setModifiedDate
 
Methods inherited from class com.rapidtransform.core.model.AbstractBaseModel
equals, generateUuid, getId, getMetaTypeName, getPropertyHolder, getUuid, hashCode, setId, setMetaTypeName, setPropertyHolder, setUuid
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuantifiedInstance

public QuantifiedInstance()
default constructor


QuantifiedInstance

public QuantifiedInstance(ItemView forView,
                          java.lang.Integer quantity)
Construct a QuantifiedInstance with the given quantity and ItemVersion.

Parameters:
forView - The parent ItemView of this instance
quantity -
Method Detail

getQuantity

public java.lang.Integer getQuantity()
Returns:
Returns the quantity.

setQuantity

public void setQuantity(java.lang.Integer quantity)
Parameters:
quantity - The quantity to set.