com.rapidtransform.part.model
Class ItemVersion

java.lang.Object
  extended by com.rapidtransform.core.model.AbstractBaseModel
      extended by com.rapidtransform.core.model.VersionControlled
          extended by com.rapidtransform.part.model.ItemVersion
All Implemented Interfaces:
Classified, Model, Versioned, Documented, Approvable, OrganizationalData, OrganizationElement, Effective, Specified, java.io.Serializable

public class ItemVersion
extends VersionControlled
implements Classified, Approvable, OrganizationElement, OrganizationalData, Effective, Specified, Documented

An ItemVersion is a specific version of an Item. It contains all the data that comprises the physically makeable item for each application context.

Author:
Steve Werner
See Also:
Serialized Form

Constructor Summary
ItemVersion()
           
ItemVersion(java.lang.Integer versionNumber)
          Creates a version with the specified versionId.
 
Method Summary
 void addItemView(ItemView itemView)
           
 boolean equals(java.lang.Object other)
           
 java.util.Collection<Alias> getAliases()
           
 java.lang.String getDescription()
           
 java.util.Set<Relation> getDocuments()
           
 Item getItem()
           
 java.util.Collection<ItemView> getItemViews()
           
 ProductDesign getProductDesign()
           
 java.util.Set<Relation> getSpecs()
           
 java.lang.Integer getVersionId()
           
 int hashCode()
           
 void setAliases(java.util.Set<Alias> aliases)
           
 void setDescription(java.lang.String description)
           
 void setDocuments(java.util.Set<Relation> documents)
           
 void setItem(Item item)
           
 void setItemViews(java.util.Set<ItemView> itemViews)
           
 void setProductDesign(ProductDesign productDesign)
           
 void setSpecs(java.util.Set<Relation> specs)
           
 void setVersionId(java.lang.Integer versionNumber)
           
 
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
generateUuid, getId, getMetaTypeName, getPropertyHolder, getUuid, setId, setMetaTypeName, setPropertyHolder, setUuid
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemVersion

public ItemVersion()

ItemVersion

public ItemVersion(java.lang.Integer versionNumber)
Creates a version with the specified versionId.

Parameters:
versionId -
Method Detail

getAliases

public java.util.Collection<Alias> getAliases()
Returns:
Returns the alias.

setAliases

public void setAliases(java.util.Set<Alias> aliases)
Parameters:
alias - The alias to set.

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getItemViews

public java.util.Collection<ItemView> getItemViews()
Returns:
Returns the itemViews.

setItemViews

public void setItemViews(java.util.Set<ItemView> itemViews)
Parameters:
itemViews - The itemViews to set.

addItemView

public void addItemView(ItemView itemView)

getProductDesign

public ProductDesign getProductDesign()
Returns:
Returns the productDesign.

setProductDesign

public void setProductDesign(ProductDesign productDesign)
Parameters:
productDesign - The productDesign to set.

getItem

public Item getItem()
Returns:
Returns the item.

setItem

public void setItem(Item item)
Parameters:
item - The item to set.

getVersionId

public java.lang.Integer getVersionId()
Returns:
Returns the versionId.

setVersionId

public void setVersionId(java.lang.Integer versionNumber)
Parameters:
versionId - The versionId to set.

getDocuments

public java.util.Set<Relation> getDocuments()
Returns:
Returns the documents.

setDocuments

public void setDocuments(java.util.Set<Relation> documents)
Parameters:
documents - The documents to set.

getSpecs

public java.util.Set<Relation> getSpecs()
Returns:
Returns the specs.

setSpecs

public void setSpecs(java.util.Set<Relation> specs)
Parameters:
specs - The specs to set.

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class AbstractBaseModel

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractBaseModel