org.springframework.roo.addon.surf.util
Class SurfUtils

java.lang.Object
  extended by org.springframework.roo.addon.surf.util.SurfUtils

public class SurfUtils
extends Object

Author:
Yong Qu

Constructor Summary
SurfUtils()
           
 
Method Summary
static boolean checkSurfXMLType(org.springframework.roo.process.manager.FileManager fileManager, String filePath, String type)
           
static boolean fileContainsString(InputStream inputStream, String str)
           
static String getElementValue(org.springframework.roo.process.manager.FileManager fileManager, org.springframework.roo.file.monitor.event.FileDetails xmlFile, String xPath)
           
static String getNameFromPath(String path)
           
static String getRelativePath(String path)
           
static Document getSurfXMLDoc(org.springframework.roo.process.manager.FileManager fileManager, org.springframework.roo.file.monitor.event.FileDetails xmlFile)
           
static void unzip(org.springframework.roo.process.manager.FileManager fileManager, String zipFilePath, String descPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfUtils

public SurfUtils()
Method Detail

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.