net.sourceforge.cruisecontrol.sourcecontrols.accurev
Class TransactionNumberTimespec

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.sourcecontrols.accurev.Timespec
      extended bynet.sourceforge.cruisecontrol.sourcecontrols.accurev.TransactionNumberTimespec

public final class TransactionNumberTimespec
extends Timespec

Implements a "numeric" time-spec (n or n.m) format.

Author:
Nicola Orru'

Field Summary
static KeywordTimespec HIGHEST
          Convenience constant containing the KewordTimespec "highest"
 
Constructor Summary
TransactionNumberTimespec(int transaction)
          Creates a new TransactionNumberTimespec with no count (n form)
TransactionNumberTimespec(int transaction, int count)
          Creates a new TransactionNumberTimespec with the given count (n.m form)
 
Method Summary
 java.lang.String format()
          formats the transaction (main) part onto a String
 
Methods inherited from class net.sourceforge.cruisecontrol.sourcecontrols.accurev.Timespec
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HIGHEST

public static final KeywordTimespec HIGHEST
Convenience constant containing the KewordTimespec "highest"

Constructor Detail

TransactionNumberTimespec

public TransactionNumberTimespec(int transaction)
Creates a new TransactionNumberTimespec with no count (n form)

Parameters:
transaction - the transaction number

TransactionNumberTimespec

public TransactionNumberTimespec(int transaction,
                                 int count)
Creates a new TransactionNumberTimespec with the given count (n.m form)

Parameters:
transaction - the transaction number
count - the count
Method Detail

format

public java.lang.String format()
formats the transaction (main) part onto a String

Specified by:
format in class Timespec
Returns:
the transaction number as a string