org.eclipse.gmt.modisco.omg.kdm.source.util
Class KDMSourceUtils

java.lang.Object
  extended by org.eclipse.gmt.modisco.omg.kdm.source.util.KDMSourceUtils

public class KDMSourceUtils
extends java.lang.Object

Utils for KDMSource Model exploitation


Method Summary
static java.util.List<BinaryFile> getBinaryFilesFromInventoryModel(InventoryContainer container, java.util.ArrayList<java.lang.String> filteredDirectoryName, boolean recurseOnSubDirectories)
          Return all the binary files from a InventoryModel
static java.util.List<Directory> getDirectoriesFromInventoryModel(InventoryContainer container, java.util.List<java.lang.String> filteredDirectoryName, boolean recurseOnSubDirectories)
          Return all the directories from a inventoryModel
static Directory getDirectoryByPath(java.lang.String path, InventoryContainer inventoryContainer)
          Return the Directory corresponding to the given path
static java.util.List<SourceFile> getSourceFileFromInventoryModel(InventoryContainer container, java.util.List<java.lang.String> filteredDirectoryName, boolean recurseOnSubDirectories)
          Return all the source files contained in the inventoryModel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBinaryFilesFromInventoryModel

public static java.util.List<BinaryFile> getBinaryFilesFromInventoryModel(InventoryContainer container,
                                                                          java.util.ArrayList<java.lang.String> filteredDirectoryName,
                                                                          boolean recurseOnSubDirectories)
Return all the binary files from a InventoryModel

Parameters:
inventoryModel - The inventoryModel from which to retrieve the binary files
filteredDirectoryName - The names of directories excluded from the search
recurseOnSubDirectories - Add the subDirectories to the search
Returns:
The list of all the binary files contained in the segment

getSourceFileFromInventoryModel

public static java.util.List<SourceFile> getSourceFileFromInventoryModel(InventoryContainer container,
                                                                         java.util.List<java.lang.String> filteredDirectoryName,
                                                                         boolean recurseOnSubDirectories)
Return all the source files contained in the inventoryModel

Parameters:
inventoryModel - The inventoryModel from which to retrieve the source files
filteredDirectoryName - The names of directories excluded from the search
recurseOnSubDirectories - Add the subDirectories to the search
Returns:

getDirectoriesFromInventoryModel

public static java.util.List<Directory> getDirectoriesFromInventoryModel(InventoryContainer container,
                                                                         java.util.List<java.lang.String> filteredDirectoryName,
                                                                         boolean recurseOnSubDirectories)
Return all the directories from a inventoryModel

Parameters:
inventoryContainer - The inventoryModel from which to retrieve the Directory
filteredDirectoryName - The names of directories excluded from the search
recurseOnSubDirectories - Add the subDirectories to the search
Returns:

getDirectoryByPath

public static Directory getDirectoryByPath(java.lang.String path,
                                           InventoryContainer inventoryContainer)
Return the Directory corresponding to the given path

Parameters:
path - The path to look for a Directory
inventoryContainer - The Container to look for the Directory
Returns:
the Directory which path matches the given path in parameter or null