Class TypeSystemProvider_ImplBase
java.lang.Object
org.apache.uima.spi.TypeSystemProvider_ImplBase
- All Implemented Interfaces:
FsIndexCollectionProvider, JCasClassProvider, TypePrioritiesProvider, TypeSystemDescriptionProvider, TypeSystemProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindResourceUrl(String aName) Returns the URL for a resource exported by this provider by name.protected voidsetFsIndexCollectionLocations(String... aLocations) protected voidsetTypePrioritiesLocations(String... aLocations) protected voidsetTypeSystemLocations(String... aLocations)
-
Constructor Details
-
TypeSystemProvider_ImplBase
public TypeSystemProvider_ImplBase()
-
-
Method Details
-
setTypeSystemLocations
-
listTypeSystemDescriptions
- Specified by:
listTypeSystemDescriptionsin interfaceTypeSystemDescriptionProvider- Specified by:
listTypeSystemDescriptionsin interfaceTypeSystemProvider- Returns:
- the type system descriptions exported by this provider. The provider should resolve any imports in these before returning them. If possible, the provider should internally cache the parsed type systems instead of parsing them on every call to this method.
-
setFsIndexCollectionLocations
-
listFsIndexCollections
- Specified by:
listFsIndexCollectionsin interfaceFsIndexCollectionProvider- Specified by:
listFsIndexCollectionsin interfaceTypeSystemProvider- Returns:
- the FS index collections exported by this provider. The provider should resolve any imports in these before returning them. If possible, the provider should internally cache the parsed type systems instead of parsing them on every call to this method.
-
setTypePrioritiesLocations
-
listTypePriorities
- Specified by:
listTypePrioritiesin interfaceTypePrioritiesProvider- Specified by:
listTypePrioritiesin interfaceTypeSystemProvider- Returns:
- the type priorities exported by this provider. The provider should resolve any imports in these before returning them. If possible, the provider should internally cache the parsed type systems instead of parsing them on every call to this method.
-
findResourceUrl
Description copied from interface:TypeSystemProviderReturns the URL for a resource exported by this provider by name. This is necessary if any descriptors outside of this provider import resources owned by this provider by name. Note that by convention, any descriptors returned by this provide viaTypeSystemProvider.listTypeSystemDescriptions(),TypeSystemProvider.listTypePriorities()andTypeSystemProvider.listFsIndexCollections()should already have resolved their imports, so for these methods to access local imports, implementing this method is not required.- Specified by:
findResourceUrlin interfaceTypeSystemProvider- Parameters:
aName- the name of the type system. This should be something likesome.package.TypeSystemjust as you would put it into theImport.setName(String)of aImportfor a name-based import.- Returns:
- the type system description(s) exported from the given location. The provider should resolve any imports in the type systems before returning them.
-
listJCasClasses
- Specified by:
listJCasClassesin interfaceJCasClassProvider- Specified by:
listJCasClassesin interfaceTypeSystemProvider- Returns:
- the JCas classes exported by this provider. The provider should only supply JCas
classes for types it exports via
TypeSystemProvider.listTypeSystemDescriptions(). If possible, the provider should internally cache the parsed type systems instead of parsing them on every call to this method.
-