EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ecore
Class PatternHandler.PatternData

java.lang.Object
  extended by org.eclipse.egf.pattern.ecore.PatternHandler.PatternData
Enclosing class:
PatternHandler

public class PatternHandler.PatternData
extends Object

Pattern data.
Provides with different pieces of information for locating the pattern file and details about its content.


Field Summary
protected  List<CallParameter> _callParameters
          Public method parameters.
protected  String _fcId
          The containing factory component id.
protected  String _fileRelativePath
          Ecore file relative path.
protected  EOperation _generateOperation
          Generate operation.
protected  IJavaProject _javaProject
          Java project containing the pattern.
protected  List<ParameterRelation> _parameters
          All pattern matching parameters, including parents ones.
protected  Pattern _parentPattern
          Parent pattern, if any.
protected  Pattern _pattern
          Pattern reference as object loaded from the ecore file.
protected  Set<String> _patternDependenciesIds
          Set of parent patterns full ids.
protected  String _patternLogicalName
          Pattern logical name.
protected  String _patternName
          Pattern name.
protected  PatternHandler.ProductionOptionsHandler _productionOptionsHandler
          Production options handler.
 
Constructor Summary
PatternHandler.PatternData()
           
 
Method Summary
 void cleanGeneratedStructures()
          Clean generated structures.
 List<ParameterRelation> getAllParameters()
          Get all pattern matching parameters, including parents ones, starting from farthest (higher parent) to closest (current pattern) parameters.
 List<CallParameter> getCallParameters()
          Get all public method parameters, also stated as 'Call parameters'.
 String getFactoryComponentId()
          Get factory component id.
 String getFileRelativePath()
           
 EOperation getGenerateOperation()
          Get generate operation.
 IJavaProject getJavaProject()
           
 Pattern getParentPattern()
          Get parent pattern.
 Pattern getPattern()
           
 Set<String> getPatternDependenciesIds()
           
 String getPatternLogicalName()
           
 String getPatternName()
           
 String getPluginId()
           
 PatternHandler.ProductionOptionsHandler getProductionOptionsHandler()
          Get production options handler.
 String getRealRelativePath()
          Get real pattern model file relative path, based on factory component id to plug-in id resolution mechanism.
 void setPatternLogicalName(String patternLogicalName_p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fileRelativePath

protected String _fileRelativePath
Ecore file relative path. It is composed of the factory component id containing the pattern, plus the path inside the factory component to the ecore file.


_fcId

protected String _fcId
The containing factory component id.


_javaProject

protected IJavaProject _javaProject
Java project containing the pattern.
Null means pattern has already been deployed.


_pattern

protected Pattern _pattern
Pattern reference as object loaded from the ecore file.
Does not stand for the generated one.


_patternName

protected String _patternName
Pattern name.


_patternLogicalName

protected String _patternLogicalName
Pattern logical name.


_patternDependenciesIds

protected Set<String> _patternDependenciesIds
Set of parent patterns full ids.


_parameters

protected List<ParameterRelation> _parameters
All pattern matching parameters, including parents ones.


_callParameters

protected List<CallParameter> _callParameters
Public method parameters.


_generateOperation

protected EOperation _generateOperation
Generate operation.


_parentPattern

protected Pattern _parentPattern
Parent pattern, if any.


_productionOptionsHandler

protected PatternHandler.ProductionOptionsHandler _productionOptionsHandler
Production options handler.

Constructor Detail

PatternHandler.PatternData

public PatternHandler.PatternData()
Method Detail

getGenerateOperation

public EOperation getGenerateOperation()
Get generate operation.

Returns:

getRealRelativePath

public String getRealRelativePath()
Get real pattern model file relative path, based on factory component id to plug-in id resolution mechanism.

Returns:

getFileRelativePath

public String getFileRelativePath()
Returns:
the fileRelativePath

getPluginId

public String getPluginId()
Returns:
the pluginId

getFactoryComponentId

public String getFactoryComponentId()
Get factory component id.

Returns:

getJavaProject

public IJavaProject getJavaProject()
Returns:
the javaProject

getPattern

public Pattern getPattern()
Returns:
the pattern

getPatternName

public String getPatternName()
Returns:
the patternName

getPatternLogicalName

public String getPatternLogicalName()
Returns:
the patternLogicalName

setPatternLogicalName

public void setPatternLogicalName(String patternLogicalName_p)

getPatternDependenciesIds

public Set<String> getPatternDependenciesIds()
Returns:
the patternDependenciesIds

getProductionOptionsHandler

public PatternHandler.ProductionOptionsHandler getProductionOptionsHandler()
Get production options handler.

Returns:

getAllParameters

public List<ParameterRelation> getAllParameters()
Get all pattern matching parameters, including parents ones, starting from farthest (higher parent) to closest (current pattern) parameters.

Returns:
the parameters

getCallParameters

public List<CallParameter> getCallParameters()
Get all public method parameters, also stated as 'Call parameters'.

Returns:

getParentPattern

public Pattern getParentPattern()
Get parent pattern.

Returns:
the parentPattern

cleanGeneratedStructures

public void cleanGeneratedStructures()
Clean generated structures.
This is a convenient method for fixing inheritance error bug in 1.2.0_M4.
There should not be such method in PatternHandler.PatternData.
TODO Guillaume. Remove this method from 1.2.0_M5 release and replace it with an access to pattern handlers in pattern producer.


EGF Engine
Release 0.1.0

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.