Class TypeSystemDescriptionFactory
java.lang.Object
org.apache.uima.fit.factory.TypeSystemDescriptionFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeSystemDescriptionCreates aTypeSystemDescriptionfrom all type descriptions that can be found via the default import pattern or via theMETA-INF/org.apache.uima.fit/types.txtfiles in the classpath.static TypeSystemDescriptioncreateTypeSystemDescription(String... descriptorNames) Creates a TypeSystemDescription from descriptor names.static TypeSystemDescriptioncreateTypeSystemDescriptionFromPath(String... descriptorURIs) Creates aTypeSystemDescriptionfrom a descriptor filestatic voidForce rescan of type descriptors.static String[]Get all currently accessible type system descriptor locations.
-
Method Details
-
createTypeSystemDescription
Creates a TypeSystemDescription from descriptor names.- Parameters:
descriptorNames- The fully qualified, Java-style, dotted descriptor names.- Returns:
- A TypeSystemDescription that includes the types from all of the specified files.
-
createTypeSystemDescriptionFromPath
Creates aTypeSystemDescriptionfrom a descriptor file- Parameters:
descriptorURIs- The descriptor file paths.- Returns:
- A TypeSystemDescription that includes the types from all of the specified files.
-
createTypeSystemDescription
public static TypeSystemDescription createTypeSystemDescription() throws ResourceInitializationExceptionCreates aTypeSystemDescriptionfrom all type descriptions that can be found via the default import pattern or via theMETA-INF/org.apache.uima.fit/types.txtfiles in the classpath.- Returns:
- the auto-scanned type system.
- Throws:
ResourceInitializationException- if the collected type system descriptions cannot be merged.
-
scanTypeDescriptors
Get all currently accessible type system descriptor locations. A scan is actually only performed on the first call and the locations are cached. To force a re-scan useforceTypeDescriptorsScan().- Returns:
- an array of locations.
- Throws:
ResourceInitializationException- if the locations could not be resolved.
-
forceTypeDescriptorsScan
public static void forceTypeDescriptorsScan()Force rescan of type descriptors. The next call toscanTypeDescriptors()will rescan all auto-import locations.
-