org.apache.uima.examples.xmi
public class UimaTypeSystem2Ecore extends java.lang.Object
Constructor and Description |
---|
UimaTypeSystem2Ecore() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main program.
|
static void |
uimaTypeSystem2Ecore(java.lang.String aUimaTypeSystemFilePath,
Resource aOutputResource,
java.util.Map aOptions)
Converts a UIMA TypeSystem descriptor to an Ecore model
|
static void |
uimaTypeSystem2Ecore(TypeSystemDescription aTypeSystem,
Resource aOutputResource,
java.util.Map aOptions)
Converts a UIMA TypeSystemDescription to an Ecore model
|
static void |
uimaTypeSystem2Ecore(TypeSystemDescription aTypeSystem,
Resource aOutputResource,
java.util.Map aOptions,
java.util.Map aSchemaLocationMap)
Converts a UIMA TypeSystemDescription to an Ecore model
|
public static void uimaTypeSystem2Ecore(java.lang.String aUimaTypeSystemFilePath, Resource aOutputResource, java.util.Map aOptions) throws InvalidXMLException, java.io.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.InvalidXMLException
- if the TypeSystem descriptor, or one of its imports, is not valid or if there are
duplicate, inconsistent definitions of the same type.java.io.IOException
- if an failure occur while reading the descriptor filepublic static void uimaTypeSystem2Ecore(TypeSystemDescription aTypeSystem, Resource aOutputResource, java.util.Map aOptions) throws 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.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(TypeSystemDescription aTypeSystem, Resource aOutputResource, java.util.Map aOptions, java.util.Map aSchemaLocationMap) throws 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.InvalidXMLException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
Copyright © 2014. All Rights Reserved.