|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.labelincrementers.FormattedLabelIncrementer
This class provides a label incrementation for creating consistent, formatted upper case labels. This class expects the label format to be either "x_y_z" or "y_z" where x is any String, y is an integer and z is one of REL, INT or BLD. * Usage: <formattedlabelincrementer prefix="false" defaultlabel="1.INT"/%gt;
Constructor Summary | |
FormattedLabelIncrementer()
|
Method Summary | |
java.lang.String |
getDefaultLabel()
Get the default label |
java.lang.String |
incrementLabel(java.lang.String oldLabel,
org.jdom.Element buildLog)
Increments the label when a successful build occurs. |
boolean |
isPreBuildIncrementer()
Checks whether the label should be incremented pre/post build |
boolean |
isValidLabel(java.lang.String label)
Verify that the label specified is a valid label. |
void |
setDefaultLabel(java.lang.String label)
Set the default label |
void |
setPreBuildIncrementer(boolean preInc)
Set the pre/post behavior of the label incrementer |
void |
setPrefix(boolean prefix)
Set whether a prefix is required or no |
void |
setSeparator(java.lang.String newSeparator)
set the separtor to be use between parts of the build label, default is "_" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FormattedLabelIncrementer()
Method Detail |
public void setSeparator(java.lang.String newSeparator)
newSeparator
- the character string to use as a separatorpublic void setPreBuildIncrementer(boolean preInc)
preInc
- whether to increment the build before the build, default is falsepublic void setPrefix(boolean prefix)
prefix
- whether to include a prefix with the label, default is truepublic java.lang.String getDefaultLabel()
getDefaultLabel
in interface LabelIncrementer
public void setDefaultLabel(java.lang.String label)
label
- string to set the default label topublic boolean isPreBuildIncrementer()
isPreBuildIncrementer
in interface LabelIncrementer
public java.lang.String incrementLabel(java.lang.String oldLabel, org.jdom.Element buildLog)
incrementLabel
in interface LabelIncrementer
oldLabel
- Label from previous successful build.buildLog
- JDOM Element
representation of the build.
public boolean isValidLabel(java.lang.String label)
isValidLabel
in interface LabelIncrementer
label
- the label to check for validity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |