public class PackageHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_MANAGER_CLASS |
static String |
CONFIG_MANAGER_PATH |
static String |
DATA_PATH |
static String |
MODULE_CLASS |
static String |
MODULE_MANAGER_CLASS |
static String |
MODULE_MANAGER_PATH |
static String |
PANEL_MANAGER_CLASS |
static String |
SERVICE_PATH |
| Constructor and Description |
|---|
PackageHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAppName(Element element) |
static String |
getClassName(String classPath)
gets class name from path eg.
|
static String |
getFirstModuleFullPath(Map<String,List<Element>> panelMap)
gets the full path of the first module eg.
|
static String |
getModuleFromFullPath(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 files
|
static String |
getModuleName(Element element)
gets module name.
|
static String |
getPackagePath(Element element) |
static String |
getPackagePath(String sourceClass)
returns package name from file path eg.
|
static String |
getRootPath(String path)
path: module.android.panel
|
static boolean |
hasPackagePath(String value)
returns true if package path is contained in the name eg.
|
public static String CONFIG_MANAGER_CLASS
public static String MODULE_MANAGER_CLASS
public static String PANEL_MANAGER_CLASS
public static String MODULE_CLASS
public static String DATA_PATH
public static String SERVICE_PATH
public static String MODULE_MANAGER_PATH
public static String CONFIG_MANAGER_PATH
public static String getModuleName(Element element)
element - public static String getPackagePath(String sourceClass)
sourceClass - public static String getRootPath(String path)
path - public static String getFirstModuleFullPath(Map<String,List<Element>> panelMap)
panelMap - public static String getModuleFromFullPath(File file)
public static Set<String> getModuleList(List<File> files)
files - public static boolean hasPackagePath(String value)
value - Copyright © 2020. All rights reserved.