public class FileSpec extends ServerResource implements IFileSpec
Modifier and Type | Field and Description |
---|---|
protected FileAction |
action |
protected java.lang.String |
baseFile |
protected java.lang.String |
baseName |
protected int |
baseRev |
protected java.lang.String |
blobSha |
protected java.lang.String |
branch |
protected int |
changeListId |
protected IClient |
client |
protected java.lang.String |
clientName |
protected FilePath |
clientPath |
protected java.lang.String |
commitSha |
protected java.util.Date |
date |
protected FilePath |
depotPath |
protected int |
endRevision |
protected java.lang.String |
fileType |
protected int |
genericCode |
protected java.lang.String |
label |
protected FilePath |
localPath |
protected FileSpecOpStatus |
opStatus |
protected FilePath |
originalPath |
protected int |
rawCode |
protected java.lang.String |
repoName |
protected int |
severityCode |
protected java.lang.String |
sha |
protected int |
startRevision |
protected java.lang.String |
statusMessage |
protected int |
subCode |
protected int |
subSystem |
protected java.lang.String |
treeSha |
protected int |
uniqueCode |
protected boolean |
unmap |
protected java.lang.String |
userName |
refreshable, server, updateable
HAVE_REVISION, HAVE_REVISION_STRING, HEAD_REVISION, HEAD_REVISION_STRING, NO_FILE_REVISION, NO_REVISION_STRING, NONE_REVISION, NONE_REVISION_STRING
Constructor and Description |
---|
FileSpec()
Default constructor.
|
FileSpec(FilePath path)
Construct a FileSpec from a specific FilePath.
|
FileSpec(FileSpec impl)
Construct a new filespec from another filespec.
|
FileSpec(FileSpecOpStatus status,
java.lang.String errStr)
Construct a filespec from an opstatus and error message pair.
|
FileSpec(FileSpecOpStatus status,
java.lang.String errStr,
int rawCode)
Construct a new FileSpec given the op status, an error string, and a raw
code value returned from a Perforce server.
|
FileSpec(FileSpecOpStatus status,
java.lang.String errStr,
int genericCode,
int severityCode)
Construct a FileSpec from an opstatus, error message, Perforce generic
code, and Perforce severity code.
|
FileSpec(FileSpecOpStatus status,
java.lang.String errStr,
java.lang.String codeStr)
Construct a new FileSpec given the op status, an error string, and a raw
code string returned from a Perforce server.
|
FileSpec(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server,
int index)
Try to construct a FileSpec from a passed-in map as returned from a
Perforce server.
|
FileSpec(java.lang.String pathStr)
Given a candidate path string (which may include version and changelist
annotations, at least), try to construct a corresponding file spec.
|
FileSpec(java.lang.String pathStr,
boolean parseAnnotations)
Given a candidate path string (which may include version and changelist
annotations, at least), try to construct a corresponding file spec.
|
Modifier and Type | Method and Description |
---|---|
FileAction |
getAction() |
java.lang.String |
getAnnotatedPathString(FilePath.PathType pathType)
Get an annotated string representation of a Perforce file
path associated with this Perforce file spec.
|
java.lang.String |
getAnnotatedPreferredPathString()
Get the annotated "preferred" path string for this file spec.
|
java.util.List<IFileAnnotation> |
getAnnotations(DiffType wsOptions,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches)
Get the file annotations associated with this file.
|
java.util.List<IFileAnnotation> |
getAnnotations(GetFileAnnotationsOptions opts)
Get the file annotations associated with this file.
|
java.lang.String |
getBaseFile() |
java.lang.String |
getBaseName() |
int |
getBaseRev() |
java.lang.String |
getBlobSha() |
java.lang.String |
getBranch() |
int |
getChangelistId()
Get the ID of the changelist associated with this file spec.
|
java.lang.String |
getClientName() |
FilePath |
getClientPath()
Convenience method for getPath(CLIENT).
|
java.lang.String |
getClientPathString()
Convenience method for getPathString(CLIENT).
|
java.lang.String |
getCommitSha() |
java.lang.String |
getContentResolveType() |
java.io.InputStream |
getContents(boolean noHeaderLine)
Get the contents of this specific Perforce file revision from the Perforce
depot as an InputStream.
|
java.io.InputStream |
getContents(GetFileContentsOptions opts)
Get the contents of this specific Perforce file revision from the Perforce
depot as an InputStream.
|
java.util.Date |
getDate()
Get the Perforce date of this file spec.
|
FilePath |
getDepotPath()
Convenience method for getPath(DEPOT).
|
java.lang.String |
getDepotPathString()
Convenience method for getPathString(DEPOT).
|
java.lang.String |
getDiffStatus()
Get the diff status for this file spec.
|
int |
getEndFromRev() |
int |
getEndRevision()
Get the end revision for this file spec, if any.
|
int |
getEndToRev() |
java.lang.String |
getFileType() |
java.lang.String |
getFromFile() |
int |
getGenericCode()
Get the Perforce generic code associated with the operation result.
|
java.lang.String |
getHowResolved() |
java.lang.String |
getLabel() |
FilePath |
getLocalPath()
Convenience method for getPath(LOCAL).
|
java.lang.String |
getLocalPathString()
Convenience method for getPathString(LOCAL).
|
FileSpecOpStatus |
getOpStatus()
Return the particular Perforce operation status associated with the
specific Perforce file spec operation.
|
FilePath |
getOriginalPath()
Convenience method for getPath(ORIGINAL).
|
java.lang.String |
getOriginalPathString()
Convenience method for getPathString(ORIGINAL).
|
FileAction |
getOtherAction() |
FilePath |
getPath(FilePath.PathType pathType)
Get the specific depot, client, local, or original Perforce file path
associated with this file spec.
|
java.lang.String |
getPathString(FilePath.PathType pathType)
Get the unannotated path string for this Perforce file.
|
FilePath |
getPreferredPath()
Get the "preferred" path for this file spec.
|
java.lang.String |
getPreferredPathString()
Get the (unannotated) "preferred" path string for this file spec.
|
int |
getRawCode()
Get the Perforce raw code associated with the operation result.
|
java.lang.String |
getRepoName() |
java.lang.String |
getResolveType() |
java.util.List<java.lang.String> |
getResolveTypes() |
static int |
getRevFromString(java.lang.String str) |
java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> |
getRevisionHistory(GetRevisionHistoryOptions opts)
Get the revision history of this Perforce file.
|
java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> |
getRevisionHistory(int maxRevs,
boolean contentHistory,
boolean includeInherited,
boolean longOutput,
boolean truncatedLongOutput)
Get the revision history of this Perforce file.
|
int |
getSeverityCode()
Get the Perforce severity code associated with the operation result.
|
java.lang.String |
getSha() |
int |
getShelvedChange() |
int |
getStartFromRev() |
int |
getStartRevision() |
int |
getStartToRev() |
java.lang.String |
getStatusMessage()
Return the status message associated with the operation (this may be an
error or informational message, depending on the operation).
|
int |
getSubCode()
Get the Perforce 'sub' code associated with the operation result.
|
int |
getSubSystem()
Get the Perforce sub system code associated with the operation result.
|
long |
getSyncTime() |
java.lang.String |
getToFile() |
java.lang.String |
getTreeSha() |
int |
getUniqueCode()
Get the Perforce 'unqieu' code associated with the operation result.
|
java.lang.String |
getUserName() |
int |
getWorkRev() |
boolean |
isLocked() |
boolean |
isUnmap() |
java.util.List<IFileSpec> |
move(IFileSpec toFile,
MoveFileOptions opts)
Move this file if it's already opened for edit or add (the fromFile) to the destination
file (the toFile).
|
java.util.List<IFileSpec> |
move(int changelistId,
boolean listOnly,
boolean noClientMove,
java.lang.String fileType,
IFileSpec toFile)
Move this file if it's already opened for edit or add (the fromFile) to the destination
file (the toFile).
|
void |
setAction(FileAction action)
Set the file action for this file spec.
|
void |
setBaseFile(java.lang.String baseFile)
Set the base file on this object.
|
void |
setBaseName(java.lang.String baseName)
Set the base name on this object.
|
void |
setBaseRev(int baseRev)
Set the base revision on this object.
|
void |
setBlobSha(java.lang.String sha) |
void |
setBranch(java.lang.String branch) |
void |
setChangelistId(int changeListId)
Set the changelist ID for this file spec.
|
void |
setClient(IClient client) |
void |
setClientName(java.lang.String clientName)
Set the Perforce client name for this file spec.
|
void |
setClientPath(FilePath clientPath) |
void |
setClientPath(java.lang.String pathStr)
Convenience method for setPath(new FilePath(PathType.CLIENT, pathStr));
|
FileSpec |
setCodes(int rawCode)
Set the various error codes for this FileSpec to a value returned from
the server or the RPC layer.
|
void |
setCommitSha(java.lang.String sha) |
void |
setContentResolveType(java.lang.String contentResolveType)
Set the content resolve type for this file spec.
|
void |
setDate(java.util.Date date)
Set the date for this file spec.
|
void |
setDepotPath(FilePath depotPath) |
void |
setDepotPath(java.lang.String pathStr)
Convenience method for setPath(new FilePath(PathType.DEPOT, pathStr));
|
void |
setDiffStatus(java.lang.String diffStatus)
Set the diff status for this file spec.
|
void |
setEndFromRev(int endFromRev)
Set the end from revision for this file spec.
|
void |
setEndRevision(int endRevision)
Set the end revision for this file spec.
|
void |
setEndToRev(int endToRev)
Set the end to revision for this file spec.
|
void |
setFileType(java.lang.String fileType)
Set the file type for this file spec.
|
void |
setFromFile(java.lang.String fromFile)
Set the from file for this file spec.
|
void |
setHowResolved(java.lang.String howResolved)
Set the "how resolved" string for this file spec.
|
void |
setLabel(java.lang.String label)
Set the label associated with this file spec.
|
void |
setLocalPath(FilePath localPath) |
void |
setLocalPath(java.lang.String pathStr)
Convenience method for setPath(new FilePath(PathType.LOCAL, pathStr));
|
void |
setLocked(boolean locked)
Set the locked status for this file spec.
|
void |
setOpStatus(FileSpecOpStatus opStatus) |
void |
setOriginalPath(FilePath path) |
void |
setOriginalPath(java.lang.String pathStr)
Convenience method for setPath(new FilePath(PathType.ORIGINAL, pathStr));
|
void |
setOtherAction(FileAction otherAction)
Set the other action for this file spec.
|
void |
setPath(FilePath filePath)
Set a Perforce file path associated with this file spec.
|
void |
setPathFromString(FilePath.PathType pathType,
java.lang.String pathStr)
Set a specific Perforce file path for this file spec from a passed-in
string.
|
void |
setRepoName(java.lang.String repoName) |
void |
setResolveType(java.lang.String resolveType)
Set the resolve type for this file spec.
|
void |
setResolveTypes(java.util.List<java.lang.String> types) |
void |
setSha(java.lang.String sha) |
void |
setShelvedChange(int shelvedChange)
Set the shelved change for this file spec.
|
void |
setStartFromRev(int startFromRev)
Set the end from revision for this file spec.
|
void |
setStartRevision(int startRevision)
Set the start revision for this file spec.
|
void |
setStartToRev(int startToRev)
Set the start to revision for this file spec.
|
void |
setStatusMessage(java.lang.String statusMessage) |
void |
setSyncTime(long syncTime) |
void |
setToFile(java.lang.String toFile)
Set the to file for this file spec.
|
void |
setTreeSha(java.lang.String sha) |
void |
setUnmap(boolean unmap)
Set the unmap status value for this file spec.
|
void |
setUserName(java.lang.String userName)
Set the Perforce user name for this file spec.
|
void |
setWorkRev(int workRev)
Set the work revision for this file spec.
|
java.lang.String |
toString()
Useful alias for getPreferredPathString().
|
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
protected FileSpecOpStatus opStatus
protected java.lang.String statusMessage
protected int genericCode
protected int severityCode
protected int rawCode
protected int uniqueCode
protected int subCode
protected int subSystem
protected FilePath originalPath
protected FilePath depotPath
protected FilePath clientPath
protected FilePath localPath
protected java.lang.String fileType
protected int startRevision
protected int endRevision
protected int changeListId
protected java.lang.String label
protected java.util.Date date
protected FileAction action
protected java.lang.String userName
protected java.lang.String clientName
protected int baseRev
protected java.lang.String baseName
protected java.lang.String baseFile
protected boolean unmap
protected java.lang.String repoName
protected java.lang.String sha
protected java.lang.String branch
protected java.lang.String blobSha
protected java.lang.String commitSha
protected java.lang.String treeSha
protected IClient client
public FileSpec()
public FileSpec(java.lang.String pathStr)
Effectively an alias for FileSpec(pathStr, true).
pathStr
- candidate path stringpublic FileSpec(java.lang.String pathStr, boolean parseAnnotations)
The motivation for the hasAnnotations parameter is to allow path strings to contain "@" and "#" characters; the downside of this that if there's any associated annotation info, it's not parsed at all and any such information must be set up manually.
pathStr
- candidate path stringparseAnnotations
- if true, attempt to parse the path string for revision
annotations.public FileSpec(FilePath path)
path
- pathpublic FileSpec(FileSpecOpStatus status, java.lang.String errStr)
status
- statuserrStr
- errStrpublic FileSpec(FileSpecOpStatus status, java.lang.String errStr, int genericCode, int severityCode)
status
- statuserrStr
- errStrgenericCode
- genericCodeseverityCode
- severityCodepublic FileSpec(FileSpecOpStatus status, java.lang.String errStr, java.lang.String codeStr)
status
- statuserrStr
- errStrcodeStr
- codeStrpublic FileSpec(FileSpecOpStatus status, java.lang.String errStr, int rawCode)
status
- statuserrStr
- errStrrawCode
- rawCodepublic FileSpec(FileSpec impl)
impl
- non-null existing filespec.public FileSpec(@Nullable java.util.Map<java.lang.String,java.lang.Object> map, @Nonnull IServer server, int index)
map
- mapserver
- serverindex
- indexpublic FileSpec setCodes(int rawCode)
rawCode
- rawCodepublic FilePath getPath(@Nullable FilePath.PathType pathType)
IFileSpec
public void setPath(@Nullable FilePath filePath)
IFileSpec
public FileAction getAction()
public int getChangelistId()
IFileSpec
getChangelistId
in interface IFileSpec
public long getSyncTime()
getSyncTime
in interface IFileSpec
public void setSyncTime(long syncTime)
setSyncTime
in interface IFileSpec
public java.lang.String getClientName()
getClientName
in interface IFileSpec
public FilePath getClientPath()
IFileSpec
getClientPath
in interface IFileSpec
public java.io.InputStream getContents(boolean noHeaderLine) throws ConnectionException, RequestException, AccessException
IFileSpec
You should close the InputStream after use in order to release any underlying stream-related resources. Failure to do this may lead to the proliferation of temp files or long-term memory wastage or even leaks.
getContents
in interface IFileSpec
noHeaderLine
- if true, suppresses the initial line that displays the file name
and revisionConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerpublic java.io.InputStream getContents(GetFileContentsOptions opts) throws P4JavaException
IFileSpec
You should close the InputStream after use in order to release any underlying stream-related resources. Failure to do this may lead to the proliferation of temp files or long-term memory wastage or even leaks.
getContents
in interface IFileSpec
opts
- GetFileContents object describing optional parameters; if null, no
options are set.P4JavaException
- if any error occurs in the processing of this method.public FilePath getDepotPath()
IFileSpec
getDepotPath
in interface IFileSpec
public int getEndRevision()
IFileSpec
getEndRevision
in interface IFileSpec
public java.lang.String getFileType()
getFileType
in interface IFileSpec
public java.lang.String getLabel()
public FilePath getLocalPath()
IFileSpec
getLocalPath
in interface IFileSpec
public FileSpecOpStatus getOpStatus()
IFileOperationResult
getOpStatus
in interface IFileOperationResult
public FilePath getPreferredPath()
IFileSpec
getPreferredPath
in interface IFileSpec
public java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> getRevisionHistory(int maxRevs, boolean contentHistory, boolean includeInherited, boolean longOutput, boolean truncatedLongOutput) throws ConnectionException, RequestException, AccessException
IFileSpec
Note that the revision history returned may contain more than one file if the includeInherited option is true; this is why the return is a map (keyed on depot file path) of revision lists rather than a simple list.
Behavior is undefined if both longOutput and truncatedLongOutput are true. If both are false, a short form of the description (prepared by the server) is returned.
getRevisionHistory
in interface IFileSpec
maxRevs
- if positive, return at most maxRev revisions for this file.contentHistory
- if true, return the content historyincludeInherited
- if true, causes inherited file history to be returned as well.longOutput
- if true, return the full descriptions associated with each revisiontruncatedLongOutput
- if true, return only the first 250 characters of each description.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerpublic java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> getRevisionHistory(GetRevisionHistoryOptions opts) throws P4JavaException
IFileSpec
Note that the revision history returned may contain more than one file if the includeInherited option is true; this is why the return is a map (keyed on depot file path) of revision lists rather than a simple list.
Behavior is undefined if both longOutput and truncatedLongOutput are true in the passed-in GetRevisionHistory object. If both are false, a short form of the description (prepared by the server) is returned.
getRevisionHistory
in interface IFileSpec
opts
- GetChangelistDiffs object describing optional parameters; if null, no
options are set.P4JavaException
- if any error occurs in the processing of this method.public java.util.List<IFileAnnotation> getAnnotations(DiffType wsOptions, boolean allResults, boolean useChangeNumbers, boolean followBranches) throws ConnectionException, RequestException, AccessException
IFileSpec
getAnnotations
in interface IFileSpec
wsOptions
- DiffType describing the white space option to be used; if null,
use default (no options), otherwise must be one of the whitespace
options defined by the isWsOption method on DiffType.allResults
- if true, include both deleted files and lines no longer present
at the head revisionuseChangeNumbers
- if true, annotate with change numbers rather than
revision numbers with each linefollowBranches
- if true, follow branches.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerpublic java.util.List<IFileAnnotation> getAnnotations(GetFileAnnotationsOptions opts) throws P4JavaException
IFileSpec
getAnnotations
in interface IFileSpec
opts
- GetFileAnnotations object describing optional parameters; if null, no
options are set.P4JavaException
- if any error occurs in the processing of this method.public java.util.List<IFileSpec> move(int changelistId, boolean listOnly, boolean noClientMove, java.lang.String fileType, IFileSpec toFile) throws ConnectionException, RequestException, AccessException
IFileSpec
Note that the status of this file once the move has been performed may be indeterminate; you should discard this file and use the file returned, if any, or at least test this file's status.
Note that this operation is not supported on servers earlier than 2009.1; any attempt to use this on earlier servers will result in a RequestException with a suitable message. Similarly, not all underlying IServer implementations will work with this either, and will also result in a suitable RequestException.
move
in interface IFileSpec
changelistId
- if not IChangelist.UNKNOWN, the files are opened in the numbered
pending changelist instead of the 'default' changelist.listOnly
- if true, don't actually perform the move, just return what would
happen if the move was performednoClientMove
- if true, bypasses the client file rename. See main IServer
moveFiles comments for restrictions.fileType
- if not null, the file is reopened as that filetype.toFile
- the target file.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerpublic java.util.List<IFileSpec> move(IFileSpec toFile, MoveFileOptions opts) throws P4JavaException
IFileSpec
Note that the status of this file once the move has been performed may be indeterminate; you should discard this file and use the file returned, if any, or at least test this file's status.
Note that this operation is not supported on servers earlier than 2009.1; any attempt to use this on earlier servers will result in a RequestException with a suitable message. Similarly, not all underlying IServer implementations will work with this either, and will also result in a suitable RequestException.
move
in interface IFileSpec
toFile
- the target file.opts
- GetFileContents object describing optional parameters; if null, no
options are set.P4JavaException
- if any error occurs in the processing of this method.public int getStartRevision()
getStartRevision
in interface IFileSpec
public java.lang.String getStatusMessage()
IFileOperationResult
getStatusMessage
in interface IFileOperationResult
public int getSeverityCode()
IFileOperationResult
getSeverityCode
in interface IFileOperationResult
public int getGenericCode()
IFileOperationResult
getGenericCode
in interface IFileOperationResult
public java.lang.String getUserName()
getUserName
in interface IFileSpec
public boolean isLocked()
public java.lang.String getDiffStatus()
IFileSpec
getDiffStatus
in interface IFileSpec
public java.lang.String getResolveType()
getResolveType
in interface IFileSpec
public java.lang.String getContentResolveType()
getContentResolveType
in interface IFileSpec
public int getShelvedChange()
getShelvedChange
in interface IFileSpec
public void setOpStatus(FileSpecOpStatus opStatus)
public void setStatusMessage(java.lang.String statusMessage)
public void setOriginalPath(FilePath path)
public void setDepotPath(FilePath depotPath)
public void setClientPath(FilePath clientPath)
public void setLocalPath(FilePath localPath)
public void setFileType(java.lang.String fileType)
IFileSpec
setFileType
in interface IFileSpec
fileType
- typepublic void setStartRevision(int startRevision)
IFileSpec
setStartRevision
in interface IFileSpec
startRevision
- revisionpublic void setEndRevision(int endRevision)
IFileSpec
setEndRevision
in interface IFileSpec
endRevision
- revisionpublic void setChangelistId(int changeListId)
IFileSpec
setChangelistId
in interface IFileSpec
changeListId
- changepublic void setLabel(java.lang.String label)
IFileSpec
public void setAction(FileAction action)
IFileSpec
public void setUserName(java.lang.String userName)
IFileSpec
setUserName
in interface IFileSpec
userName
- userNamepublic void setClientName(java.lang.String clientName)
IFileSpec
setClientName
in interface IFileSpec
clientName
- clientNamepublic void setClient(IClient client)
public int getEndFromRev()
getEndFromRev
in interface IFileSpec
public int getEndToRev()
getEndToRev
in interface IFileSpec
public java.lang.String getFromFile()
getFromFile
in interface IFileSpec
public java.lang.String getHowResolved()
getHowResolved
in interface IFileSpec
public FileAction getOtherAction()
getOtherAction
in interface IFileSpec
public int getStartFromRev()
getStartFromRev
in interface IFileSpec
public int getStartToRev()
getStartToRev
in interface IFileSpec
public java.lang.String getToFile()
public int getWorkRev()
getWorkRev
in interface IFileSpec
public boolean isUnmap()
public void setDate(java.util.Date date)
IFileSpec
public void setFromFile(java.lang.String fromFile)
IFileSpec
setFromFile
in interface IFileSpec
fromFile
- pathStrpublic void setEndFromRev(int endFromRev)
IFileSpec
setEndFromRev
in interface IFileSpec
endFromRev
- revpublic void setStartFromRev(int startFromRev)
IFileSpec
setStartFromRev
in interface IFileSpec
startFromRev
- revpublic void setToFile(java.lang.String toFile)
IFileSpec
public void setEndToRev(int endToRev)
IFileSpec
setEndToRev
in interface IFileSpec
endToRev
- revpublic void setStartToRev(int startToRev)
IFileSpec
setStartToRev
in interface IFileSpec
startToRev
- revpublic void setWorkRev(int workRev)
IFileSpec
setWorkRev
in interface IFileSpec
workRev
- revpublic void setHowResolved(java.lang.String howResolved)
IFileSpec
setHowResolved
in interface IFileSpec
howResolved
- howStrpublic void setOtherAction(FileAction otherAction)
IFileSpec
setOtherAction
in interface IFileSpec
otherAction
- actionpublic void setLocked(boolean locked)
IFileSpec
public void setDiffStatus(java.lang.String diffStatus)
IFileSpec
setDiffStatus
in interface IFileSpec
diffStatus
- statuspublic void setResolveType(java.lang.String resolveType)
IFileSpec
setResolveType
in interface IFileSpec
resolveType
- resolve typepublic void setContentResolveType(java.lang.String contentResolveType)
IFileSpec
setContentResolveType
in interface IFileSpec
contentResolveType
- contentResolveTypepublic void setShelvedChange(int shelvedChange)
IFileSpec
setShelvedChange
in interface IFileSpec
shelvedChange
- shelvedChangepublic void setUnmap(boolean unmap)
IFileSpec
public void setRepoName(java.lang.String repoName)
setRepoName
in interface IFileSpec
public void setBranch(java.lang.String branch)
public java.lang.String getBlobSha()
getBlobSha
in interface IFileSpec
public void setBlobSha(java.lang.String sha)
setBlobSha
in interface IFileSpec
public java.lang.String getCommitSha()
getCommitSha
in interface IFileSpec
public void setCommitSha(java.lang.String sha)
setCommitSha
in interface IFileSpec
public java.lang.String getTreeSha()
getTreeSha
in interface IFileSpec
public void setTreeSha(java.lang.String sha)
setTreeSha
in interface IFileSpec
public static int getRevFromString(java.lang.String str)
public java.lang.String getClientPathString()
IFileSpec
getClientPathString
in interface IFileSpec
public java.lang.String getDepotPathString()
IFileSpec
getDepotPathString
in interface IFileSpec
public java.lang.String getLocalPathString()
IFileSpec
getLocalPathString
in interface IFileSpec
public FilePath getOriginalPath()
IFileSpec
getOriginalPath
in interface IFileSpec
public java.lang.String getOriginalPathString()
IFileSpec
getOriginalPathString
in interface IFileSpec
public java.lang.String getPathString(FilePath.PathType pathType)
IFileSpec
getPathString
in interface IFileSpec
pathType
- if null or PathType.ORIGINAL, return the original
path for this file spec, otherwise return the specified
path for this file spec.public java.lang.String getAnnotatedPathString(FilePath.PathType pathType)
IFileSpec
getAnnotatedPathString
in interface IFileSpec
pathType
- if null or PathType.ORIGINAL, return the original
path for this file spec, otherwise return the specified
path for this file spec.public java.lang.String getPreferredPathString()
IFileSpec
getPreferredPathString
in interface IFileSpec
public java.lang.String getAnnotatedPreferredPathString()
IFileSpec
getAnnotatedPreferredPathString
in interface IFileSpec
public java.lang.String toString()
IFileSpec
public void setPathFromString(FilePath.PathType pathType, java.lang.String pathStr)
IFileSpec
setPathFromString
in interface IFileSpec
pathType
- if null or PathType.ORIGINAL, sets the original
path for this file spec, otherwise sets the specified
path for this file spec.pathStr
- possibly-null, possibly-annotated path stringpublic java.util.Date getDate()
IFileSpec
public void setClientPath(java.lang.String pathStr)
IFileSpec
setClientPath
in interface IFileSpec
pathStr
- pathpublic void setDepotPath(java.lang.String pathStr)
IFileSpec
setDepotPath
in interface IFileSpec
pathStr
- pathpublic void setLocalPath(java.lang.String pathStr)
IFileSpec
setLocalPath
in interface IFileSpec
pathStr
- pathpublic void setOriginalPath(java.lang.String pathStr)
IFileSpec
setOriginalPath
in interface IFileSpec
pathStr
- pathpublic int getBaseRev()
getBaseRev
in interface IFileSpec
public void setBaseRev(int baseRev)
IFileSpec
setBaseRev
in interface IFileSpec
baseRev
- revpublic java.lang.String getBaseName()
getBaseName
in interface IFileSpec
public void setBaseName(java.lang.String baseName)
IFileSpec
setBaseName
in interface IFileSpec
baseName
- basenamepublic java.lang.String getBaseFile()
getBaseFile
in interface IFileSpec
public void setBaseFile(java.lang.String baseFile)
IFileSpec
setBaseFile
in interface IFileSpec
baseFile
- basefilepublic int getRawCode()
IFileOperationResult
getRawCode
in interface IFileOperationResult
public int getUniqueCode()
IFileOperationResult
getUniqueCode
in interface IFileOperationResult
public int getSubCode()
IFileOperationResult
getSubCode
in interface IFileOperationResult
public int getSubSystem()
IFileOperationResult
getSubSystem
in interface IFileOperationResult
public java.lang.String getRepoName()
getRepoName
in interface IFileSpec
public java.util.List<java.lang.String> getResolveTypes()
getResolveTypes
in interface IFileSpec
public void setResolveTypes(java.util.List<java.lang.String> types)
setResolveTypes
in interface IFileSpec