public class Ecore2UimaTypeSystem extends Object
Modifier and Type | Field and Description |
---|---|
static String |
OPTION_CREATE_ANNOTATION_SUBTYPES
Configures the assignment of supertypes to EClasses that have no declared supertype.
|
static String |
OPTION_GENERATE_UIMA_LIST_TYPES
Configures the handling of multi-valued properties in the Ecore model.
|
Constructor and Description |
---|
Ecore2UimaTypeSystem() |
Modifier and Type | Method and Description |
---|---|
static TypeSystemDescription |
ecore2UimaTypeSystem(Resource aEcoreResource,
Map aOptions)
Converts an Ecore model to a UIMA TypeSytemDescription.
|
static TypeSystemDescription |
ecore2UimaTypeSystem(String aEcoreFilePath,
Map aOptions)
Converts an Ecore model to a UIMA TypeSytemDescription.
|
static void |
main(String[] args)
Main program.
|
public static final String OPTION_GENERATE_UIMA_LIST_TYPES
public static final String OPTION_CREATE_ANNOTATION_SUBTYPES
public static TypeSystemDescription ecore2UimaTypeSystem(String aEcoreFilePath, Map aOptions) throws URISyntaxException
aEcoreFilePath
- file path to a .ecore model fileaOptions
- a Map defining options for the conversion. Valid keys for this map are defined as
constants on this class.URISyntaxException
- if there is a problem finding or reading the .ecore filepublic static TypeSystemDescription ecore2UimaTypeSystem(Resource aEcoreResource, Map aOptions) throws URISyntaxException
aEcoreResource
- An EMF Resource containing the Ecore modelaOptions
- a Map defining options for the conversion. Valid keys for this map are defined as
constants on this class.URISyntaxException
- if there is a problem reading from the resourceCopyright © 2015. All rights reserved.