public class FileSpec extends ServerResource implements IFileSpec
| Modifier and Type | Field and Description |
|---|---|
protected FileAction |
action |
protected String |
baseFile |
protected String |
baseName |
protected int |
baseRev |
protected String |
blobSha |
protected String |
branch |
protected int |
changeListId |
protected IClient |
client |
protected String |
clientName |
protected FilePath |
clientPath |
protected String |
commitSha |
protected Date |
date |
protected FilePath |
depotPath |
protected int |
endRevision |
protected String |
fileType |
protected int |
genericCode |
protected String |
label |
protected FilePath |
localPath |
protected FileSpecOpStatus |
opStatus |
protected FilePath |
originalPath |
protected int |
rawCode |
protected String |
repoName |
protected int |
severityCode |
protected String |
sha |
protected int |
startRevision |
protected String |
statusMessage |
protected int |
subCode |
protected int |
subSystem |
protected String |
treeSha |
protected int |
uniqueCode |
protected boolean |
unmap |
protected String |
userName |
refreshable, server, updateableHAVE_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,
String errStr)
Construct a filespec from an opstatus and error message pair.
|
FileSpec(FileSpecOpStatus status,
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,
String errStr,
int genericCode,
int severityCode)
Construct a FileSpec from an opstatus, error message, Perforce generic
code, and Perforce severity code.
|
FileSpec(FileSpecOpStatus status,
String errStr,
String codeStr)
Construct a new FileSpec given the op status, an error string, and a raw
code string returned from a Perforce server.
|
FileSpec(Map<String,Object> map,
IServer server,
int index)
Try to construct a FileSpec from a passed-in map as returned from a
Perforce server.
|
FileSpec(String pathStr)
Given a candidate path string (which may include version and changelist
annotations, at least), try to construct a corresponding file spec.
|
FileSpec(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()
Returns the file action associated with this file, if any.
|
String |
getAnnotatedPathString(FilePath.PathType pathType)
Get an annotated string representation of a Perforce file
path associated with this Perforce file spec.
|
String |
getAnnotatedPreferredPathString()
Get the annotated "preferred" path string for this file spec.
|
List<IFileAnnotation> |
getAnnotations(DiffType wsOptions,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches)
Get the file annotations associated with this file.
|
List<IFileAnnotation> |
getAnnotations(GetFileAnnotationsOptions opts)
Get the file annotations associated with this file.
|
String |
getBaseFile()
Get the base file as reported by resolve -o or equivalent.
|
String |
getBaseName()
Get the base name as reported by integ -o or equivalent.
|
int |
getBaseRev()
Get the base revision as reported by integ -o or equivalent.
|
String |
getBlobSha() |
String |
getBranch() |
int |
getChangelistId()
Get the ID of the changelist associated with this file spec.
|
String |
getClientName()
Return the name of the client associated with this file spec, or null
if not set or known.
|
FilePath |
getClientPath()
Convenience method for getPath(CLIENT).
|
String |
getClientPathString()
Convenience method for getPathString(CLIENT).
|
String |
getCommitSha() |
String |
getContentResolveType()
Get the content resolve type for this file spec.
|
InputStream |
getContents(boolean noHeaderLine)
Get the contents of this specific Perforce file revision from the Perforce
depot as an InputStream.
|
InputStream |
getContents(GetFileContentsOptions opts)
Get the contents of this specific Perforce file revision from the Perforce
depot as an InputStream.
|
Date |
getDate()
Get the Perforce date of this file spec.
|
FilePath |
getDepotPath()
Convenience method for getPath(DEPOT).
|
String |
getDepotPathString()
Convenience method for getPathString(DEPOT).
|
String |
getDiffStatus()
Get the diff status for this file spec.
|
int |
getEndFromRev()
Return the end "from" revision of the last integration, if any.
|
int |
getEndRevision()
Get the end revision for this file spec, if any.
|
int |
getEndToRev()
Return the end "from" revision of the last integration, if any.
|
String |
getFileType()
Returns the file type string for this file spec, or null if not known.
|
String |
getFromFile()
Get the file this file spec was integrated from if any.
|
int |
getGenericCode()
Get the Perforce generic code associated with the operation result.
|
String |
getHowResolved()
Return a string representation of how the last resolve happened.
|
String |
getLabel()
Get the label string associated with this file spec, if any.
|
FilePath |
getLocalPath()
Convenience method for getPath(LOCAL).
|
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).
|
String |
getOriginalPathString()
Convenience method for getPathString(ORIGINAL).
|
FileAction |
getOtherAction()
Get the other action.
|
FilePath |
getPath(FilePath.PathType pathType)
Get the specific depot, client, local, or original Perforce file path
associated with this file spec.
|
String |
getPathString(FilePath.PathType pathType)
Get the unannotated path string for this Perforce file.
|
FilePath |
getPreferredPath()
Get the "preferred" path for this file spec.
|
String |
getPreferredPathString()
Get the (unannotated) "preferred" path string for this file spec.
|
int |
getRawCode()
Get the Perforce raw code associated with the operation result.
|
String |
getRepoName() |
String |
getResolveType()
Get the resolve type for this file spec.
|
List<String> |
getResolveTypes() |
static int |
getRevFromString(String str) |
Map<IFileSpec,List<IFileRevisionData>> |
getRevisionHistory(GetRevisionHistoryOptions opts)
Get the revision history of this Perforce file.
|
Map<IFileSpec,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.
|
String |
getSha() |
int |
getShelvedChange()
Get the shelved change for this file spec.
|
int |
getStartFromRev()
Return the start "from" revision of the last integration, if any.
|
int |
getStartRevision()
Get the start revision for this file spec, if any.
|
int |
getStartToRev()
Return the start "to" revision of the last integration, if any.
|
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.
|
String |
getToFile()
Get the "to" file for the integration, if it exists.
|
String |
getTreeSha() |
int |
getUniqueCode()
Get the Perforce 'unqieu' code associated with the operation result.
|
String |
getUserName()
Return the Perforce user name of the file's owner, or null if this
is not set or known.
|
int |
getWorkRev()
Get the work revision.
|
boolean |
isLocked()
Returns true if the associated file has been locked.
|
boolean |
isUnmap()
Return if this file spec is not mapped.
|
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).
|
List<IFileSpec> |
move(int changelistId,
boolean listOnly,
boolean noClientMove,
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(String baseFile)
Set the base file on this object.
|
void |
setBaseName(String baseName)
Set the base name on this object.
|
void |
setBaseRev(int baseRev)
Set the base revision on this object.
|
void |
setBlobSha(String sha) |
void |
setBranch(String branch) |
void |
setChangelistId(int changeListId)
Set the changelist ID for this file spec.
|
void |
setClient(IClient client) |
void |
setClientName(String clientName)
Set the Perforce client name for this file spec.
|
void |
setClientPath(FilePath clientPath) |
void |
setClientPath(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(String sha) |
void |
setContentResolveType(String contentResolveType)
Set the content resolve type for this file spec.
|
void |
setDate(Date date)
Set the date for this file spec.
|
void |
setDepotPath(FilePath depotPath) |
void |
setDepotPath(String pathStr)
Convenience method for setPath(new FilePath(PathType.DEPOT, pathStr));
|
void |
setDiffStatus(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(String fileType)
Set the file type for this file spec.
|
void |
setFromFile(String fromFile)
Set the from file for this file spec.
|
void |
setHowResolved(String howResolved)
Set the "how resolved" string for this file spec.
|
void |
setLabel(String label)
Set the label associated with this file spec.
|
void |
setLocalPath(FilePath localPath) |
void |
setLocalPath(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(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,
String pathStr)
Set a specific Perforce file path for this file spec from a passed-in
string.
|
void |
setRepoName(String repoName) |
void |
setResolveType(String resolveType)
Set the resolve type for this file spec.
|
void |
setResolveTypes(List<String> types) |
void |
setSha(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(String statusMessage) |
void |
setToFile(String toFile)
Set the to file for this file spec.
|
void |
setTreeSha(String sha) |
void |
setUnmap(boolean unmap)
Set the unmap status value for this file spec.
|
void |
setUserName(String userName)
Set the Perforce user name for this file spec.
|
void |
setWorkRev(int workRev)
Set the work revision for this file spec.
|
String |
toString()
Useful alias for getPreferredPathString().
|
canRefresh, canUpdate, complete, refresh, setRefreshable, setServer, update, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanRefresh, canUpdate, refresh, setServer, update, update, updateprotected FileSpecOpStatus opStatus
protected 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 String fileType
protected int startRevision
protected int endRevision
protected int changeListId
protected String label
protected Date date
protected FileAction action
protected String userName
protected String clientName
protected int baseRev
protected String baseName
protected String baseFile
protected boolean unmap
protected String repoName
protected String sha
protected String branch
protected String blobSha
protected String commitSha
protected String treeSha
protected IClient client
public FileSpec()
public FileSpec(String pathStr)
Effectively an alias for FileSpec(pathStr, true).
pathStr - candidate path stringpublic FileSpec(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)
public FileSpec(FileSpecOpStatus status, String errStr)
public FileSpec(FileSpecOpStatus status, String errStr, int genericCode, int severityCode)
public FileSpec(FileSpecOpStatus status, String errStr, String codeStr)
public FileSpec(FileSpecOpStatus status, String errStr, int rawCode)
public FileSpec(FileSpec impl)
impl - non-null existing filespec.public FileSpec(@Nullable Map<String,Object> map, @Nonnull IServer server, int index)
public FileSpec setCodes(int rawCode)
public FilePath getPath(@Nullable FilePath.PathType pathType)
IFileSpecpublic void setPath(@Nullable FilePath filePath)
IFileSpecpublic FileAction getAction()
IFileSpecpublic int getChangelistId()
IFileSpecgetChangelistId in interface IFileSpecpublic String getClientName()
IFileSpecgetClientName in interface IFileSpecpublic FilePath getClientPath()
IFileSpecgetClientPath in interface IFileSpecpublic InputStream getContents(boolean noHeaderLine) throws ConnectionException, RequestException, AccessException
IFileSpecYou 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 IFileSpecnoHeaderLine - 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 InputStream getContents(GetFileContentsOptions opts) throws P4JavaException
IFileSpecYou 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 IFileSpecopts - 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()
IFileSpecgetDepotPath in interface IFileSpecpublic int getEndRevision()
IFileSpecgetEndRevision in interface IFileSpecpublic String getFileType()
IFileSpecgetFileType in interface IFileSpecpublic String getLabel()
IFileSpecpublic FilePath getLocalPath()
IFileSpecgetLocalPath in interface IFileSpecpublic FileSpecOpStatus getOpStatus()
IFileOperationResultgetOpStatus in interface IFileOperationResultpublic FilePath getPreferredPath()
IFileSpecgetPreferredPath in interface IFileSpecpublic Map<IFileSpec,List<IFileRevisionData>> getRevisionHistory(int maxRevs, boolean contentHistory, boolean includeInherited, boolean longOutput, boolean truncatedLongOutput) throws ConnectionException, RequestException, AccessException
IFileSpecNote 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 IFileSpecmaxRevs - if positive, return at most maxRev revisions for this file.includeInherited - 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 Map<IFileSpec,List<IFileRevisionData>> getRevisionHistory(GetRevisionHistoryOptions opts) throws P4JavaException
IFileSpecNote 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 IFileSpecopts - GetChangelistDiffs object describing optional parameters; if null, no
options are set.P4JavaException - if any error occurs in the processing of this method.public List<IFileAnnotation> getAnnotations(DiffType wsOptions, boolean allResults, boolean useChangeNumbers, boolean followBranches) throws ConnectionException, RequestException, AccessException
IFileSpecgetAnnotations in interface IFileSpecwsOptions - 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 List<IFileAnnotation> getAnnotations(GetFileAnnotationsOptions opts) throws P4JavaException
IFileSpecgetAnnotations in interface IFileSpecopts - GetFileAnnotations object describing optional parameters; if null, no
options are set.P4JavaException - if any error occurs in the processing of this method.public List<IFileSpec> move(int changelistId, boolean listOnly, boolean noClientMove, String fileType, IFileSpec toFile) throws ConnectionException, RequestException, AccessException
IFileSpecNote 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 IFileSpecchangelistId - 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 List<IFileSpec> move(IFileSpec toFile, MoveFileOptions opts) throws P4JavaException
IFileSpecNote 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 IFileSpectoFile - 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()
IFileSpecgetStartRevision in interface IFileSpecpublic String getStatusMessage()
IFileOperationResultgetStatusMessage in interface IFileOperationResultpublic int getSeverityCode()
IFileOperationResultgetSeverityCode in interface IFileOperationResultpublic int getGenericCode()
IFileOperationResultgetGenericCode in interface IFileOperationResultpublic String getUserName()
IFileSpecgetUserName in interface IFileSpecpublic boolean isLocked()
IFileSpecpublic String getDiffStatus()
IFileSpecgetDiffStatus in interface IFileSpecpublic String getResolveType()
IFileSpecgetResolveType in interface IFileSpecpublic String getContentResolveType()
IFileSpecgetContentResolveType in interface IFileSpecpublic int getShelvedChange()
IFileSpecgetShelvedChange in interface IFileSpecpublic void setOpStatus(FileSpecOpStatus opStatus)
public void setStatusMessage(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(String fileType)
IFileSpecsetFileType in interface IFileSpecpublic void setStartRevision(int startRevision)
IFileSpecsetStartRevision in interface IFileSpecpublic void setEndRevision(int endRevision)
IFileSpecsetEndRevision in interface IFileSpecpublic void setChangelistId(int changeListId)
IFileSpecsetChangelistId in interface IFileSpecpublic void setLabel(String label)
IFileSpecpublic void setAction(FileAction action)
IFileSpecpublic void setUserName(String userName)
IFileSpecsetUserName in interface IFileSpecpublic void setClientName(String clientName)
IFileSpecsetClientName in interface IFileSpecpublic void setClient(IClient client)
public int getEndFromRev()
IFileSpecgetEndFromRev in interface IFileSpecpublic int getEndToRev()
IFileSpecgetEndToRev in interface IFileSpecpublic String getFromFile()
IFileSpecgetFromFile in interface IFileSpecpublic String getHowResolved()
IFileSpecgetHowResolved in interface IFileSpecpublic FileAction getOtherAction()
IFileSpecgetOtherAction in interface IFileSpecpublic int getStartFromRev()
IFileSpecgetStartFromRev in interface IFileSpecpublic int getStartToRev()
IFileSpecgetStartToRev in interface IFileSpecpublic String getToFile()
IFileSpecpublic int getWorkRev()
IFileSpecgetWorkRev in interface IFileSpecpublic boolean isUnmap()
IFileSpecpublic void setDate(Date date)
IFileSpecpublic void setFromFile(String fromFile)
IFileSpecsetFromFile in interface IFileSpecpublic void setEndFromRev(int endFromRev)
IFileSpecsetEndFromRev in interface IFileSpecpublic void setStartFromRev(int startFromRev)
IFileSpecsetStartFromRev in interface IFileSpecpublic void setToFile(String toFile)
IFileSpecpublic void setEndToRev(int endToRev)
IFileSpecsetEndToRev in interface IFileSpecpublic void setStartToRev(int startToRev)
IFileSpecsetStartToRev in interface IFileSpecpublic void setWorkRev(int workRev)
IFileSpecsetWorkRev in interface IFileSpecpublic void setHowResolved(String howResolved)
IFileSpecsetHowResolved in interface IFileSpecpublic void setOtherAction(FileAction otherAction)
IFileSpecsetOtherAction in interface IFileSpecpublic void setLocked(boolean locked)
IFileSpecpublic void setDiffStatus(String diffStatus)
IFileSpecsetDiffStatus in interface IFileSpecpublic void setResolveType(String resolveType)
IFileSpecsetResolveType in interface IFileSpecpublic void setContentResolveType(String contentResolveType)
IFileSpecsetContentResolveType in interface IFileSpecpublic void setShelvedChange(int shelvedChange)
IFileSpecsetShelvedChange in interface IFileSpecpublic void setUnmap(boolean unmap)
IFileSpecpublic void setRepoName(String repoName)
setRepoName in interface IFileSpecpublic String getBlobSha()
getBlobSha in interface IFileSpecpublic void setBlobSha(String sha)
setBlobSha in interface IFileSpecpublic String getCommitSha()
getCommitSha in interface IFileSpecpublic void setCommitSha(String sha)
setCommitSha in interface IFileSpecpublic String getTreeSha()
getTreeSha in interface IFileSpecpublic void setTreeSha(String sha)
setTreeSha in interface IFileSpecpublic static int getRevFromString(String str)
public String getClientPathString()
IFileSpecgetClientPathString in interface IFileSpecpublic String getDepotPathString()
IFileSpecgetDepotPathString in interface IFileSpecpublic String getLocalPathString()
IFileSpecgetLocalPathString in interface IFileSpecpublic FilePath getOriginalPath()
IFileSpecgetOriginalPath in interface IFileSpecpublic String getOriginalPathString()
IFileSpecgetOriginalPathString in interface IFileSpecpublic String getPathString(FilePath.PathType pathType)
IFileSpecgetPathString in interface IFileSpecpathType - if null or PathType.ORIGINAL, return the original
path for this file spec, otherwise return the specified
path for this file spec.public String getAnnotatedPathString(FilePath.PathType pathType)
IFileSpecgetAnnotatedPathString in interface IFileSpecpathType - if null or PathType.ORIGINAL, return the original
path for this file spec, otherwise return the specified
path for this file spec.public String getPreferredPathString()
IFileSpecgetPreferredPathString in interface IFileSpecpublic String getAnnotatedPreferredPathString()
IFileSpecgetAnnotatedPreferredPathString in interface IFileSpecpublic String toString()
IFileSpecpublic void setPathFromString(FilePath.PathType pathType, String pathStr)
IFileSpecsetPathFromString in interface IFileSpecpathType - 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 Date getDate()
IFileSpecpublic void setClientPath(String pathStr)
IFileSpecsetClientPath in interface IFileSpecpublic void setDepotPath(String pathStr)
IFileSpecsetDepotPath in interface IFileSpecpublic void setLocalPath(String pathStr)
IFileSpecsetLocalPath in interface IFileSpecpublic void setOriginalPath(String pathStr)
IFileSpecsetOriginalPath in interface IFileSpecpublic int getBaseRev()
IFileSpecgetBaseRev in interface IFileSpecpublic void setBaseRev(int baseRev)
IFileSpecsetBaseRev in interface IFileSpecpublic String getBaseName()
IFileSpecgetBaseName in interface IFileSpecpublic void setBaseName(String baseName)
IFileSpecsetBaseName in interface IFileSpecpublic String getBaseFile()
IFileSpecgetBaseFile in interface IFileSpecpublic void setBaseFile(String baseFile)
IFileSpecsetBaseFile in interface IFileSpecpublic int getRawCode()
IFileOperationResultgetRawCode in interface IFileOperationResultpublic int getUniqueCode()
IFileOperationResultgetUniqueCode in interface IFileOperationResultpublic int getSubCode()
IFileOperationResultgetSubCode in interface IFileOperationResultpublic int getSubSystem()
IFileOperationResultgetSubSystem in interface IFileOperationResultpublic String getRepoName()
getRepoName in interface IFileSpecpublic List<String> getResolveTypes()
getResolveTypes in interface IFileSpecpublic void setResolveTypes(List<String> types)
setResolveTypes in interface IFileSpecCopyright © 2017 Perforce Software. All Rights Reserved.