Package core.support.annotation.helper
Class PackageHelper
- java.lang.Object
-
- core.support.annotation.helper.PackageHelper
-
public class PackageHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_MANAGER_CLASSstatic StringCONFIG_MANAGER_PATHstatic StringDATA_PATHstatic StringMODULE_CLASSstatic StringMODULE_MANAGER_CLASSstatic StringMODULE_MANAGER_PATHstatic StringMODULE_PACKAGEstatic StringPANEL_MANAGER_CLASSstatic StringSERVICE_PATH
-
Constructor Summary
Constructors Constructor Description PackageHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetAppName(Element element)static StringgetClassName(String classPath)gets class name from path eg.static StringgetFirstModuleFullPath(Map<String,List<String>> panelMap)gets the full path of the first module eg.static StringgetModuleFromFullPath(File file)returns the module name from the file path module is directory after "module" directory eg.static Set<String>getModuleList(List<File> files)gets the list of modules that have csv data filesstatic StringgetModuleName(String element)gets module name.static StringgetPackagePath(String element)static StringgetRootPath(String path)path: module.android.panelstatic booleanhasPackagePath(String value)returns true if package path is contained in the name eg.
-
-
-
Field Detail
-
CONFIG_MANAGER_CLASS
public static String CONFIG_MANAGER_CLASS
-
MODULE_MANAGER_CLASS
public static String MODULE_MANAGER_CLASS
-
PANEL_MANAGER_CLASS
public static String PANEL_MANAGER_CLASS
-
MODULE_CLASS
public static String MODULE_CLASS
-
DATA_PATH
public static String DATA_PATH
-
SERVICE_PATH
public static String SERVICE_PATH
-
MODULE_MANAGER_PATH
public static String MODULE_MANAGER_PATH
-
MODULE_PACKAGE
public static String MODULE_PACKAGE
-
CONFIG_MANAGER_PATH
public static String CONFIG_MANAGER_PATH
-
-
Method Detail
-
getModuleName
public static String getModuleName(String element)
gets module name. eg. module.android.LoginPanel with return android- Parameters:
element-- Returns:
-
getRootPath
public static String getRootPath(String path)
path: module.android.panel- Parameters:
path-- Returns:
- "module"
-
getFirstModuleFullPath
public static String getFirstModuleFullPath(Map<String,List<String>> panelMap)
gets the full path of the first module eg. module.android.panel- Parameters:
panelMap-- Returns:
-
getModuleFromFullPath
public static String getModuleFromFullPath(File file)
returns the module name from the file path module is directory after "module" directory eg. module.webapp.data.user.csv will return webapp outside module: data.user.csv will return data- Returns:
-
getModuleList
public static Set<String> getModuleList(List<File> files)
gets the list of modules that have csv data files- Parameters:
files-- Returns:
-
hasPackagePath
public static boolean hasPackagePath(String value)
returns true if package path is contained in the name eg. module.common.data.user- Parameters:
value-- Returns:
-
-