public class ChangeLogSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ENCODING |
private java.util.Date |
endDate |
private ScmVersion |
endVersion |
private java.util.List<ChangeSet> |
entries |
private java.util.Date |
startDate |
private ScmVersion |
startVersion |
Constructor and Description |
---|
ChangeLogSet(java.util.Date startDate,
java.util.Date endDate)
Initializes a new instance of this class.
|
ChangeLogSet(java.util.List<ChangeSet> entries,
java.util.Date startDate,
java.util.Date endDate)
Initializes a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ChangeSet> |
getChangeSets()
Returns the collection of changeSet.
|
java.util.Date |
getEndDate()
Returns the end date for this set.
|
ScmVersion |
getEndVersion()
Returns the end version (revision/branch/label) for this set.
|
java.util.Date |
getStartDate()
Returns the start date.
|
ScmVersion |
getStartVersion()
Returns the start version (revision/branch/label) for this set.
|
void |
setChangeSets(java.util.List<ChangeSet> changeSets) |
void |
setEndVersion(ScmVersion endVersion) |
void |
setStartVersion(ScmVersion startVersion) |
java.lang.String |
toXML()
Creates an XML representation of this change log set with a default encoding (ISO-8859-1).
|
java.lang.String |
toXML(java.lang.String encoding)
Creates an XML representation of this change log set.
|
public static final java.lang.String DEFAULT_ENCODING
private java.util.List<ChangeSet> entries
private java.util.Date startDate
private java.util.Date endDate
private ScmVersion startVersion
private ScmVersion endVersion
public ChangeLogSet(java.util.Date startDate, java.util.Date endDate)
startDate
- the start date/tag for this set.endDate
- the end date/tag for this set, or null
if this set goes to the present time.public ChangeLogSet(java.util.List<ChangeSet> entries, java.util.Date startDate, java.util.Date endDate)
entries
- collection of ChangeSet
objects for this set.startDate
- the start date/tag for this set.endDate
- the end date/tag for this set, or null
if this set goes to the present time.public java.util.Date getStartDate()
public java.util.Date getEndDate()
null
if this set goes to the present time.public ScmVersion getStartVersion()
null
.public void setStartVersion(ScmVersion startVersion)
public ScmVersion getEndVersion()
null
.public void setEndVersion(ScmVersion endVersion)
public java.util.List<ChangeSet> getChangeSets()
ChangeSet
objects for this set.public void setChangeSets(java.util.List<ChangeSet> changeSets)
public java.lang.String toXML()
public java.lang.String toXML(java.lang.String encoding)