Package org.apache.maven.scm
Class ChangeSet
- java.lang.Object
- 
- org.apache.maven.scm.ChangeSet
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class ChangeSet extends Object implements Serializable - Author:
- Emmanuel Venisse
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringAMPERSAND_ENTITYEscaped&entity.static StringAPOSTROPHE_ENTITYEscaped'entity.static StringGREATER_THAN_ENTITYEscaped>entity.static StringLESS_THAN_ENTITYEscaped<entity.static StringQUOTE_ENTITYEscaped"entity.
 - 
Constructor SummaryConstructors Constructor Description ChangeSet()Constructor used when attributes aren't available until later.ChangeSet(String strDate, String userDatePattern, String comment, String author, List<ChangeFile> files)ChangeSet(Date date, String comment, String author, List<ChangeFile> files)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddFile(ChangeFile file)voidaddMergedRevision(String mergedRevision)voidaddTag(String tag)Setter for property tags.booleancontainsFilename(String filename)booleancontainsFilename(String filename, ScmProviderRepository repository)Deprecated.use methodcontainsFilename(String)booleanequals(Object obj)static StringescapeValue(Object value)Escape thetoStringof the given object.StringgetAuthor()Getter for property author.StringgetComment()Getter for property comment.DategetDate()Getter for property date.StringgetDateFormatted()List<ChangeFile>getFiles()Getter for ChangeFile list.Set<String>getMergedRevisions()StringgetParentRevision()StringgetRevision()List<String>getTags()Getter for property tags.StringgetTimeFormatted()inthashCode()voidsetAuthor(String author)Setter for property author.voidsetComment(String comment)Setter for property comment.voidsetDate(String date)Setter for property date that takes a string and parses it.voidsetDate(String date, String userDatePattern)Setter for property date that takes a string and parses it.voidsetDate(Date date)Setter for property date.voidsetFiles(List<ChangeFile> files)Setter for ChangeFile list.voidsetMergedRevisions(Set<String> mergedRevisions)voidsetParentRevision(String parentRevision)voidsetRevision(String revision)voidsetTags(List<String> tags)Setter for property tags.StringtoString()StringtoXML()Provide the changelog entry as an XML snippet.
 
- 
- 
- 
Field Detail- 
LESS_THAN_ENTITYpublic static final String LESS_THAN_ENTITY Escaped<entity.- See Also:
- Constant Field Values
 
 - 
GREATER_THAN_ENTITYpublic static final String GREATER_THAN_ENTITY Escaped>entity.- See Also:
- Constant Field Values
 
 - 
AMPERSAND_ENTITYpublic static final String AMPERSAND_ENTITY Escaped&entity.- See Also:
- Constant Field Values
 
 - 
APOSTROPHE_ENTITYpublic static final String APOSTROPHE_ENTITY Escaped'entity.- See Also:
- Constant Field Values
 
 - 
QUOTE_ENTITYpublic static final String QUOTE_ENTITY Escaped"entity.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ChangeSetpublic ChangeSet(String strDate, String userDatePattern, String comment, String author, List<ChangeFile> files) - Parameters:
- strDate- date the changes were committed
- userDatePattern- pattern of date
- comment- comment provided at commit time
- author- user who made changes
- files- the ChangeFile list
 
 - 
ChangeSetpublic ChangeSet(Date date, String comment, String author, List<ChangeFile> files) - Parameters:
- date- date the changes were committed
- comment- comment provided at commit time
- author- user who made changes
- files- the ChangeFile list
 
 - 
ChangeSetpublic ChangeSet() Constructor used when attributes aren't available until later.
 
- 
 - 
Method Detail- 
getFilespublic List<ChangeFile> getFiles() Getter for ChangeFile list.- Returns:
- list of ChangeFile
 
 - 
setFilespublic void setFiles(List<ChangeFile> files) Setter for ChangeFile list.- Parameters:
- files- list of ChangeFiles
 
 - 
addFilepublic void addFile(ChangeFile file) 
 - 
containsFilenamepublic boolean containsFilename(String filename, ScmProviderRepository repository) Deprecated.use methodcontainsFilename(String)- Parameters:
- filename- TODO
- repository- NOT USED
- Returns:
- TODO
 
 - 
containsFilenamepublic boolean containsFilename(String filename) 
 - 
setAuthorpublic void setAuthor(String author) Setter for property author.- Parameters:
- author- new value of property author
 
 - 
getCommentpublic String getComment() Getter for property comment.- Returns:
- value of property comment
 
 - 
setCommentpublic void setComment(String comment) Setter for property comment.- Parameters:
- comment- new value of property comment
 
 - 
setDatepublic void setDate(Date date) Setter for property date.- Parameters:
- date- new value of property date
 
 - 
setDatepublic void setDate(String date) Setter for property date that takes a string and parses it.- Parameters:
- date- a string in yyyy/MM/dd HH:mm:ss format
 
 - 
setDatepublic void setDate(String date, String userDatePattern) Setter for property date that takes a string and parses it.- Parameters:
- date- a string in yyyy/MM/dd HH:mm:ss format
- userDatePattern- pattern of date
 
 - 
getDateFormattedpublic String getDateFormatted() - Returns:
- date in yyyy-mm-dd format
 
 - 
getTimeFormattedpublic String getTimeFormatted() - Returns:
- time in HH:mm:ss format
 
 - 
setTagspublic void setTags(List<String> tags) Setter for property tags.- Parameters:
- tags- new value of property tags. This replaces the existing list (if any).
 
 - 
addTagpublic void addTag(String tag) Setter for property tags.- Parameters:
- tag- new tag to add to the list of tags
 
 - 
getRevisionpublic String getRevision() - Returns:
- TODO
- Since:
- 1.3
 
 - 
setRevisionpublic void setRevision(String revision) - Parameters:
- revision- TODO
- Since:
- 1.3
 
 - 
getParentRevisionpublic String getParentRevision() 
 - 
setParentRevisionpublic void setParentRevision(String parentRevision) 
 - 
addMergedRevisionpublic void addMergedRevision(String mergedRevision) 
 - 
getMergedRevisionspublic Set<String> getMergedRevisions() 
 - 
setMergedRevisionspublic void setMergedRevisions(Set<String> mergedRevisions) 
 - 
toXMLpublic String 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
 
 - 
escapeValuepublic static String escapeValue(Object value) Escape the toStringof the given object. For use in an attribute value.swiped from jakarta-commons/betwixt -- XMLUtils.java. - Parameters:
- value- escape- value.toString()
- Returns:
- text with characters restricted (for use in attributes) escaped
 
 
- 
 
-