|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.UCL.satin.impl.container.ComponentVersions
This class is a collection of different versions of a component. It assumes that components have a a VER attribute that stores the version as an Integer object
| Field Summary | |
private GenericAttribute |
id
|
private java.util.TreeMap |
versions
|
| Constructor Summary | |
ComponentVersions(Component c)
Creates a new list of versions for this particular component |
|
| Method Summary | |
void |
addVersion(Component c)
Adds a different version of this component to the list |
boolean |
containsVersion(java.lang.Object version)
Checks whether the version given exists in this datastructure |
Component |
getLatestVersion()
Returns the latest version of this component available |
java.util.Enumeration |
getVersions()
Returns the list of all versions available for this component |
void |
removeVersion(Component c)
Removes a version of this component from the list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.TreeMap versions
private GenericAttribute id
| Constructor Detail |
public ComponentVersions(Component c)
| Method Detail |
public void addVersion(Component c)
c - The different version of the component.public boolean containsVersion(java.lang.Object version)
version -
public void removeVersion(Component c)
c - The version of the component to removepublic java.util.Enumeration getVersions()
public Component getLatestVersion()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||