|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.m2m.atl.engine.parser.AtlSourceManager
public final class AtlSourceManager
ATL source inspector, used to catch main file informations. Also allows to update them.
| Field Summary | |
|---|---|
static int |
ATL_FILE_TYPE_LIBRARY
Library. |
static int |
ATL_FILE_TYPE_MODULE
Module. |
static int |
ATL_FILE_TYPE_QUERY
Query. |
static int |
ATL_FILE_TYPE_UNDEFINED
Undefined. |
static java.lang.String |
COMPILER_TAG
ATL compiler tag. |
static int |
FILTER_ALL_METAMODELS
0 : input + output metamodels. |
static int |
FILTER_INPUT_METAMODELS
1 : input metamodels. |
static int |
FILTER_OUTPUT_METAMODELS
2 : OUTPUT metamodels. |
static java.lang.String |
PATH_TAG
PATH tag value. |
static java.lang.String |
URI_TAG
URI tag value. |
| Constructor Summary | |
|---|---|
AtlSourceManager()
Creates an atl source manager. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAtlCompiler()
|
int |
getATLFileType()
Returns the ATL file type. |
static java.lang.String |
getCompilerName(java.util.List compilers)
Returns the compiler name, or the default name if null. |
java.util.Map |
getInputModels()
|
java.util.List |
getLibrariesImports()
|
java.util.Map |
getMetamodelLocations()
|
java.util.Map |
getMetamodelPackages(int filter)
Metamodels access method. |
java.util.List |
getMetamodelPackages(java.lang.String metamodelId)
Access on a specific metamodel. |
org.eclipse.emf.ecore.EObject |
getModel()
|
java.util.Map |
getOutputModels()
|
static java.util.List |
getTaggedInformations(byte[] buffer,
java.lang.String tag)
Returns the list of tagged informations (header). |
boolean |
initialized()
Status method. |
boolean |
isRefining()
|
void |
updateDataSource(java.io.InputStream inputStream)
Update method : parsing and metamodel detection. |
void |
updateDataSource(java.lang.String content)
Update method : parsing and metamodel detection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMPILER_TAG
public static final java.lang.String URI_TAG
public static final java.lang.String PATH_TAG
public static final int ATL_FILE_TYPE_UNDEFINED
public static final int ATL_FILE_TYPE_MODULE
public static final int ATL_FILE_TYPE_QUERY
public static final int ATL_FILE_TYPE_LIBRARY
public static final int FILTER_ALL_METAMODELS
public static final int FILTER_INPUT_METAMODELS
public static final int FILTER_OUTPUT_METAMODELS
| Constructor Detail |
|---|
public AtlSourceManager()
| Method Detail |
|---|
public int getATLFileType()
public java.util.Map getInputModels()
public java.util.Map getOutputModels()
public java.util.List getLibrariesImports()
public void updateDataSource(java.lang.String content)
content - the content of the atl file
public void updateDataSource(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - the atl file input stream
java.io.IOExceptionpublic boolean isRefining()
public org.eclipse.emf.ecore.EObject getModel()
public java.util.Map getMetamodelPackages(int filter)
filter - the metamodel filter
public java.util.List getMetamodelPackages(java.lang.String metamodelId)
metamodelId - the metamodel id
public java.lang.String getAtlCompiler()
public java.util.Map getMetamodelLocations()
public boolean initialized()
True if the some metamodels have ever been detected , False if not.
public static java.util.List getTaggedInformations(byte[] buffer,
java.lang.String tag)
buffer - the inputtag - the tag to search
public static java.lang.String getCompilerName(java.util.List compilers)
compilers - the list of compilers
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||