Package org.basex.query.util.pkg
Class RepoManager
- java.lang.Object
-
- org.basex.query.util.pkg.RepoManager
-
public final class RepoManager extends Object
Repository manager.- Author:
- BaseX Team 2005-22, BSD License, Rositsa Shadura
-
-
Constructor Summary
Constructors Constructor Description RepoManager(Context context)
Constructor.RepoManager(Context context, InputInfo info)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String name)
Removes a package from the repository.StringList
ids()
Returns a list of all package ids.boolean
install(String path)
Installs a package.ArrayList<Pkg>
packages()
Returns a sorted list of all currently available packages.Table
table()
Returns all installed packages in a table.
-
-
-
Method Detail
-
install
public boolean install(String path) throws QueryException
Installs a package.- Parameters:
path
- package path- Returns:
true
if existing package was replaced- Throws:
QueryException
- query exception
-
table
public Table table()
Returns all installed packages in a table.- Returns:
- table
-
ids
public StringList ids()
Returns a list of all package ids.- Returns:
- packages
-
delete
public void delete(String name) throws QueryException
Removes a package from the repository.- Parameters:
name
- name or id of the package- Throws:
QueryException
- query exception
-
-