Package org.apache.maven.scm
Class ScmFileStatus
- java.lang.Object
- 
- org.apache.maven.scm.ScmFileStatus
 
- 
- All Implemented Interfaces:
- Serializable
 
 public final class ScmFileStatus extends Object implements Serializable TODO move to a real enumTypesafe enum for file status There are two types of status defined in this class: 
 1) Status: Changes in the working tree, not yet committed to the repository e.g. MODIFIED
 2) Transaction: The file is part of some transaction with the repository e.g. CHECKED_IN- Author:
- Trygve Laugstøl
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static ScmFileStatusADDEDFile is added to the working tree and does not yet exist in the repository.static ScmFileStatusCHECKED_INFile from working tree is checked into the repository.static ScmFileStatusCHECKED_OUTFile is checked out from the repository and into the working tree.static ScmFileStatusCONFLICTThe file in the working tree has differences to the one in repository that conflicts ie.static ScmFileStatusCOPIEDThe file has been copied in the working tree.static ScmFileStatusDELETEDFile is removed from the working tree thus not revisioned anymore.
 The file is still present in the repository.
 The file could be deleted from the filesystem depending on the provider.static ScmFileStatusEDITEDstatic ScmFileStatusLOCKEDThe file is locked.static ScmFileStatusMISSINGThe file is missing in the working tree.static ScmFileStatusMODIFIEDThe file has been modified in the working tree.static ScmFileStatusPATCHEDThe file in the working tree has been updated with changes from the repository.static ScmFileStatusRENAMEDThe file has been renamed or moved in the working tree.static ScmFileStatusTAGGEDThe file is part of a tag.static ScmFileStatusUNKNOWNThe file is in the working tree but is not versioned and not ignored either.static ScmFileStatusUPDATEDThe file is added, removed or updated from the repository, thus its up-to-date with the version in the repository.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDiff()There are changes in the working tree that are not committed to the repository.booleanisStatus()There are changes in the working tree that are not committed to the repository, or
 the file is unknown for the working tree.booleanisTransaction()booleanisUpdate()File is part of an update transaction with the repository.
 Note: ADDED and REMOVED are not an update status since they indicates that the working tree has changed.
 An update indicates the opposite, that the repository was changed compared to the working tree and that it is now synchronized unless there are conflicts.StringtoString()
 
- 
- 
- 
Field Detail- 
ADDEDpublic static final ScmFileStatus ADDED File is added to the working tree and does not yet exist in the repository.
 - 
DELETEDpublic static final ScmFileStatus DELETED File is removed from the working tree thus not revisioned anymore.
 The file is still present in the repository.
 The file could be deleted from the filesystem depending on the provider.
 - 
MODIFIEDpublic static final ScmFileStatus MODIFIED The file has been modified in the working tree.
 - 
RENAMEDpublic static final ScmFileStatus RENAMED The file has been renamed or moved in the working tree.- Since:
- 1.7
 
 - 
COPIEDpublic static final ScmFileStatus COPIED The file has been copied in the working tree.- Since:
- 1.7
 
 - 
MISSINGpublic static final ScmFileStatus MISSING The file is missing in the working tree.
 - 
CHECKED_INpublic static final ScmFileStatus CHECKED_IN File from working tree is checked into the repository.
 - 
CHECKED_OUTpublic static final ScmFileStatus CHECKED_OUT File is checked out from the repository and into the working tree.
 - 
CONFLICTpublic static final ScmFileStatus CONFLICT The file in the working tree has differences to the one in repository that conflicts ie. it cannot automatically be merged.
 - 
PATCHEDpublic static final ScmFileStatus PATCHED The file in the working tree has been updated with changes from the repository.
 - 
UPDATEDpublic static final ScmFileStatus UPDATED The file is added, removed or updated from the repository, thus its up-to-date with the version in the repository. See also isUpdate()
 - 
TAGGEDpublic static final ScmFileStatus TAGGED The file is part of a tag.
 - 
LOCKEDpublic static final ScmFileStatus LOCKED The file is locked.
 - 
UNKNOWNpublic static final ScmFileStatus UNKNOWN The file is in the working tree but is not versioned and not ignored either.
 - 
EDITEDpublic static final ScmFileStatus EDITED - Since:
- 1.5 The file is being edited
 
 
- 
 - 
Method Detail- 
isStatuspublic boolean isStatus() There are changes in the working tree that are not committed to the repository, or
 the file is unknown for the working tree.- Returns:
- true on changes in the working tree or if the file is unknown
 
 - 
isDiffpublic boolean isDiff() There are changes in the working tree that are not committed to the repository.- Returns:
- true on changes in the working tree
 
 - 
isTransactionpublic boolean isTransaction() - Returns:
- true if the file was part of a transaction with the repository
 
 - 
isUpdatepublic boolean isUpdate() File is part of an update transaction with the repository.
 Note: ADDED and REMOVED are not an update status since they indicates that the working tree has changed.
 An update indicates the opposite, that the repository was changed compared to the working tree and that it is now synchronized unless there are conflicts.- Returns:
- true if the status is conflict, updated or patched
 
 
- 
 
-