Package org.eclipse.steady
Class FileAnalyzerFactory
- java.lang.Object
-
- org.eclipse.steady.FileAnalyzerFactory
-
public class FileAnalyzerFactory extends Object
Creates instances ofFileAnalyzer.
-
-
Constructor Summary
Constructors Constructor Description FileAnalyzerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileAnalyzerbuildFileAnalyzer(File _file)Creates instances ofFileAnalyzerdepending on the file.static FileAnalyzerbuildFileAnalyzer(File _file, String[] _exts)Creates instances ofFileAnalyzerdepending on the file.static String[]getSupportedFileExtensions()Loops over allFileAnalyzers and returns an array of all supported file extensions.static booleanisSupportedFileExtension(String _ext)isSupportedFileExtension.
-
-
-
Method Detail
-
getSupportedFileExtensions
public static String[] getSupportedFileExtensions()
Loops over allFileAnalyzers and returns an array of all supported file extensions.- Returns:
- an array of
Stringobjects.
-
isSupportedFileExtension
public static boolean isSupportedFileExtension(String _ext)
isSupportedFileExtension.
- Parameters:
_ext- aStringobject.- Returns:
- a boolean.
-
buildFileAnalyzer
public static final FileAnalyzer buildFileAnalyzer(File _file) throws IllegalArgumentException
Creates instances ofFileAnalyzerdepending on the file.- Parameters:
_file- aFileobject.- Returns:
- a
FileAnalyzerobject. - Throws:
IllegalArgumentException- if any.
-
buildFileAnalyzer
public static final FileAnalyzer buildFileAnalyzer(File _file, String[] _exts) throws IllegalArgumentException
Creates instances ofFileAnalyzerdepending on the file.- Parameters:
_file- aFileobject._exts- an array ofStringobjects.- Returns:
- a
FileAnalyzerobject. - Throws:
IllegalArgumentException- if any.
-
-