|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hudson.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.
Constructor Summary | |
---|---|
DarcsChangeSet()
|
Method Summary | |
---|---|
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. |
hudson.model.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<hudson.scm.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(hudson.scm.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(hudson.scm.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 |
Constructor Detail |
---|
public DarcsChangeSet()
Method Detail |
---|
@Exported public hudson.model.User getAuthor()
getAuthor
in class hudson.scm.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 hudson.scm.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 hudson.scm.ChangeLogSet.Entry
@Exported public List<String> getAddedPaths()
@Exported public List<String> getDeletedPaths()
@Exported public List<String> getModifiedPaths()
public List<String> getPaths(hudson.scm.EditType kind)
kind
- one of EditType.ADD
, EditType.EDIT
, EditType.DELETE
protected void setParent(hudson.scm.ChangeLogSet parent)
setParent
in class hudson.scm.ChangeLogSet.Entry
public List<hudson.scm.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |