Liferay 7.0-ga1 portal-impl

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 String getPackagePath(String fileName)
           
static boolean isInsideQuotes(String s, int pos)
           
static String stripFullyQualifiedClassNames(String content)
          Deprecated. As of 7.0.0, replaced by stripFullyQualifiedClassNames(String, String)
static String stripFullyQualifiedClassNames(String content, String packagePath)
           
static String stripFullyQualifiedClassNames(String content, String imports, String packagePath)
           
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)

getPackagePath

public static String getPackagePath(String fileName)

isInsideQuotes

public static boolean isInsideQuotes(String s,
                                     int pos)

stripFullyQualifiedClassNames

@Deprecated
public static String stripFullyQualifiedClassNames(String content)
                                            throws IOException
Deprecated. As of 7.0.0, replaced by stripFullyQualifiedClassNames(String, String)

Throws:
IOException

stripFullyQualifiedClassNames

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

stripFullyQualifiedClassNames

public static String stripFullyQualifiedClassNames(String content,
                                                   String imports,
                                                   String packagePath)
                                            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-ga1 portal-impl