public class FilePath
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FilePath.PathType
Defines the various types a Perforce file path can have.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
pathString |
protected FilePath.PathType |
pathType |
Constructor and Description |
---|
FilePath()
Default constructor -- sets path type field to UNKNOWN,
path string to null.
|
FilePath(FilePath.PathType pathType,
java.lang.String pathString)
Construct a FilePath from explicit type and path string values.
|
FilePath(FilePath.PathType pathType,
java.lang.String pathString,
boolean ignoreAnnotations)
Construct a FilePath from explicit type and path string values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
annotate(IFileSpec fileSpec) |
java.lang.String |
annotate(PathAnnotations annotations)
Annotate this path with the passed-in Perforce file metadata
annotations.
|
java.lang.String |
getPathString() |
FilePath.PathType |
getPathType() |
void |
setPathString(java.lang.String pathString) |
void |
setPathType(FilePath.PathType pathType) |
java.lang.String |
toString()
Note: does NOT annotate by default!
|
protected java.lang.String pathString
protected FilePath.PathType pathType
public FilePath()
public FilePath(FilePath.PathType pathType, java.lang.String pathString)
pathType
- pathTypepathString
- pathStringpublic FilePath(FilePath.PathType pathType, java.lang.String pathString, boolean ignoreAnnotations)
pathType
- pathTypepathString
- pathStringignoreAnnotations
- ignoreAnnotationspublic java.lang.String annotate(PathAnnotations annotations)
annotations
- annotationspublic java.lang.String annotate(IFileSpec fileSpec)
fileSpec
- file specpublic FilePath.PathType getPathType()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPathString()
public void setPathString(java.lang.String pathString)
public void setPathType(FilePath.PathType pathType)