org.apache.uima.examples.xmi
public class Ecore2UimaTypeSystem extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_CREATE_ANNOTATION_SUBTYPES
Configures the assignment of supertypes to EClasses that have no declared supertype.
|
static java.lang.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,
java.util.Map aOptions)
Converts an Ecore model to a UIMA TypeSytemDescription.
|
static TypeSystemDescription |
ecore2UimaTypeSystem(java.lang.String aEcoreFilePath,
java.util.Map aOptions)
Converts an Ecore model to a UIMA TypeSytemDescription.
|
static void |
main(java.lang.String[] args)
Main program.
|
public static final java.lang.String OPTION_GENERATE_UIMA_LIST_TYPES
public static final java.lang.String OPTION_CREATE_ANNOTATION_SUBTYPES
public static TypeSystemDescription ecore2UimaTypeSystem(java.lang.String aEcoreFilePath, java.util.Map aOptions) throws java.net.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.java.net.URISyntaxException
- if there is a problem finding or reading the .ecore filepublic static TypeSystemDescription ecore2UimaTypeSystem(Resource aEcoreResource, java.util.Map aOptions) throws java.net.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.java.net.URISyntaxException
- if there is a problem reading from the resourcepublic static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2014. All Rights Reserved.