public final class TypeSystemDescriptionFactory extends Object
Modifier and Type | Method and Description |
---|---|
static TypeSystemDescription |
createTypeSystemDescription()
Creates a
TypeSystemDescription from all type descriptions that can be found via the
default import pattern or via the META-INF/org.apache.uima.fit/types.txt files in the
classpath. |
static TypeSystemDescription |
createTypeSystemDescription(String... descriptorNames)
Creates a TypeSystemDescription from descriptor names.
|
static TypeSystemDescription |
createTypeSystemDescriptionFromPath(String... descriptorURIs)
Creates a
TypeSystemDescription from a descriptor file |
static void |
forceTypeDescriptorsScan()
Force rescan of type descriptors.
|
static String[] |
scanTypeDescriptors()
Get all currently accessible type system descriptor locations.
|
public static TypeSystemDescription createTypeSystemDescription(String... descriptorNames)
descriptorNames
- The fully qualified, Java-style, dotted descriptor names.public static TypeSystemDescription createTypeSystemDescriptionFromPath(String... descriptorURIs)
TypeSystemDescription
from a descriptor filedescriptorURIs
- The descriptor file paths.public static TypeSystemDescription createTypeSystemDescription() throws ResourceInitializationException
TypeSystemDescription
from all type descriptions that can be found via the
default import pattern or via the META-INF/org.apache.uima.fit/types.txt
files in the
classpath.ResourceInitializationException
- if the collected type system descriptions cannot be merged.public static String[] scanTypeDescriptors() throws ResourceInitializationException
forceTypeDescriptorsScan()
.ResourceInitializationException
- if the locations could not be resolved.public static void forceTypeDescriptorsScan()
scanTypeDescriptors()
will rescan
all auto-import locations.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.