gov.llnl.babel.repository
public class WebRepository extends java.lang.Object implements Repository
WebRepository
class implements an interface to the
Alexandria web repository for sidl symbols in XML. The URI in the class
constructor points to the Alexandria database and must use either the
HTTP or HTTPS (if supported by the JVM) protocols. The username and
password of the account must be passed as arguments in the URI as
follows: https://www.machine.org?username=USERNAME&password=PASSWORD.Constructor and Description |
---|
WebRepository(java.lang.String repository,
Context context)
The constructor takes a web repository URI with the username and
password specified as arguments.
|
Modifier and Type | Method and Description |
---|---|
Symbol |
lookupSymbol(java.lang.String fqn)
Look up a symbol based on the fully qualified name and retrieve the
most recent version that matches the symbol name.
|
Symbol |
lookupSymbol(SymbolID id)
Look up the symbol based on the fully qualified name and version in
the web repository.
|
void |
writeSymbols(java.util.Set symbol_names)
Write the symbols in the
Set from the symbol table to
the web repository. |
public WebRepository(java.lang.String repository, Context context) throws RepositoryException
RepositoryException
public Symbol lookupSymbol(SymbolID id)
lookupSymbol
in interface SymbolResolver
public Symbol lookupSymbol(java.lang.String fqn)
lookupSymbol
in interface SymbolResolver
public void writeSymbols(java.util.Set symbol_names) throws RepositoryException
Set
from the symbol table to
the web repository. Each set entry is a SymbolID
of
the symbol to be written.writeSymbols
in interface SymbolWriter
RepositoryException