org.jwall
Class Version

java.lang.Object
  extended by org.jwall.Version

public class Version
extends Object

This is a simple class for providing version information about this package. The version information is obtained from the /org.jwall.web.audit.info file.

Author:
Christian Bockermann <chris@jwall.org>

Constructor Summary
Version(String ver, String rev, Date releaseDate)
           
Version(String groupId, String artifactId, String ver, String rev, String build, Date releaseDate)
           
 
Method Summary
static String extractRevision(String revision)
          This method extracts the revision number from the given string.
 String getBuild()
           
 Date getReleased()
           
 String getRevision()
           
 String getVersion()
           
static Version getVersion(String groupId, String artifactId)
           
static void main(String[] args)
           
 void setReleased(Date released)
           
 void setRevision(String revision)
           
 void setVersion(String version)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Version

public Version(String ver,
               String rev,
               Date releaseDate)

Version

public Version(String groupId,
               String artifactId,
               String ver,
               String rev,
               String build,
               Date releaseDate)
Method Detail

getVersion

public String getVersion()
Returns:
the version

setVersion

public void setVersion(String version)
Parameters:
version - the version to set

getRevision

public String getRevision()
Returns:
the revision

setRevision

public void setRevision(String revision)
Parameters:
revision - the revision to set

getReleased

public Date getReleased()
Returns:
the released

setReleased

public void setReleased(Date released)
Parameters:
released - the released to set

getVersion

public static final Version getVersion(String groupId,
                                       String artifactId)

toString

public String toString()
Overrides:
toString in class Object

extractRevision

public static String extractRevision(String revision)
This method extracts the revision number from the given string. The input string is expected to simply contain the subversion $Revision...$ format.

Parameters:
revision -
Returns:

getBuild

public String getBuild()

main

public static void main(String[] args)


Copyright © 2012 jwall.org. All Rights Reserved.