|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.scm.ChangeSet
public class ChangeSet
Field Summary | |
---|---|
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 Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String LESS_THAN_ENTITY
<
entity
public static final String GREATER_THAN_ENTITY
>
entity
public static final String AMPERSAND_ENTITY
&
entity
public static final String APOSTROPHE_ENTITY
'
entity
public static final String QUOTE_ENTITY
"
entity
Constructor Detail |
---|
public 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()
Method Detail |
---|
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 USED
public boolean containsFilename(String filename)
public String getAuthor()
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 Date getDate()
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 toString()
toString
in class Object
public String toXML()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static String escapeValue(Object value)
Escape the toString
of the given object.
For use in an attribute value.
value
- escape value.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |