|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapidtransform.core.model.AbstractBaseModel
com.rapidtransform.core.model.VersionControlled
com.rapidtransform.part.model.Item
public class Item
An item is either a single object or an assembly of related objects. The item can be classified as either a part, raw material, tool or assebly using the SpecificItemClassification object.
Constructor Summary | |
---|---|
Item()
Default constructor |
|
Item(java.lang.String name)
Constructs an Item with the given name and creates the first version for the list of ItemVersions. |
Method Summary | |
---|---|
void |
addItemVersion(ItemVersion newVersion)
Adds a new ItemVersion to the list of ItemVersions for this Item |
ItemVersion |
createNewVersion()
Creates new version of this Item, adds it to the ItemVersions list, and returns the new ItemVersion object. |
boolean |
equals(java.lang.Object other)
override equals since this object could be used in a Collection |
java.util.Collection<Alias> |
getAliases()
|
java.lang.String |
getDescription()
|
java.util.Collection<Document> |
getDocuments()
|
java.util.Collection<ItemVersion> |
getItemVersions()
|
ItemVersion |
getLatestVersion()
Returns the concept of a latest version out of the list of ItemVersions for this Item. |
java.lang.String |
getName()
|
int |
hashCode()
Override hashCode since this object could be used in a Collection |
void |
setAliases(java.util.Set<Alias> aliases)
|
void |
setDescription(java.lang.String description)
|
void |
setDocuments(java.util.Set<Document> documents)
|
void |
setItemVersions(java.util.Set<ItemVersion> itemVersions)
|
void |
setName(java.lang.String name)
|
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 |
---|
public Item()
public Item(java.lang.String name)
name
- Method Detail |
---|
public java.util.Collection<Alias> getAliases()
public void setAliases(java.util.Set<Alias> aliases)
alias
- The alias to set.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.util.Collection<Document> getDocuments()
public void setDocuments(java.util.Set<Document> documents)
documents
- The documents to set.public java.util.Collection<ItemVersion> getItemVersions()
public void setItemVersions(java.util.Set<ItemVersion> itemVersions)
itemVersions
- The itemVersions to set.public void addItemVersion(ItemVersion newVersion)
newVersion
- public ItemVersion createNewVersion()
public ItemVersion getLatestVersion()
public boolean equals(java.lang.Object other)
equals
in class AbstractBaseModel
public int hashCode()
hashCode
in class AbstractBaseModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |