org.springframework.roo.addon.surf.util
Class SurfUtils
java.lang.Object
org.springframework.roo.addon.surf.util.SurfUtils
public class SurfUtils
- extends Object
- Author:
- Yong Qu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SurfUtils
public SurfUtils()
getElementValue
public static String getElementValue(org.springframework.roo.process.manager.FileManager fileManager,
org.springframework.roo.file.monitor.event.FileDetails xmlFile,
String xPath)
getSurfXMLDoc
public static Document getSurfXMLDoc(org.springframework.roo.process.manager.FileManager fileManager,
org.springframework.roo.file.monitor.event.FileDetails xmlFile)
checkSurfXMLType
public static boolean checkSurfXMLType(org.springframework.roo.process.manager.FileManager fileManager,
String filePath,
String type)
- Parameters:
fileManager
- filePath
- type
-
- Returns:
unzip
public static void unzip(org.springframework.roo.process.manager.FileManager fileManager,
String zipFilePath,
String descPath)
- Parameters:
fileManager
- zipFilePath
- descPath
-
fileContainsString
public static boolean fileContainsString(InputStream inputStream,
String str)
- Parameters:
inputStream
- str
-
- Returns:
getNameFromPath
public static String getNameFromPath(String path)
- Parameters:
path
-
- Returns:
getRelativePath
public static String getRelativePath(String path)
- Parameters:
path
-
- Returns:
Copyright © 2009 SpringSource, Inc. All Rights Reserved.