|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.egf.pattern.ecore.AbstractPatternGenerator
public abstract class AbstractPatternGenerator
Ecore pattern generator.
| Field Summary | |
|---|---|
protected static String |
ECORE_ECORE_FILE_ABSOLUTE_PATH
Ecore ecore file absolute path. |
protected static String |
GENERATED_TEMPLATE_FOLDER_PATH
Generated templates sub-folder path. |
protected static String |
PATTERN_ECORE_FILE_RELATIVE_PATH
Pattern ecore file absolute path. |
protected static String |
PATTERN_PARENT_CLASS_NAME
Pattern parent class name, that is 'Pattern'. |
protected static String |
TEMPLATES_FOLDER_NAME
Templates folder name. |
| Constructor Summary | |
|---|---|
AbstractPatternGenerator()
|
|
| Method Summary | |
|---|---|
static EOperation |
addOperation(Pattern pattern_p,
String operationName_p)
Add a new operation to handled pattern. |
static void |
computeOperationsAnnotations(Pattern pattern_p,
String fcId_p,
AnnotationHandler annotationHandler_p)
(Re)Compute annotations for all pattern operations. |
static void |
computeProductionAnnotation(Pattern pattern_p,
PatternHandler.ProductionOptionsHandler handler_p,
AnnotationHandler annotationHandler_p)
Compute and add production annotation for given pattern. |
protected abstract void |
fillPattern(Pattern newPattern_p,
AnnotationHandler handler_p,
EOperation generate_p)
Fill newly created pattern with expected content. |
boolean |
generateEcoreFile()
Generate pattern ecore file. |
protected static EClass |
getDependencyFromName(String name_p,
String ecoreURI_p,
ResourceSet resourceSet_p)
Find the class corresponding to given name in pointed ecore file. |
protected String |
getParentClassName()
Get parent parent class name. |
protected String |
getParentEcoreURI()
Get pattern parent class ecore URI. |
protected abstract String |
getPatternContainingPluginId()
Get pattern containing plug-in id. |
protected abstract String |
getPatternFullId()
Get pattern full id. |
static String |
getPatternModelRelativePath(String containerId_p,
String patternId_p)
Get pattern model relative path. |
protected List<ParameterRelation> |
getPatternParameters(ResourceSet resourceSet_p)
Get pattern parameters. |
protected String |
getPatternShortId(Pattern pattern_p)
Get pattern short id. |
protected String |
getTemplateRelativePath(String patternShortId_p,
String operationName_p,
String operationId_p)
Get template relative path from operation name. |
static void |
removeOperation(Pattern pattern_p,
EOperation operation_p)
Remove operation from given pattern. |
static void |
setPatternParent(Pattern pattern_p,
String parentClassName_p,
String parentEcoreURI_p,
ResourceSet resourceSet_p)
Set pattern parent to identified one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String ECORE_ECORE_FILE_ABSOLUTE_PATH
protected static final String PATTERN_ECORE_FILE_RELATIVE_PATH
protected static final String PATTERN_PARENT_CLASS_NAME
protected static final String TEMPLATES_FOLDER_NAME
protected static final String GENERATED_TEMPLATE_FOLDER_PATH
| Constructor Detail |
|---|
public AbstractPatternGenerator()
| Method Detail |
|---|
protected static EClass getDependencyFromName(String name_p,
String ecoreURI_p,
ResourceSet resourceSet_p)
name_p - ecoreURI_p - resourceSet_p -
protected List<ParameterRelation> getPatternParameters(ResourceSet resourceSet_p)
resourceSet_p -
public static void setPatternParent(Pattern pattern_p,
String parentClassName_p,
String parentEcoreURI_p,
ResourceSet resourceSet_p)
Pattern.
pattern_p - The pattern that should be updated.parentClassName_p - Parent class name, literally, or null if parent is to be reset.parentEcoreURI_p - Parent class containing ecore uri, or null if parent is to be reset.resourceSet_p - An existing one, or null if none is available.public boolean generateEcoreFile()
public static void computeOperationsAnnotations(Pattern pattern_p,
String fcId_p,
AnnotationHandler annotationHandler_p)
pattern_p - fcId_p - annotationHandler_p -
public static void computeProductionAnnotation(Pattern pattern_p,
PatternHandler.ProductionOptionsHandler handler_p,
AnnotationHandler annotationHandler_p)
pattern_p - The pattern needing to be tagged with a production annotation.handler_p - The production options handler, containing the annotation value.annotationHandler_p - A possibly existing annotation handler, null if none to provide at call time.
public static String getPatternModelRelativePath(String containerId_p,
String patternId_p)
containerId_p - either the factory component or the plug-in id, depending on the caller.patternId_p -
public static EOperation addOperation(Pattern pattern_p,
String operationName_p)
operationName_p -
public static void removeOperation(Pattern pattern_p,
EOperation operation_p)
pattern_p - operation_p - protected String getPatternShortId(Pattern pattern_p)
pattern_p -
protected String getTemplateRelativePath(String patternShortId_p,
String operationName_p,
String operationId_p)
patternShortId_p - operationName_p - operationId_p -
protected abstract void fillPattern(Pattern newPattern_p,
AnnotationHandler handler_p,
EOperation generate_p)
newPattern_p - handler_p - generateContent_p - protected String getParentClassName()
protected String getParentEcoreURI()
protected abstract String getPatternContainingPluginId()
protected abstract String getPatternFullId()
|
EGF Engine Release 0.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.