nl.toolforge.karma.core
Class Patch

java.lang.Object
  extended bynl.toolforge.karma.core.Version
      extended bynl.toolforge.karma.core.Patch
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class Patch
extends Version

Version:
$Id: Patch.java,v 1.6 2004/11/02 22:57:08 amooy Exp $
Author:
D.A. Smedes

Field Summary
static int INITIAL_PATCH
           
static java.lang.String PATCH_PATTERN_POSTFIX
           
static java.lang.String VERSION_PATTERN_STRING
          Override for Version.VERSION_PATTERN_STRING.
 
Fields inherited from class nl.toolforge.karma.core.Version
FIRST_DIGIT, INITIAL_VERSION, SECOND_DIGIT, THIRD_DIGIT, VERSION_SEPARATOR_CHAR
 
Constructor Summary
Patch(java.lang.String patchNumber)
          Patches have the following format : 0-0-x, where x is the actual patch number within the 0-0 version.
 
Method Summary
 java.lang.String getPatternString()
           
 void increaseMajor()
          Overridden to throw an IllegalStateException because you cannot increase the major version number of a patch version.
 
Methods inherited from class nl.toolforge.karma.core.Version
clone, compareTo, createPatch, equals, getInitialVersion, getVersionNumber, hashCode, increase, isHigherThan, isLowerThan, setDigit, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PATCH_PATTERN_POSTFIX

public static final java.lang.String PATCH_PATTERN_POSTFIX
See Also:
Constant Field Values

VERSION_PATTERN_STRING

public static final java.lang.String VERSION_PATTERN_STRING
Override for Version.VERSION_PATTERN_STRING. A patch can have one more digit.

See Also:
PATCH_PATTERN_POSTFIX

INITIAL_PATCH

public static int INITIAL_PATCH
Constructor Detail

Patch

public Patch(java.lang.String patchNumber)
Patches have the following format : 0-0-x, where x is the actual patch number within the 0-0 version. The full thing has to be provided.

Parameters:
patchNumber -
Method Detail

getPatternString

public java.lang.String getPatternString()
Overrides:
getPatternString in class Version

increaseMajor

public void increaseMajor()
Overridden to throw an IllegalStateException because you cannot increase the major version number of a patch version.

Overrides:
increaseMajor in class Version
See Also:
Version.increaseMajor()


Copyright © 2002-2004 Toolforge. All Rights Reserved.