public final class Repo
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
add(Package pkg,
java.lang.String dir)
Adds a newly installed package to the namespace and package dictionaries.
|
void |
init(java.lang.String repo)
Initializes the package repository.
|
TokenObjMap<TokenSet> |
nsDict()
Returns the namespace dictionary.
|
IOFile |
path(java.lang.String pkg)
Returns the path to the specified repository package.
|
TokenMap |
pkgDict()
Returns the package dictionary.
|
void |
remove(Package pkg)
Removes a package from the namespace and package dictionaries when it is
deleted.
|
public final Context context
public Repo(Context ctx)
ctx - database contextpublic TokenObjMap<TokenSet> nsDict()
public TokenMap pkgDict()
public void init(java.lang.String repo)
repo - repository. The default path is used if set to nullpublic IOFile path(java.lang.String pkg)
pkg - packagepublic void remove(Package pkg)
pkg - deleted packagepublic void add(Package pkg, java.lang.String dir)
pkg - new packagedir - new package directory