net.sourceforge.cruisecontrol.sourcecontrols
Class Compound.Entry

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.sourcecontrols.Compound.Entry
All Implemented Interfaces:
java.io.Serializable, SourceControl
Direct Known Subclasses:
Targets, Triggers
Enclosing class:
Compound

protected static class Compound.Entry
extends java.lang.Object
implements SourceControl

Static inner class, used to define a basis for the Targets and Triggers classes that are used inside the <compound>-tag.

See Also:
Serialized Form

Constructor Summary
Compound.Entry()
          Public constructor for reflection purposes.
Compound.Entry(SourceControl parent)
          Constructor that the Compound class uses to create an object of this class.
 
Method Summary
 void add(SourceControl sc)
          Adds a sourcecontrol to the list of sourcecontrols that this object contains.
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Returns a list of modifications since the last build by querying the sourceControl that this object contains.
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 void validate()
          Confirms that the sourceControl that this object wraps has been set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compound.Entry

public Compound.Entry()
Public constructor for reflection purposes.


Compound.Entry

public Compound.Entry(SourceControl parent)
Constructor that the Compound class uses to create an object of this class.

Parameters:
parent - the parent of this object (an object of class Compound)
Method Detail

getProperties

public java.util.Map getProperties()
Description copied from interface: SourceControl
Any properties that have been set in this sourcecontrol. Will be passed onto the Builder, which may then pass the properties to the underlying build implementation. For example, the Ant builder will define these properties so that the underlying Ant script can use them.

Specified by:
getProperties in interface SourceControl

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
Returns a list of modifications since the last build by querying the sourceControl that this object contains.

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild - the date and time of the last build
now - the current date and time
Returns:
a list of the modifications

validate

public void validate()
              throws CruiseControlException
Confirms that the sourceControl that this object wraps has been set.

Specified by:
validate in interface SourceControl
Throws:
CruiseControlException - if the validation fails

add

public void add(SourceControl sc)
Adds a sourcecontrol to the list of sourcecontrols that this object contains.

Parameters:
sc - the sourceControl object to add