net.sourceforge.cruisecontrol.sourcecontrols.accurev
Class KeywordTimespec

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

public final class KeywordTimespec
extends Timespec

Implements a keyword timespec. It can be either "now" or "highest".

Author:
Nicola Orru'

Constructor Summary
KeywordTimespec(java.lang.String keyword)
           
KeywordTimespec(java.lang.String keyword, int count)
          Creates a new KeywordTimespec given the keyword and the count
 
Method Summary
 java.lang.String format()
          Returns the representation of the keyword as 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
 

Constructor Detail

KeywordTimespec

public KeywordTimespec(java.lang.String keyword,
                       int count)
Creates a new KeywordTimespec given the keyword and the count

Parameters:
keyword -

KeywordTimespec

public KeywordTimespec(java.lang.String keyword)
Method Detail

format

public java.lang.String format()
Returns the representation of the keyword as a string

Specified by:
format in class Timespec
Returns:
the formatted main timespec