|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.perforce.api.SourceControlObject | +--com.perforce.api.FileEntry
Representation of a source control file.
Hashtable
Constructor Summary | |
FileEntry()
Default no-argument constructor. |
|
FileEntry(Env env)
|
|
FileEntry(Env env,
String p)
|
|
FileEntry(String p)
|
Method Summary | |
void |
commit()
No-op. |
static String |
customizePath(String str,
char from_char,
char to_char)
|
static String |
depotizePath(String str)
|
HashDecay |
getCache()
|
String |
getClientPath()
|
String |
getDepotPath()
|
String |
getDescription()
|
static FileEntry |
getFile(String p)
Gets the file information for the specified path. |
String |
getFileContents()
|
String |
getFileContents(Env env,
String path)
|
static Vector |
getFileLog(Env env,
String path)
|
static Vector |
getFiles(Env env,
String path)
|
int |
getHaveRev()
|
String |
getHeadAction()
|
int |
getHeadChange()
|
String |
getHeadDate()
|
int |
getHeadRev()
|
long |
getHeadTime()
|
String |
getHeadTimeString()
|
String |
getHeadType()
|
String |
getName()
|
static Vector |
getOpened()
|
static Vector |
getOpened(Env env,
boolean stat)
|
static Vector |
getOpened(Env env,
boolean stat,
boolean all,
int changelist,
Vector files)
|
String |
getOwner()
|
FileEntry |
getSource()
|
static String |
HTMLEncode(String str)
|
static String |
localizePath(String str)
|
void |
obtainLock()
|
void |
openForAdd()
|
void |
openForAdd(Change chng)
|
static FileEntry |
openForAdd(Env env,
String path,
Change chng)
Opens the file on the path for add under the change. |
void |
openForEdit()
|
void |
openForEdit(boolean force,
boolean lock)
|
void |
openForEdit(boolean force,
boolean lock,
Change chng)
|
static FileEntry |
openForEdit(Env env,
String path,
boolean sync,
boolean force,
boolean lock,
Change chng)
Opens the file on the path for edit under the change. |
String |
resolve(boolean force)
|
static String |
resolveAll(Env env,
String flags,
String path)
|
static String |
resolveAT(Env env,
Enumeration en)
|
boolean |
revert()
|
void |
setClientPath(String p)
Sets the client path for this file. |
void |
setDepotPath(String p)
Sets the depot path for this file. |
void |
setDescription(String d)
|
void |
setHaveRev(int rev)
|
void |
setHeadAction(String action)
|
void |
setHeadChange(int change)
|
void |
setHeadDate(String d)
|
void |
setHeadRev(int rev)
|
void |
setHeadTime(long time)
|
void |
setHeadType(String type)
|
void |
setOwner(String o)
|
void |
setSource(FileEntry fent)
|
void |
sync()
Synchronizes the user information with P4. |
String |
syncMySpace(Env env,
String path)
|
static void |
syncWorkspace(Env env,
String path)
|
String |
toString()
if (l.trim().equals("")) { if (null != nfe.getDepotPath() && (! (igndel && nfe.getHeadAction().equals("delete")))) { v.addElement(nfe); } if (null == fe) { nfe = new FileEntry(); nfe.setEnv(p.getEnv()); } } if (l.startsWith("#")) { continue; } if (l.startsWith("... |
Methods inherited from class com.perforce.api.SourceControlObject |
clearCache, getEnv, getSyncTime, getUpdateTime, inSync, invalidate, outOfSync, refreshUpdateTime, setEnv, toXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FileEntry()
public FileEntry(Env env)
public FileEntry(Env env, String p)
public FileEntry(String p)
Method Detail |
public void commit()
commit
in class SourceControlObject
public static String customizePath(String str, char from_char, char to_char)
public static String depotizePath(String str)
public HashDecay getCache()
getCache
in class SourceControlObject
public String getClientPath()
public String getDepotPath()
public String getDescription()
public static FileEntry getFile(String p)
p
- Path of the file to gather information about.public String getFileContents()
public String getFileContents(Env env, String path)
public static Vector getFileLog(Env env, String path)
public static Vector getFiles(Env env, String path)
public int getHaveRev()
public String getHeadAction()
public int getHeadChange()
public String getHeadDate()
public int getHeadRev()
public long getHeadTime()
public String getHeadTimeString()
public String getHeadType()
public String getName()
public static Vector getOpened()
public static Vector getOpened(Env env, boolean stat)
public static Vector getOpened(Env env, boolean stat, boolean all, int changelist, Vector files)
public String getOwner()
public FileEntry getSource()
public static String HTMLEncode(String str)
public static String localizePath(String str)
public void obtainLock() throws Exception
public void openForAdd() throws Exception
public void openForAdd(Change chng) throws Exception
public static FileEntry openForAdd(Env env, String path, Change chng) throws Exception
env
- P4 Environmentpath
- Depot or client path to the file being opened for add.chng
- The change that the file will be opened for add in.public void openForEdit() throws Exception
public void openForEdit(boolean force, boolean lock) throws Exception
public void openForEdit(boolean force, boolean lock, Change chng) throws Exception
public static FileEntry openForEdit(Env env, String path, boolean sync, boolean force, boolean lock, Change chng) throws Exception
env
- P4 Environmentpath
- Depot or client path to the file being opened for edit.sync
- If true, the file will be sync'd before opened for edit.force
- If true, the file will be opened for edit even if it isn't the most recent version.lock
- If true, the file will be locked once opened.chng
- The change that the file will be opened for edit in.public String resolve(boolean force) throws IOException
public static String resolveAll(Env env, String flags, String path) throws IOException
public static String resolveAT(Env env, Enumeration en) throws IOException
public boolean revert()
public void setClientPath(String p)
p
- path for this file on the client system.public void setDepotPath(String p)
p
- path for this file in the depot.public void setDescription(String d)
public void setHaveRev(int rev)
public void setHeadAction(String action)
public void setHeadChange(int change)
public void setHeadDate(String d)
public void setHeadRev(int rev)
public void setHeadTime(long time)
public void setHeadType(String type)
public void setOwner(String o)
public void setSource(FileEntry fent)
public void sync()
sync
in class SourceControlObject
public String syncMySpace(Env env, String path) throws IOException
public static void syncWorkspace(Env env, String path) throws IOException
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |