Perforce

com.perforce.api
Class DirEntry

java.lang.Object
  |
  +--com.perforce.api.SourceControlObject
        |
        +--com.perforce.api.DirEntry
All Implemented Interfaces:
Cacheable

public final class DirEntry
extends SourceControlObject

Representation of a source control directory.

Version:
$Date: 2001/11/02 $ $Revision: #1 $
Author:
David Markley

Constructor Summary
DirEntry()
           
DirEntry(DirEntry base, String path)
           
DirEntry(Env e)
           
DirEntry(Env e, String path)
           
 
Method Summary
 void commit()
          Stores this object back into Perforce, creating it if it didn't already exist.
 String getBasePath()
           
 HashDecay getCache()
           
static DirEntry getDirEntry(Env env, String path, boolean force)
           
 String[] getDirNames()
           
 String[] getDirNames(Env env)
           
 String[] getFileNames()
           
 String[] getFileNames(Env env)
           
 FileEntry[] getFiles()
           
 FileEntry[] getFiles(Env env)
           
 DirEntry getParent()
           
 String getPath()
           
 void setPath(String path)
           
 void sync()
          Brings this object back into sync with Perforce.
 
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, toString, wait, wait, wait
 

Constructor Detail

DirEntry

public DirEntry()

DirEntry

public DirEntry(DirEntry base,
                String path)

DirEntry

public DirEntry(Env e)

DirEntry

public DirEntry(Env e,
                String path)
Method Detail

commit

public void commit()
Description copied from class: SourceControlObject
Stores this object back into Perforce, creating it if it didn't already exist.
Overrides:
commit in class SourceControlObject

getBasePath

public String getBasePath()

getCache

public HashDecay getCache()
Overrides:
getCache in class SourceControlObject

getDirEntry

public static DirEntry getDirEntry(Env env,
                                   String path,
                                   boolean force)

getDirNames

public String[] getDirNames()

getDirNames

public String[] getDirNames(Env env)

getFileNames

public String[] getFileNames()

getFileNames

public String[] getFileNames(Env env)

getFiles

public FileEntry[] getFiles()

getFiles

public FileEntry[] getFiles(Env env)

getParent

public DirEntry getParent()

getPath

public String getPath()

setPath

public void setPath(String path)

sync

public void sync()
Description copied from class: SourceControlObject
Brings this object back into sync with Perforce.
Overrides:
sync in class SourceControlObject

Perforce

Copyright © 2001, Perforce Software, All rights reserved.