Package org.eclipse.jgit.api
Class CheckoutResult
- java.lang.Object
-
- org.eclipse.jgit.api.CheckoutResult
-
public class CheckoutResult extends java.lang.ObjectEncapsulates the result of aCheckoutCommand
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutResult.StatusThe status
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>conflictListstatic CheckoutResultERROR_RESULTTheCheckoutResult.Status.ERRORresult;private java.util.List<java.lang.String>modifiedListprivate CheckoutResult.StatusmyStatusstatic CheckoutResultNOT_TRIED_RESULTTheCheckoutResult.Status.NOT_TRIEDresult;private java.util.List<java.lang.String>removedListprivate java.util.List<java.lang.String>undeletedList
-
Constructor Summary
Constructors Constructor Description CheckoutResult(java.util.List<java.lang.String> modified, java.util.List<java.lang.String> removed)Create a new OK result with modified and removed files.CheckoutResult(CheckoutResult.Status status, java.util.List<java.lang.String> fileList)Create a new fail result.CheckoutResult(CheckoutResult.Status status, java.util.List<java.lang.String> fileList, java.util.List<java.lang.String> modified, java.util.List<java.lang.String> removed)Create a new fail result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getConflictList()Get list of file that created a checkout conflictjava.util.List<java.lang.String>getModifiedList()Get the list of files that where modified during checkoutjava.util.List<java.lang.String>getRemovedList()Get the list of files that where removed during checkoutCheckoutResult.StatusgetStatus()Get statusjava.util.List<java.lang.String>getUndeletedList()Get the list of files that could not be deleted during checkout
-
-
-
Field Detail
-
ERROR_RESULT
public static final CheckoutResult ERROR_RESULT
TheCheckoutResult.Status.ERRORresult;
-
NOT_TRIED_RESULT
public static final CheckoutResult NOT_TRIED_RESULT
TheCheckoutResult.Status.NOT_TRIEDresult;
-
myStatus
private final CheckoutResult.Status myStatus
-
conflictList
private final java.util.List<java.lang.String> conflictList
-
undeletedList
private final java.util.List<java.lang.String> undeletedList
-
modifiedList
private final java.util.List<java.lang.String> modifiedList
-
removedList
private final java.util.List<java.lang.String> removedList
-
-
Constructor Detail
-
CheckoutResult
CheckoutResult(CheckoutResult.Status status, java.util.List<java.lang.String> fileList)
Create a new fail result. If status isCheckoutResult.Status.CONFLICTS,fileListis a list of conflicting files, if status isCheckoutResult.Status.NONDELETED,fileListis a list of not deleted files. All other values ignorefileList. To create a result forCheckoutResult.Status.OK, seeCheckoutResult(List, List).- Parameters:
status- the failure statusfileList- the list of files to store, status has to be eitherCheckoutResult.Status.CONFLICTSorCheckoutResult.Status.NONDELETED.
-
CheckoutResult
CheckoutResult(CheckoutResult.Status status, java.util.List<java.lang.String> fileList, java.util.List<java.lang.String> modified, java.util.List<java.lang.String> removed)
Create a new fail result. If status isCheckoutResult.Status.CONFLICTS,fileListis a list of conflicting files, if status isCheckoutResult.Status.NONDELETED,fileListis a list of not deleted files. All other values ignorefileList. To create a result forCheckoutResult.Status.OK, seeCheckoutResult(List, List).- Parameters:
status- the failure statusfileList- the list of files to store, status has to be eitherCheckoutResult.Status.CONFLICTSorCheckoutResult.Status.NONDELETED.modified- the modified filesremoved- the removed files.
-
CheckoutResult
CheckoutResult(java.util.List<java.lang.String> modified, java.util.List<java.lang.String> removed)Create a new OK result with modified and removed files.- Parameters:
modified- the modified filesremoved- the removed files.
-
-
Method Detail
-
getStatus
public CheckoutResult.Status getStatus()
Get status- Returns:
- the status
-
getConflictList
public java.util.List<java.lang.String> getConflictList()
Get list of file that created a checkout conflict- Returns:
- the list of files that created a checkout conflict, or an empty
list if
getStatus()is notCheckoutResult.Status.CONFLICTS;
-
getUndeletedList
public java.util.List<java.lang.String> getUndeletedList()
Get the list of files that could not be deleted during checkout- Returns:
- the list of files that could not be deleted during checkout, or
an empty list if
getStatus()is notCheckoutResult.Status.NONDELETED;
-
getModifiedList
public java.util.List<java.lang.String> getModifiedList()
Get the list of files that where modified during checkout- Returns:
- the list of files that where modified during checkout, or an
empty list if
getStatus()is notCheckoutResult.Status.OK
-
getRemovedList
public java.util.List<java.lang.String> getRemovedList()
Get the list of files that where removed during checkout- Returns:
- the list of files that where removed during checkout, or an empty
list if
getStatus()is notCheckoutResult.Status.OK
-
-