|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.perforce.p4java.impl.generic.core.file.FilePath
public class FilePath
Defines a file spec path for Perforce IFileSpec objects, and a bunch of useful methods for extracting and appending Perforce file-related metadata (such as revision information or label / changelist / date annotations) to and from paths and path strings. In Perforce terms, a file path specifies a particular file, but not a specific revision of that file (either implicitly or explicitly). That is, FilePath objects do not contain the possible "#" or "@" (etc.) specifiers suffixed to Perforce paths. In P4Java terms, file path strings are typically string representations of paths as understood above, but with version / changelist / etc. annotations attached.
| Nested Class Summary | |
|---|---|
static class |
FilePath.PathType
Defines the various types a Perforce file path can have. |
| Field Summary | |
|---|---|
protected String |
pathString
|
protected FilePath.PathType |
pathType
|
| Constructor Summary | |
|---|---|
FilePath()
Default constructor -- sets path type field to UNKNOWN, path string to null. |
|
FilePath(FilePath.PathType pathType,
String pathString)
Construct a FilePath from explicit type and path string values. |
|
FilePath(FilePath.PathType pathType,
String pathString,
boolean ignoreAnnotations)
Construct a FilePath from explicit type and path string values. |
|
| Method Summary | |
|---|---|
String |
annotate(IFileSpec fileSpec)
|
String |
annotate(PathAnnotations annotations)
Annotate this path with the passed-in Perforce file metadata annotations. |
String |
getPathString()
|
FilePath.PathType |
getPathType()
|
void |
setPathString(String pathString)
|
void |
setPathType(FilePath.PathType pathType)
|
String |
toString()
Note: does NOT annotate by default! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String pathString
protected FilePath.PathType pathType
| Constructor Detail |
|---|
public FilePath()
public FilePath(FilePath.PathType pathType,
String pathString)
public FilePath(FilePath.PathType pathType,
String pathString,
boolean ignoreAnnotations)
| Method Detail |
|---|
public String annotate(PathAnnotations annotations)
public String annotate(IFileSpec fileSpec)
public FilePath.PathType getPathType()
public String toString()
toString in class Objectpublic String getPathString()
public void setPathString(String pathString)
public void setPathType(FilePath.PathType pathType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||