public class UriBasedHistoryLoaderImpl extends java.lang.Object implements UriBasedHistoryLoader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASYNC_OPTION |
static java.lang.String |
name |
Constructor and Description |
---|
UriBasedHistoryLoaderImpl(java.lang.String uri) |
Modifier and Type | Method and Description |
---|---|
void |
clearLog()
Clears any associated log entries.
|
protected OptionHolder |
declareAllowedOptions(OptionHolder holder) |
CodingSchemeManifest |
getCodingSchemeManifest()
Get the CodingSchemeManifest that would be used to modify the ontology content.
|
java.net.URI |
getCodingSchemeManifestURI()
Get the URI of the codingSchemeManifest that would be used to modify the ontology content.
|
AbsoluteCodingSchemeVersionReference[] |
getCodingSchemeReferences()
Returns absolute references for coding schemes loaded or used by the most
recent operation; empty if not applicable.
|
java.lang.String |
getDescription()
Return a description of the extension.
|
LoaderPreferences |
getLoaderPreferences()
Returns the current LoaderPreferences object.
|
LogEntry[] |
getLog(LogLevel level)
Returns log entries for the current or most recent load operation
that match a particular status; null if no operation has been attempted.
|
protected LgLoggerIF |
getLogger() |
java.lang.String |
getName()
Return the name assigned to this service extension.
|
OntologyFormat |
getOntologyFormat()
Return the ontology format the loader can handle
|
OptionHolder |
getOptions() |
java.lang.String |
getProvider()
Return an identifier for the extension provider.
|
java.net.URI |
getResourceUri() |
LoadStatus |
getStatus()
Returns status of the current or most recent load or validate operation;
null if no operation has been attempted.
|
java.lang.String |
getVersion()
Return version information about the extension.
|
void |
load(java.net.URI resource) |
void |
load(java.net.URI source,
java.net.URI versions,
boolean append,
boolean stopOnErrors,
boolean async) |
static void |
main(java.lang.String[] args) |
void |
setCodingSchemeManifest(CodingSchemeManifest codingSchemeManifest)
Set the CodingSchemeManifest that would be used to modify the ontology content.
|
void |
setCodingSchemeManifestURI(java.net.URI codingSchemeManifestUri)
Set the URI of the codingSchemeManifest that would be used to modify the ontology content.
|
void |
setLoaderPreferences(LoaderPreferences loaderPreferences)
Sets the Loader's LoaderPreferences.
|
void |
setLoaderPreferences(java.net.URI loaderPreferencesURI)
Sets the Loader's LoaderPreferences URI.
|
void |
setOptions(OptionHolder options) |
void |
setResourceUri(java.net.URI resourceUri) |
void |
validate(java.net.URI source,
java.net.URI versions,
int validationLevel) |
public static final java.lang.String name
public static java.lang.String ASYNC_OPTION
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected LgLoggerIF getLogger()
public void setOptions(OptionHolder options)
public OptionHolder getOptions()
getOptions
in interface Loader
public void clearLog()
Loader
public CodingSchemeManifest getCodingSchemeManifest()
Loader
getCodingSchemeManifest
in interface Loader
public java.net.URI getCodingSchemeManifestURI()
Loader
getCodingSchemeManifestURI
in interface Loader
public AbsoluteCodingSchemeVersionReference[] getCodingSchemeReferences()
Loader
getCodingSchemeReferences
in interface Loader
public LoaderPreferences getLoaderPreferences()
Loader
getLoaderPreferences
in interface Loader
public LogEntry[] getLog(LogLevel level)
Loader
getLog
in interface Loader
getLog
in interface StatusReporter
public LoadStatus getStatus()
Loader
getStatus
in interface Loader
getStatus
in interface StatusReporter
public void setCodingSchemeManifest(CodingSchemeManifest codingSchemeManifest)
Loader
setCodingSchemeManifest
in interface Loader
public void setCodingSchemeManifestURI(java.net.URI codingSchemeManifestUri) throws LBException
Loader
setCodingSchemeManifestURI
in interface Loader
LBException
public void setLoaderPreferences(LoaderPreferences loaderPreferences) throws LBParameterException
Loader
setLoaderPreferences
in interface Loader
loaderPreferences
- The LoaderPreference object to be loaded. It is recommended that all implementing
classes check if the LoaderPreferences object is valid for the loader.LBParameterException
public void setLoaderPreferences(java.net.URI loaderPreferencesURI) throws LBParameterException
Loader
setLoaderPreferences
in interface Loader
LBParameterException
public OntologyFormat getOntologyFormat()
Loader
getOntologyFormat
in interface Loader
public java.lang.String getName()
Extendable
getName
in interface Extendable
public java.lang.String getDescription()
Extendable
getDescription
in interface Extendable
public java.lang.String getProvider()
Extendable
getProvider
in interface Extendable
public java.lang.String getVersion()
Extendable
getVersion
in interface Extendable
public void load(java.net.URI source, java.net.URI versions, boolean append, boolean stopOnErrors, boolean async) throws LBException
load
in interface UriBasedHistoryLoader
LBException
public void validate(java.net.URI source, java.net.URI versions, int validationLevel) throws LBException
validate
in interface UriBasedHistoryLoader
LBException
protected OptionHolder declareAllowedOptions(OptionHolder holder)
public void setResourceUri(java.net.URI resourceUri)
public java.net.URI getResourceUri()