com.rapidtransform.part.model
Class QuantifiedInstance
java.lang.Object
com.rapidtransform.core.model.AbstractBaseModel
com.rapidtransform.core.model.VersionControlled
com.rapidtransform.part.model.ItemInstance
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
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.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 |
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 instancequantity
-
getQuantity
public java.lang.Integer getQuantity()
- Returns:
- Returns the quantity.
setQuantity
public void setQuantity(java.lang.Integer quantity)
- Parameters:
quantity
- The quantity to set.