public class UimaTypeSystem2Ecore extends Object
| Constructor and Description |
|---|
UimaTypeSystem2Ecore() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main program.
|
static void |
uimaTypeSystem2Ecore(String aUimaTypeSystemFilePath,
org.eclipse.emf.ecore.resource.Resource aOutputResource,
Map aOptions)
Converts a UIMA TypeSystem descriptor to an Ecore model
|
static void |
uimaTypeSystem2Ecore(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem,
org.eclipse.emf.ecore.resource.Resource aOutputResource,
Map aOptions)
Converts a UIMA TypeSystemDescription to an Ecore model
|
static void |
uimaTypeSystem2Ecore(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem,
org.eclipse.emf.ecore.resource.Resource aOutputResource,
Map aOptions,
Map aSchemaLocationMap)
Converts a UIMA TypeSystemDescription to an Ecore model
|
public static void uimaTypeSystem2Ecore(String aUimaTypeSystemFilePath, org.eclipse.emf.ecore.resource.Resource aOutputResource, Map aOptions) throws org.apache.uima.util.InvalidXMLException, IOException
aUimaTypeSystemFilePath - file path to UIMA TypeSystem descritporaOutputResource - An EMF Resource to be populated with the Ecore modelaOptions - a Map defining options for the conversion. Valid keys for this map are defined as
constants on this class.org.apache.uima.util.InvalidXMLException - if the TypeSystem descriptor, or one of its imports, is not valid or if there are
duplicate, inconsistent definitions of the same type.IOException - if an failure occur while reading the descriptor filepublic static void uimaTypeSystem2Ecore(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem,
org.eclipse.emf.ecore.resource.Resource aOutputResource,
Map aOptions)
throws org.apache.uima.util.InvalidXMLException
aTypeSystem - UIMA TypeSystemDescription object to convertaOutputResource - An EMF Resource to be populated with the Ecore modelaOptions - a Map defining options for the conversion. Valid keys for this map are defined as
constants on this class.org.apache.uima.util.InvalidXMLException - if the TypeSystem descriptor imports another descriptor that could not be
successfully parsed, or if there are duplicate, inconsistent definitions of the same
type.public static void uimaTypeSystem2Ecore(org.apache.uima.resource.metadata.TypeSystemDescription aTypeSystem,
org.eclipse.emf.ecore.resource.Resource aOutputResource,
Map aOptions,
Map aSchemaLocationMap)
throws org.apache.uima.util.InvalidXMLException
aTypeSystem - UIMA TypeSystemDescription object to convertaOutputResource - An EMF Resource to be populated with the Ecore modelaOptions - a Map defining options for the conversion. Valid keys for this map are defined as
constants on this class.aSchemaLocationMap - optional parameter - if non-null, this map will be populated with (Namespace URI,
Schema Location) pairs, suitable for inclusion in the "schemaLocation" attribute of
XMI instance documents.org.apache.uima.util.InvalidXMLExceptionCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.