|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.scm.ChangeLogSet.Entry
org.jenkinsci.plugins.darcs.DarcsChangeSet
public class DarcsChangeSet
Represents a change set (aka. a patch in Darcs).
The object should be treated like an immutable object.
Field Summary | |
---|---|
private List<String> |
added
Filles added by this patch. |
private String |
author
The patch author. |
private String |
comment
The patch long comment. |
private String |
date
The patch date in UTC. |
private List<String> |
deleted
Filles deleted by this patch. |
private String |
hash
The patches unique has. |
private boolean |
inverted
Whether it is an inversion of an other patch. |
private String |
localDate
Localized patch date. |
private List<String> |
modified
Filles modified by this patch. |
private String |
name
The patch name. |
Constructor Summary | |
---|---|
DarcsChangeSet()
|
Method Summary | |
---|---|
private static boolean |
equal(Object a,
Object b)
Helper which respects null values. |
boolean |
equals(Object obj)
|
List<String> |
getAddedPaths()
Gets all the files that were added. |
List<String> |
getAffectedPaths()
Returns a lazy computed list of all files affected by this patch. |
User |
getAuthor()
Returns the author as User object. |
String |
getComment()
Returns the patch comment. |
String |
getDate()
Returns the patch date as string. |
List<String> |
getDeletedPaths()
Gets all the files that were deleted. |
List<EditType> |
getEditTypes()
Returns all three variations of EditType . |
String |
getHash()
Returns the unique hash string of the patch. |
String |
getLocalDate()
Returns the localized date string. |
List<String> |
getModifiedPaths()
Gets all the files that were modified. |
String |
getMsg()
Method for fulfill the interface. |
String |
getName()
Returns the patch name. |
List<String> |
getPaths(EditType kind)
Convenience method for getting affected paths by type. |
String |
getPlainAuthor()
Returns the plain author string used in the Darcs repository. |
int |
hashCode()
|
boolean |
isInverted()
Returns whether the patch is inverted or not. |
void |
setAuthor(String anAuthor)
Sets the author string from Darcs. |
void |
setComment(String aComment)
Sets the comment string. |
void |
setDate(String aDate)
Sets the date string. |
void |
setHash(String aHash)
Sets the hash string. |
void |
setInverted(boolean isInverted)
Sets the inverted flag. |
void |
setLocalDate(String aLocalDate)
Sets the localized date string. |
void |
setName(String aName)
Sets the patch name. |
protected void |
setParent(ChangeLogSet parent)
|
String |
toString()
|
Methods inherited from class hudson.scm.ChangeLogSet.Entry |
---|
getAffectedFiles, getCommitId, getMsgAnnotated, getMsgEscaped, getParent, getTimestamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private String author
private String date
private String localDate
private boolean inverted
private String hash
private String name
private String comment
private List<String> added
private List<String> deleted
private List<String> modified
Constructor Detail |
---|
public DarcsChangeSet()
Method Detail |
---|
@Exported public User getAuthor()
getAuthor
in class ChangeLogSet.Entry
public String getPlainAuthor()
@Exported public String getComment()
@Exported public String getDate()
@Exported public String getHash()
@Exported public boolean isInverted()
true
if it is an inverse patch, else false
@Exported public String getLocalDate()
@Exported public String getName()
public String getMsg()
getComment()
.
getMsg
in class ChangeLogSet.Entry
getComment()
public void setAuthor(String anAuthor)
anAuthor
- author name stringpublic void setComment(String aComment)
aComment
- patch comment messagepublic void setDate(String aDate)
aDate
- date in UTCpublic void setHash(String aHash)
aHash
- hash stringpublic void setInverted(boolean isInverted)
isInverted
- true
if it is an inverse patch, else false
public void setLocalDate(String aLocalDate)
aLocalDate
- date in UTCpublic void setName(String aName)
aName
- patch namepublic List<String> getAffectedPaths()
getAffectedPaths
in class ChangeLogSet.Entry
@Exported public List<String> getAddedPaths()
@Exported public List<String> getDeletedPaths()
@Exported public List<String> getModifiedPaths()
public List<String> getPaths(EditType kind)
kind
- one of EditType.ADD
, EditType.EDIT
, EditType.DELETE
protected void setParent(ChangeLogSet parent)
setParent
in class ChangeLogSet.Entry
public List<EditType> getEditTypes()
EditType
. Placed here to simplify access from views.
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
private static boolean equal(Object a, Object b)
null
values.
a
- first object to compareb
- second object to compare
true
if a and b are equal, else false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |