| java.lang.Object net.sourceforge.cruisecontrol.labelincrementers.DefaultLabelIncrementer
All known Subclasses: net.sourceforge.cruisecontrol.labelincrementers.CVSLabelIncrementer,
Method Summary | |
public String | getDefaultLabel() The instance must be fully initialized before calling this method.
throws: IllegalStateException - if the instance is not properly initializede.g. | public String | incrementLabel(String oldLabel, Element buildLog) Increments the label when a successful build occurs.
Assumes that the label will be in
the format of "x.y", where x can be anything, and y is an integer.
The y value will be incremented by one, the rest will remain the same.
Parameters: oldLabel - Label from previous successful build. | public boolean | isPreBuildIncrementer() | public boolean | isValidLabel(String label) Verify that the label specified is a valid label. | public void | setDefaultLabel(String label) | public void | setPreBuildIncrementer(boolean preInc) Set the pre/post behavior of the label incrementer. | public void | setSeparator(String newSeparator) |
incrementLabel | public String incrementLabel(String oldLabel, Element buildLog)(Code) | | Increments the label when a successful build occurs.
Assumes that the label will be in
the format of "x.y", where x can be anything, and y is an integer.
The y value will be incremented by one, the rest will remain the same.
Parameters: oldLabel - Label from previous successful build. Label to use for most recent successful build. |
isPreBuildIncrementer | public boolean isPreBuildIncrementer()(Code) | | |
isValidLabel | public boolean isValidLabel(String label)(Code) | | Verify that the label specified is a valid label. In this case a valid
label contains at least one separator character, and an integer after the last
occurrence of the separator character.
|
setDefaultLabel | public void setDefaultLabel(String label)(Code) | | |
setPreBuildIncrementer | public void setPreBuildIncrementer(boolean preInc)(Code) | | Set the pre/post behavior of the label incrementer.
|
setSeparator | public void setSeparator(String newSeparator)(Code) | | |
|
|