public class ChangeSet extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
AMPERSAND_ENTITY
Escaped
& entity |
static String |
APOSTROPHE_ENTITY
Escaped
' entity |
static String |
GREATER_THAN_ENTITY
Escaped
> entity |
static String |
LESS_THAN_ENTITY
Escaped
< entity |
static String |
QUOTE_ENTITY
Escaped
" entity |
Constructor and Description |
---|
ChangeSet()
Constructor used when attributes aren't available until later
|
ChangeSet(Date date,
String comment,
String author,
List<ChangeFile> files) |
ChangeSet(String strDate,
String userDatePattern,
String comment,
String author,
List<ChangeFile> files) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(ChangeFile file) |
void |
addMergedRevision(String mergedRevision) |
boolean |
containsFilename(String filename) |
boolean |
containsFilename(String filename,
ScmProviderRepository repository)
Deprecated.
Use method
containsFilename(String) |
boolean |
equals(Object obj) |
static String |
escapeValue(Object value)
Escape the
toString of the given object. |
String |
getAuthor()
Getter for property author.
|
String |
getComment()
Getter for property comment.
|
Date |
getDate()
Getter for property date.
|
String |
getDateFormatted() |
List<ChangeFile> |
getFiles()
Getter for ChangeFile list.
|
Set<String> |
getMergedRevisions() |
String |
getParentRevision() |
String |
getRevision() |
String |
getTimeFormatted() |
int |
hashCode() |
void |
setAuthor(String author)
Setter for property author.
|
void |
setComment(String comment)
Setter for property comment.
|
void |
setDate(Date date)
Setter for property date.
|
void |
setDate(String date)
Setter for property date that takes a string and parses it
|
void |
setDate(String date,
String userDatePattern)
Setter for property date that takes a string and parses it
|
void |
setFiles(List<ChangeFile> files)
Setter for ChangeFile list.
|
void |
setMergedRevisions(Set<String> mergedRevisions) |
void |
setParentRevision(String parentRevision) |
void |
setRevision(String revision) |
String |
toString() |
String |
toXML()
Provide the changelog entry as an XML snippet.
|
public static final String LESS_THAN_ENTITY
<
entitypublic static final String GREATER_THAN_ENTITY
>
entitypublic static final String AMPERSAND_ENTITY
&
entitypublic static final String APOSTROPHE_ENTITY
'
entitypublic static final String QUOTE_ENTITY
"
entitypublic ChangeSet(String strDate, String userDatePattern, String comment, String author, List<ChangeFile> files)
strDate
- Date the changes were committeduserDatePattern
- pattern of datecomment
- comment provided at commit timeauthor
- User who made changesfiles
- The ChangeFile listpublic ChangeSet(Date date, String comment, String author, List<ChangeFile> files)
date
- Date the changes were committedcomment
- comment provided at commit timeauthor
- User who made changesfiles
- The ChangeFile listpublic ChangeSet()
public List<ChangeFile> getFiles()
public void setFiles(List<ChangeFile> files)
files
- List of ChangeFiles.public void addFile(ChangeFile file)
public boolean containsFilename(String filename, ScmProviderRepository repository)
containsFilename(String)
filename
- repository
- NOT USEDpublic boolean containsFilename(String filename)
public void setAuthor(String author)
author
- New value of property author.public String getComment()
public void setComment(String comment)
comment
- New value of property comment.public void setDate(Date date)
date
- New value of property date.public void setDate(String date)
date
- - a string in yyyy/MM/dd HH:mm:ss formatpublic void setDate(String date, String userDatePattern)
date
- - a string in yyyy/MM/dd HH:mm:ss formatuserDatePattern
- - pattern of datepublic String getDateFormatted()
public String getTimeFormatted()
public String getRevision()
public void setRevision(String revision)
revision
- public String getParentRevision()
public void setParentRevision(String parentRevision)
public void addMergedRevision(String mergedRevision)
public Set<String> getMergedRevisions()
public void setMergedRevisions(Set<String> mergedRevisions)
public String toXML()
public static String escapeValue(Object value)
Escape the toString
of the given object.
For use in an attribute value.
value
- escape value.toString()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.