org.hudsonci.utils.common
Class VersionSupport

java.lang.Object
  extended by org.hudsonci.utils.common.VersionSupport
Direct Known Subclasses:
Version

public class VersionSupport
extends Object

Support for exposing version details.

Since:
2.1.0
Author:
Jason Dillon

Field Summary
static String RESOURCE_NAME
           
static String SEQUENCE
           
static String TIMESTAMP
           
static String UNKNOWN
           
static String VERSION
           
 
Constructor Summary
protected VersionSupport()
           
 
Method Summary
 String getCanonicalVersion()
           
 String getRawVersion()
           
 String getSequence()
           
 String getTimestamp()
           
 String getVersion()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE_NAME

public static final String RESOURCE_NAME
See Also:
Constant Field Values

UNKNOWN

public static final String UNKNOWN
See Also:
Constant Field Values

VERSION

public static final String VERSION
See Also:
Constant Field Values

TIMESTAMP

public static final String TIMESTAMP
See Also:
Constant Field Values

SEQUENCE

public static final String SEQUENCE
See Also:
Constant Field Values
Constructor Detail

VersionSupport

protected VersionSupport()
Method Detail

getVersion

public String getVersion()

getTimestamp

public String getTimestamp()

getSequence

public String getSequence()

getCanonicalVersion

public String getCanonicalVersion()
Returns:
a formatted version number in the simplest and most significant form

getRawVersion

public String getRawVersion()
Returns:
a formatted version number containing the raw information

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2012 Hudson. All Rights Reserved.