org.jtheque.core.managers.update.versions
Class VersionsFile

java.lang.Object
  extended by org.jtheque.core.managers.update.versions.VersionsFile

public final class VersionsFile
extends java.lang.Object

An online version's file.

Author:
Baptiste Wicht

Constructor Summary
VersionsFile()
           
 
Method Summary
 InstallVersion getInstallVersion()
          Return the install version of the file.
 OnlineVersion getMostRecentVersion()
          Return the most recent version of the VersionsFile.
 java.util.List<OnlineVersion> getVersions()
          Return all the versions contained in the file.
 void setInstallVersion(InstallVersion installVersion)
          Set the install version.
 void setVersions(java.util.Collection<OnlineVersion> onlineVersions)
          Set the versions of the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionsFile

public VersionsFile()
Method Detail

getVersions

public java.util.List<OnlineVersion> getVersions()
Return all the versions contained in the file.

Returns:
A list containing all the versions of the file.

setVersions

public void setVersions(java.util.Collection<OnlineVersion> onlineVersions)
Set the versions of the file.

Parameters:
onlineVersions - A list containing all the versions of the file.

getInstallVersion

public InstallVersion getInstallVersion()
Return the install version of the file.

Returns:
The install version.

setInstallVersion

public void setInstallVersion(InstallVersion installVersion)
Set the install version.

Parameters:
installVersion - The install version.

getMostRecentVersion

public OnlineVersion getMostRecentVersion()
Return the most recent version of the VersionsFile.

Returns:
The most recent version.
Throws:
java.util.NoSuchElementException - If the version's file contains no version.


Copyright © 2009 JTheque. All Rights Reserved.