Blue Mind
Release 1.0

net.bluemind.core.api
Class VersionInfo

java.lang.Object
  extended by net.bluemind.core.api.VersionInfo
All Implemented Interfaces:
java.io.Serializable

public class VersionInfo
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
VersionInfo()
           
VersionInfo(java.lang.String version)
           
VersionInfo(java.lang.String version, java.lang.String displayName)
           
 
Method Summary
 java.lang.String getDisplayName()
           
 java.lang.String getFullString()
           
 java.lang.String getMajor()
           
 java.lang.String getMinor()
           
 java.lang.String getRelease()
           
 boolean isStable()
          Return if the current VersionInfo describe an edge or a stable version.
 boolean isValid()
           
 void setDisplayName(java.lang.String displayName)
           
 void setMajor(java.lang.String major)
           
 void setMinor(java.lang.String minor)
           
 void setRelease(java.lang.String release)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionInfo

public VersionInfo()

VersionInfo

public VersionInfo(java.lang.String version)

VersionInfo

public VersionInfo(java.lang.String version,
                   java.lang.String displayName)
Method Detail

isValid

public boolean isValid()

isStable

public boolean isStable()
Return if the current VersionInfo describe an edge or a stable version. Stable version should have minor part != 0.

Returns:
True if this object describe a stable version, false if it's an edge.

getMajor

public java.lang.String getMajor()
Returns:
the major

setMajor

public void setMajor(java.lang.String major)
Parameters:
major - the major to set

getMinor

public java.lang.String getMinor()
Returns:
the minor

setMinor

public void setMinor(java.lang.String minor)
Parameters:
minor - the minor to set

getRelease

public java.lang.String getRelease()
Returns:
the release

setRelease

public void setRelease(java.lang.String release)
Parameters:
release - the release to set

toString

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

getFullString

public java.lang.String getFullString()

getDisplayName

public java.lang.String getDisplayName()

setDisplayName

public void setDisplayName(java.lang.String displayName)

Blue Mind
Release 1.0