public final class TypeSystemDescriptionFactory extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.resource.metadata.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 org.apache.uima.resource.metadata.TypeSystemDescription |
createTypeSystemDescription(String... descriptorNames)
Creates a TypeSystemDescription from descriptor names.
|
static org.apache.uima.resource.metadata.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 org.apache.uima.resource.metadata.TypeSystemDescription createTypeSystemDescription(String... descriptorNames)
descriptorNames
- The fully qualified, Java-style, dotted descriptor names.public static org.apache.uima.resource.metadata.TypeSystemDescription createTypeSystemDescriptionFromPath(String... descriptorURIs)
descriptorURIs
- The descriptor file paths.public static org.apache.uima.resource.metadata.TypeSystemDescription createTypeSystemDescription() throws org.apache.uima.resource.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.org.apache.uima.resource.ResourceInitializationException
- if the collected type system descriptions cannot be merged.public static String[] scanTypeDescriptors() throws org.apache.uima.resource.ResourceInitializationException
forceTypeDescriptorsScan()
.org.apache.uima.resource.ResourceInitializationException
- if the locations could not be resolved.public static void forceTypeDescriptorsScan()
scanTypeDescriptors()
will rescan
all auto-import locations.Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.