org.LexGrid.LexBIG.Impl.loaders
Class LexGridMultiLoaderImpl
java.lang.Object
org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
org.LexGrid.LexBIG.Impl.loaders.BaseLoader
org.LexGrid.LexBIG.Impl.loaders.LexGridMultiLoaderImpl
- All Implemented Interfaces:
- java.io.Serializable, Extendable, LexGrid_Loader, Loader, StatusReporter
public class LexGridMultiLoaderImpl
- extends BaseLoader
- implements LexGrid_Loader
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
name
|
static java.lang.String |
VALIDATE
|
Methods inherited from class org.LexGrid.LexBIG.Impl.loaders.BaseLoader |
addBooleanOptionValue, baseLoad, buildRootNode, clearLog, constructVersionPairsFromCodingSchemes, createCachingMessageDirectorIF, createDefaultInserter, createDefaultInserter, doesOptionExist, doIndex, doPostProcessing, doTransitiveAndIndex, doTransitiveTable, getAbsoluteCodingSchemeVersionReferenceFromOptionString, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getDescription, getLoaderPreferences, getLog, getLogger, getManifestUtil, getMessageDirector, getName, getOntologyFormat, getOptions, getPostProcessor, getProvider, getResourceUri, getStatus, getStringFromURI, getVersion, isDoApplyPostLoadManifest, isDoComputeTransitiveClosure, isDoIndexing, isDoRegister, isDoRemoveOnFailure, isInUse, load, lock, persistCodingSchemeToDatabase, persistCodingSchemeToDatabase, register, register, setCachingMessageDirectorIF, setCodingSchemeManifest, setCodingSchemeManifestURI, setCodingSchemeReferences, setDoApplyPostLoadManifest, setDoComputeTransitiveClosure, setDoIndexing, setDoRegister, setDoRemoveOnFailure, setInUse, setLoaderPreferences, setLoaderPreferences, setManifestUtil, setOptions, setResourceUri, setStatus, unlock, urnVersionPairToAbsoluteCodingSchemeVersionReference |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Load.Loader |
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getOntologyFormat, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences |
name
public static final java.lang.String name
- See Also:
- Constant Field Values
VALIDATE
public static final java.lang.String VALIDATE
- See Also:
- Constant Field Values
LexGridMultiLoaderImpl
public LexGridMultiLoaderImpl()
validate
public void validate(java.net.URI uri,
int validationLevel)
throws LBParameterException
- Description copied from interface:
LexGrid_Loader
- Validate content for a candidate resource without performing a load.
Returns without exception if validation succeeds.
- Specified by:
validate
in interface LexGrid_Loader
- Parameters:
uri
- URI corresponding to the XML file.validationLevel
- Supported levels of validation include: 0 = Verify XML is well
formed. 1 = Verify XML is valid.
- Throws:
LBParameterException
load
public void load(java.net.URI source,
boolean stopOnErrors,
boolean async)
throws LBException
- Description copied from interface:
LexGrid_Loader
- Load content from a candidate resource. This will also result in implicit
generation of standard indices required by the LexBIG runtime.
An exception is raised if resources cannot be accessed or another load
operation is already in progress.
- Specified by:
load
in interface LexGrid_Loader
- Parameters:
source
- URI corresponding to the XML file.stopOnErrors
- True means stop if any load error is detected. False means
attempt to load what can be loaded if recoverable errors are
encountered.async
- Flag controlling whether load occurs in the calling thread.
If true, the load will occur in a separate asynchronous process.
If false, this method blocks until the load operation
completes or fails. Regardless of setting, the getStatus and
getLog calls are used to fetch results.
- Throws:
LBException
declareAllowedOptions
protected OptionHolder declareAllowedOptions(OptionHolder holder)
- Specified by:
declareAllowedOptions
in class BaseLoader
doLoad
protected URNVersionPair[] doLoad()
throws CodingSchemeAlreadyLoadedException
- Specified by:
doLoad
in class BaseLoader
- Throws:
CodingSchemeAlreadyLoadedException
buildExtensionDescription
protected ExtensionDescription buildExtensionDescription()
- Description copied from class:
AbstractExtendable
- Builds the extension description.
- Specified by:
buildExtensionDescription
in class AbstractExtendable
- Returns:
- the extension description
getSchemaURL
public java.net.URI getSchemaURL()
- Description copied from interface:
LexGrid_Loader
- Return a reference to the XML Schema that this loader supports.
- Specified by:
getSchemaURL
in interface LexGrid_Loader
getSchemaVersion
public java.lang.String getSchemaVersion()
- Description copied from interface:
LexGrid_Loader
- Return the version identifier of the schema that this loader supports.
(e.g. 2004/02, 2005/01, ...).
- Specified by:
getSchemaVersion
in interface LexGrid_Loader
finalize
public void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
main
public static void main(java.lang.String[] args)
- Parameters:
args
-