Liferay 7.0-ce-b4

com.liferay.portal.tools
Class ToolsUtil

java.lang.Object
  extended by com.liferay.portal.tools.ToolsUtil

public class ToolsUtil
extends Object


Field Summary
static String AUTHOR
           
 
Constructor Summary
ToolsUtil()
           
 
Method Summary
static String getContent(String fileName)
           
static String getPackagePath(File file)
           
static boolean isInsideQuotes(String s, int pos)
           
static String stripFullyQualifiedClassNames(String content)
           
static String stripFullyQualifiedClassNames(String content, String imports)
           
static void writeFile(File file, String content, Set<String> modifiedFileNames)
           
static void writeFile(File file, String content, String author, Map<String,Object> jalopySettings, Set<String> modifiedFileNames)
           
static void writeFile(File file, String content, String author, Set<String> modifiedFileNames)
           
static void writeFileRaw(File file, String content, Set<String> modifiedFileNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHOR

public static final String AUTHOR
See Also:
Constant Field Values
Constructor Detail

ToolsUtil

public ToolsUtil()
Method Detail

getContent

public static String getContent(String fileName)
                         throws Exception
Throws:
Exception

getPackagePath

public static String getPackagePath(File file)

isInsideQuotes

public static boolean isInsideQuotes(String s,
                                     int pos)

stripFullyQualifiedClassNames

public static String stripFullyQualifiedClassNames(String content)
                                            throws IOException
Throws:
IOException

stripFullyQualifiedClassNames

public static String stripFullyQualifiedClassNames(String content,
                                                   String imports)
                                            throws IOException
Throws:
IOException

writeFile

public static void writeFile(File file,
                             String content,
                             Set<String> modifiedFileNames)
                      throws IOException
Throws:
IOException

writeFile

public static void writeFile(File file,
                             String content,
                             String author,
                             Map<String,Object> jalopySettings,
                             Set<String> modifiedFileNames)
                      throws IOException
Throws:
IOException

writeFile

public static void writeFile(File file,
                             String content,
                             String author,
                             Set<String> modifiedFileNames)
                      throws IOException
Throws:
IOException

writeFileRaw

public static void writeFileRaw(File file,
                                String content,
                                Set<String> modifiedFileNames)
                         throws IOException
Throws:
IOException

Liferay 7.0-ce-b4