org.lexevs.cts2.admin.load
Class ValueSetLoadOperationImpl
java.lang.Object
org.lexevs.cts2.LexEvsBasedService
org.lexevs.cts2.BaseService
org.lexevs.cts2.admin.load.ValueSetLoadOperationImpl
- All Implemented Interfaces:
- ValueSetLoadOperation
public class ValueSetLoadOperationImpl
- extends BaseService
- implements ValueSetLoadOperation
Implementation of LexEVS CTS 2 Value Set Load Operation.
- Author:
- Sridhar Dwarkanath
Method Summary |
java.util.List<java.lang.String> |
getSupportedLoaderNames()
Returns list of Loader names supported by this LexEVS instance. |
URNVersionPair[] |
load(java.net.URI source,
java.net.URI releaseURI,
java.lang.String loaderName,
java.lang.Boolean stopOnErrors)
Load the value set definition. |
java.lang.String |
load(ValueSetDefinition valueSetDefinition,
java.net.URI releaseURI,
java.lang.Boolean stopOnErrors)
Load value set definition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueSetLoadOperationImpl
public ValueSetLoadOperationImpl()
load
public URNVersionPair[] load(java.net.URI source,
java.net.URI releaseURI,
java.lang.String loaderName,
java.lang.Boolean stopOnErrors)
throws LBException
- Description copied from interface:
ValueSetLoadOperation
- Load the value set definition.
- Specified by:
load
in interface ValueSetLoadOperation
- Parameters:
source
- location of the source filereleaseURI
- Release URI the loaded contents belong toloaderName
- Name of the loader to be used. Call getSupportedLoaderNames()
to get list of loaders supported by this instance of LexEVS.stopOnErrors
- True means stop if any load error is detected. False means
attempt to load what can be loaded if recoverable errors are
encountered.
- Throws:
LBException
load
public java.lang.String load(ValueSetDefinition valueSetDefinition,
java.net.URI releaseURI,
java.lang.Boolean stopOnErrors)
throws LBException
- Description copied from interface:
ValueSetLoadOperation
- Load value set definition.
- Specified by:
load
in interface ValueSetLoadOperation
- Parameters:
valueSetDefinition
- Value Set Definition object to be loadedreleaseURI
- Release URI the loaded contents belong tostopOnErrors
- True means stop if any load error is detected. False means
attempt to load what can be loaded if recoverable errors are
encountered.
- Throws:
LBException
getSupportedLoaderNames
public java.util.List<java.lang.String> getSupportedLoaderNames()
throws LBException
- Description copied from interface:
ValueSetLoadOperation
- Returns list of Loader names supported by this LexEVS instance.
- Specified by:
getSupportedLoaderNames
in interface ValueSetLoadOperation
- Returns:
- List of supported Loader names
- Throws:
LBException