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

java.lang.Object
  extended by org.jtheque.core.managers.update.versions.OnlineVersion
All Implemented Interfaces:
java.lang.Comparable<OnlineVersion>
Direct Known Subclasses:
InstallVersion

public class OnlineVersion
extends java.lang.Object
implements java.lang.Comparable<OnlineVersion>

An online version of JTheque.

Author:
Baptiste Wicht

Constructor Summary
OnlineVersion()
           
 
Method Summary
 int compareTo(OnlineVersion o)
           
 boolean equals(java.lang.Object o)
           
 java.util.Collection<UpdateAction> getActions()
          Return the actions to be executed when updating to this version.
 org.jtheque.utils.bean.Version getCoreVersion()
          Return the necessary version of the core.
 java.util.Collection<OnlinePatch> getPatchs()
          Return the patchs of the OnlineVersion.
 java.lang.String getStringVersion()
          Return the version transformed to string.
 org.jtheque.utils.bean.Version getVersion()
          Return the JTheque's version.
 int hashCode()
           
 void setActions(java.util.Collection<UpdateAction> actions)
          Set the actions to be executed when updating to this version.
 void setCoreVersion(org.jtheque.utils.bean.Version coreVersion)
          Set the version of the core for this version.
 void setPatchs(java.util.Collection<OnlinePatch> patchs)
          Set the versions of the OnlineVersion.
 void setVersion(org.jtheque.utils.bean.Version version)
          Set the JTheque's version.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnlineVersion

public OnlineVersion()
Method Detail

getVersion

public final org.jtheque.utils.bean.Version getVersion()
Return the JTheque's version.

Returns:
The JTheque's version.

setVersion

public final void setVersion(org.jtheque.utils.bean.Version version)
Set the JTheque's version.

Parameters:
version - The JTheque's version.

getActions

public final java.util.Collection<UpdateAction> getActions()
Return the actions to be executed when updating to this version.

Returns:
A list containing all the actions.

setActions

public final void setActions(java.util.Collection<UpdateAction> actions)
Set the actions to be executed when updating to this version.

Parameters:
actions - A list containing all the actions.

getStringVersion

public final java.lang.String getStringVersion()
Return the version transformed to string.

Returns:
The string version.

getPatchs

public final java.util.Collection<OnlinePatch> getPatchs()
Return the patchs of the OnlineVersion.

Returns:
A List containing all the patchs of the version.

setPatchs

public final void setPatchs(java.util.Collection<OnlinePatch> patchs)
Set the versions of the OnlineVersion.

Parameters:
patchs - A List containing all the patchs of the version.

compareTo

public final int compareTo(OnlineVersion o)
Specified by:
compareTo in interface java.lang.Comparable<OnlineVersion>

getCoreVersion

public final org.jtheque.utils.bean.Version getCoreVersion()
Return the necessary version of the core.

Returns:
The needed core version.

setCoreVersion

public final void setCoreVersion(org.jtheque.utils.bean.Version coreVersion)
Set the version of the core for this version.

Parameters:
coreVersion - The needed version of the core for this module.

equals

public final boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 JTheque. All Rights Reserved.