Class ChangeSet
java.lang.Object
org.apache.maven.scm.ChangeSet
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HgChangeSet, SvnChangeSet
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEscaped&entity.static final StringEscaped'entity.private StringUser who made changes.private StringComment provided at commit time.private DateDate the changes were committed.private static final ThreadSafeDateFormatFormatter used by the getDateFormatted method.private static final Stringprivate List<ChangeFile> List of ChangeFile.static final StringEscaped>entity.static final StringEscaped<entity.Revisions that were merged into this one.private StringRevision from which this one originates.static final StringEscaped"entity.private StringThe SCM revision id for this changeset.private static final longList of tags.private static final ThreadSafeDateFormatFormatter used by the getTimeFormatted method.private static final Stringprivate static final ThreadSafeDateFormatFormatter used to parse date/timestamp.private static final ThreadSafeDateFormatprivate static final ThreadSafeDateFormatprivate static final ThreadSafeDateFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFile(ChangeFile file) voidaddMergedRevision(String mergedRevision) voidSetter for property tags.booleancontainsFilename(String filename) booleancontainsFilename(String filename, ScmProviderRepository repository) Deprecated.booleanstatic StringescapeValue(Object value) Escape thetoStringof the given object.Getter for property author.Getter for property comment.getDate()Getter for property date.getFiles()Getter for ChangeFile list.getTags()Getter for property tags.inthashCode()private StringremoveCDataEnd(String message) Remove a]]>from comments (replace it with] ] >).voidSetter for property author.voidsetComment(String comment) Setter for property comment.voidSetter for property date that takes a string and parses it.voidSetter for property date that takes a string and parses it.voidSetter for property date.voidsetFiles(List<ChangeFile> files) Setter for ChangeFile list.voidsetMergedRevisions(Set<String> mergedRevisions) voidsetParentRevision(String parentRevision) voidsetRevision(String revision) voidSetter for property tags.toString()toXML()Provide the changelog entry as an XML snippet.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
LESS_THAN_ENTITY
-
GREATER_THAN_ENTITY
-
AMPERSAND_ENTITY
-
APOSTROPHE_ENTITY
-
QUOTE_ENTITY
-
DATE_PATTERN
- See Also:
-
DATE_FORMAT
Formatter used by the getDateFormatted method. -
TIME_PATTERN
- See Also:
-
TIME_FORMAT
Formatter used by the getTimeFormatted method. -
TIMESTAMP_FORMAT_1
Formatter used to parse date/timestamp. -
TIMESTAMP_FORMAT_2
-
TIMESTAMP_FORMAT_3
-
TIMESTAMP_FORMAT_4
-
date
Date the changes were committed. -
author
User who made changes. -
comment
Comment provided at commit time. -
files
List of ChangeFile. -
tags
-
revision
-
parentRevision
-
mergedRevisions
-
-
Constructor Details
-
ChangeSet
public ChangeSet(String strDate, String userDatePattern, String comment, String author, List<ChangeFile> files) - Parameters:
strDate- date the changes were committeduserDatePattern- pattern of datecomment- comment provided at commit timeauthor- user who made changesfiles- the ChangeFile list
-
ChangeSet
- Parameters:
date- date the changes were committedcomment- comment provided at commit timeauthor- user who made changesfiles- the ChangeFile list
-
ChangeSet
public ChangeSet()Constructor used when attributes aren't available until later.
-
-
Method Details
-
getFiles
-
setFiles
Setter for ChangeFile list.- Parameters:
files- list of ChangeFiles
-
addFile
-
containsFilename
Deprecated.use methodcontainsFilename(String)- Parameters:
filename- TODOrepository- NOT USED- Returns:
- TODO
-
containsFilename
-
getAuthor
-
setAuthor
Setter for property author.- Parameters:
author- new value of property author
-
getComment
-
setComment
Setter for property comment.- Parameters:
comment- new value of property comment
-
getDate
-
setDate
Setter for property date.- Parameters:
date- new value of property date
-
setDate
Setter for property date that takes a string and parses it.- Parameters:
date- a string in yyyy/MM/dd HH:mm:ss format
-
setDate
-
getDateFormatted
- Returns:
- date in yyyy-mm-dd format
-
getTimeFormatted
- Returns:
- time in HH:mm:ss format
-
getTags
-
setTags
-
addTag
Setter for property tags.- Parameters:
tag- new tag to add to the list of tags
-
getRevision
- Returns:
- TODO
- Since:
- 1.3
-
setRevision
- Parameters:
revision- TODO- Since:
- 1.3
-
getParentRevision
-
setParentRevision
-
addMergedRevision
-
getMergedRevisions
-
setMergedRevisions
-
toString
-
toXML
Provide the changelog entry as an XML snippet.- Returns:
- a changelog-entry in xml format TODO make sure comment doesn't contain CDATA tags - MAVEN114
-
equals
-
hashCode
-
removeCDataEnd
-
escapeValue
-
containsFilename(String)