| java.lang.Object org.jaffa.tools.common.SourceDecomposerUtils
SourceDecomposerUtils | public class SourceDecomposerUtils (Code) | | Utilities class for the SourceDecomposer.
|
Method Summary | |
public static boolean | isJaffaOverwriteMarkerPresent(File file) This method will check the code generated file for the '//JAFFA-OVERWRITE' marker.
Returns a true if the marker is found.
Parameters: file - the code generated file. throws: IOException - if any IO error occurs. | public static void | listCustomizations(String dir, String fileFilter, boolean recursive, BufferedWriter writer, String customizationFilter) This method will list the customizations added to code generated files.
Parameters: dir - the directory containing the the code generated files. Parameters: fileFilter - the files will be selected based on this filter. | public static void | listCustomizations(File dir, String fileFilter, boolean recursive, BufferedWriter writer, String customizationFilter) This method will list the customizations added to code generated files.
Parameters: dir - the directory containing the the code generated files. Parameters: fileFilter - the files will be selected based on this filter. | public static void | listCustomizations(File file, BufferedWriter writer, String customizationFilter) This method will list the customizations added to a code generated file.
Parameters: file - the code generated file. Parameters: writer - the customizations will be written to this writer. Parameters: customizationFilter - the customizations will be filtered based on this paramter. |
isJaffaOverwriteMarkerPresent | public static boolean isJaffaOverwriteMarkerPresent(File file) throws IOException(Code) | | This method will check the code generated file for the '//JAFFA-OVERWRITE' marker.
Returns a true if the marker is found.
Parameters: file - the code generated file. throws: IOException - if any IO error occurs. true if the '//JAFFA-OVERWRITE' marker is found in the input file. |
listCustomizations | public static void listCustomizations(String dir, String fileFilter, boolean recursive, BufferedWriter writer, String customizationFilter) throws IOException, SourceDecomposerException(Code) | | This method will list the customizations added to code generated files.
Parameters: dir - the directory containing the the code generated files. Parameters: fileFilter - the files will be selected based on this filter. if no value is specified, then all files will be picked up. Parameters: recursive - if true, then the sub-folders will be checked too. Parameters: writer - the customizations will be written to this writer. Parameters: customizationFilter - the customizations will be filtered based on this paramter. If no value is passed, then all the customizations will be listed. throws: IOException - if any IO error occurs. throws: SourceDecomposerException - if the file is malformed or if it cannot be decomposed. |
listCustomizations | public static void listCustomizations(File dir, String fileFilter, boolean recursive, BufferedWriter writer, String customizationFilter) throws IOException, SourceDecomposerException(Code) | | This method will list the customizations added to code generated files.
Parameters: dir - the directory containing the the code generated files. Parameters: fileFilter - the files will be selected based on this filter. if no value is specified, then all files will be picked up. Parameters: recursive - if true, then the sub-folders will be checked too. Parameters: writer - the customizations will be written to this writer. Parameters: customizationFilter - the customizations will be filtered based on this paramter. If no value is passed, then all the customizations will be listed. throws: IOException - if any IO error occurs. throws: SourceDecomposerException - if the file is malformed or if it cannot be decomposed. |
listCustomizations | public static void listCustomizations(File file, BufferedWriter writer, String customizationFilter) throws IOException, SourceDecomposerException(Code) | | This method will list the customizations added to a code generated file.
Parameters: file - the code generated file. Parameters: writer - the customizations will be written to this writer. Parameters: customizationFilter - the customizations will be filtered based on this paramter. If no value is passed, then all the customizations will be listed. throws: IOException - if any IO error occurs. throws: SourceDecomposerException - if the file is malformed or if it cannot be decomposed. |
|
|