EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.production
Class GeneratedContentHelper

java.lang.Object
  extended by org.eclipse.egf.pattern.production.GeneratedContentHelper

public class GeneratedContentHelper
extends Object


Constructor Summary
GeneratedContentHelper()
           
 
Method Summary
static IPath getBinaryOutputPatternGeneratedFolder(IJavaProject project_p)
          Get the binary output pattern generated IPath.
static List<String> getEMFGeneratedPackagesNames(PatternHandler.PatternData patternData_p)
          Get pattern generated EMF packages names.
static String getEMFGeneratedRootFolderRelativePath(PatternHandler.PatternData patternData_p)
          Get pattern generated EMF root folder path.
static String getGeneratedPatternClassRelativePath(PatternHandler.PatternData patternData_p)
          Get generated pattern class relative path, if any.
static String getPatternClassName(Pattern pattern_p)
          Get pattern generated EMF class name.
static String getPatternIdentifier(IFile element_p)
          Get an IFile as a normalized Pattern shortID.
static String getPatternIdentifier(IFolder element_p)
          Get an IFolder as a normalized Pattern shortID.
static IFolder getPatternOutputPath(IProject project_p)
          Get the pattern model output IFolder.
static String getPatternPackageName(Pattern pattern_p)
          Get pattern generated EMF package name.
static String getPatternPackageNsPrefix(Pattern pattern_p)
          Get pattern generated EMF package namespace prefix.
static String getPatternPackageNsURI(Pattern pattern_p)
          Get pattern generated EMF package namespace URI.
protected static Couple<String,String> getPatternTemplateClassDescription(PatternHandler.PatternData patternData_p)
          Get generated pattern class description, if applicable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedContentHelper

public GeneratedContentHelper()
Method Detail

getPatternOutputPath

public static IFolder getPatternOutputPath(IProject project_p)
Get the pattern model output IFolder.

Parameters:
project_p -
Returns:
null if given parameter is null.

getBinaryOutputPatternGeneratedFolder

public static IPath getBinaryOutputPatternGeneratedFolder(IJavaProject project_p)
Get the binary output pattern generated IPath.

Parameters:
project_p -
Returns:
null if given parameter is null.

getPatternIdentifier

public static String getPatternIdentifier(IFile element_p)
Get an IFile as a normalized Pattern shortID. This implementation is the opposite transformation of the getPatternClassName method.

Parameters:
pattern_p -
Returns:
null if given parameter is null.

getPatternClassName

public static String getPatternClassName(Pattern pattern_p)
Get pattern generated EMF class name. This implementation is the opposite transformation of the getPatternIdentifier method.

Parameters:
pattern_p -
Returns:
null if given parameter is null.

getPatternIdentifier

public static String getPatternIdentifier(IFolder element_p)
Get an IFolder as a normalized Pattern shortID. This implementation is the opposite transformation of the getPatternPackageName method.

Parameters:
pattern_p -
Returns:
null if given parameter is null.

getPatternPackageName

public static String getPatternPackageName(Pattern pattern_p)
Get pattern generated EMF package name. This implementation is the opposite transformation of the getPatternIdentifier method.

Parameters:
pattern_p -
Returns:
null if given parameter is null.

getPatternPackageNsPrefix

public static String getPatternPackageNsPrefix(Pattern pattern_p)
Get pattern generated EMF package namespace prefix.

Parameters:
pattern_p -
Returns:
null if given parameter is null.

getPatternPackageNsURI

public static String getPatternPackageNsURI(Pattern pattern_p)
Get pattern generated EMF package namespace URI.

Parameters:
pattern_p -
Returns:
null if given parameter is null.

getEMFGeneratedRootFolderRelativePath

public static String getEMFGeneratedRootFolderRelativePath(PatternHandler.PatternData patternData_p)
Get pattern generated EMF root folder path.

Parameters:
patternData_p -
Returns:
null if given parameter is null.

getEMFGeneratedPackagesNames

public static List<String> getEMFGeneratedPackagesNames(PatternHandler.PatternData patternData_p)
Get pattern generated EMF packages names.

Parameters:
patternData_p -
Returns:
a list of packages names. Empty if given pattern data is null.

getPatternTemplateClassDescription

protected static Couple<String,String> getPatternTemplateClassDescription(PatternHandler.PatternData patternData_p)
Get generated pattern class description, if applicable.
That is, if the pattern engine leads to a compiled Java class, get its package and class names.

Parameters:
patternData_p -
Returns:
null if not applicable, or could not be found (not compiled yet). Else, a (package name, class name) couple.

getGeneratedPatternClassRelativePath

public static String getGeneratedPatternClassRelativePath(PatternHandler.PatternData patternData_p)
Get generated pattern class relative path, if any.
A pattern may not have a generated class, if :

Parameters:
patternData_p -
Returns:
null if it could not be found, else the workspace relative path to the Java class.

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.