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
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 Details
-
CONFIG_MANAGER_CLASS
-
MODULE_MANAGER_CLASS
-
PANEL_MANAGER_CLASS
-
MODULE_CLASS
-
DATA_PATH
-
SERVICE_PATH
-
MODULE_MANAGER_PATH
-
MODULE_PACKAGE
-
CONFIG_MANAGER_PATH
-
-
Constructor Details
-
PackageHelper
public PackageHelper()
-
-
Method Details
-
getModuleName
gets module name. eg. module.android.LoginPanel with return android- Parameters:
element-- Returns:
-
getPackagePath
-
getRootPath
path: module.android.panel- Parameters:
path-- Returns:
- "module"
-
getAppName
-
getFirstModuleFullPath
gets the full path of the first module eg. module.android.panel- Parameters:
panelMap-- Returns:
-
getModuleFromFullPath
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
gets the list of modules that have csv data files- Parameters:
files-- Returns:
-
hasPackagePath
returns true if package path is contained in the name eg. module.common.data.user- Parameters:
value-- Returns:
-
getClassName
gets class name from path eg. module.common.data.user returns user- Parameters:
classPath-- Returns:
-