net.sourceforge.cruisecontrol
Class Builder
java.lang.Object
net.sourceforge.cruisecontrol.util.PerDayScheduleItem
net.sourceforge.cruisecontrol.Builder
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- Direct Known Subclasses:
- AntBuilder, CompositeBuilder, ExecBuilder, Maven2Builder, MavenBuilder, NantBuilder, PhingBuilder, RakeBuilder
- public abstract class Builder
- extends PerDayScheduleItem
- implements java.lang.Comparable
- See Also:
- Serialized Form
Method Summary |
abstract org.jdom.Element |
build(java.util.Map properties)
|
abstract org.jdom.Element |
buildWithTarget(java.util.Map properties,
java.lang.String target)
|
int |
compareTo(java.lang.Object o)
used to sort builders. |
java.lang.String |
getGroup()
|
int |
getMultiple()
|
int |
getTime()
|
boolean |
isValidDay(java.util.Date now)
is this the correct day to be running this builder? |
void |
setGroup(java.lang.String group)
|
void |
setMultiple(int multiple)
can use Builder.NOT_SET to reset. |
void |
setTime(java.lang.String timeString)
can use ScheduleItem.NOT_SET to reset. |
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Builder
public Builder()
build
public abstract org.jdom.Element build(java.util.Map properties)
throws CruiseControlException
- Throws:
CruiseControlException
buildWithTarget
public abstract org.jdom.Element buildWithTarget(java.util.Map properties,
java.lang.String target)
throws CruiseControlException
- Throws:
CruiseControlException
validate
public void validate()
throws CruiseControlException
- Throws:
CruiseControlException
getTime
public int getTime()
setTime
public void setTime(java.lang.String timeString)
- can use ScheduleItem.NOT_SET to reset.
- Parameters:
timeString
-
setMultiple
public void setMultiple(int multiple)
- can use Builder.NOT_SET to reset.
- Parameters:
multiple
-
getMultiple
public int getMultiple()
getGroup
public java.lang.String getGroup()
setGroup
public void setGroup(java.lang.String group)
isValidDay
public boolean isValidDay(java.util.Date now)
- is this the correct day to be running this builder?
compareTo
public int compareTo(java.lang.Object o)
- used to sort builders. we're only going to care about sorting builders based on build number,
so we'll sort based on the multiple attribute.
- Specified by:
compareTo
in interface java.lang.Comparable