类 ParserModuleUtil
java.lang.Object
com.sh.wf.module.parser.ParserModuleUtil
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2015年1月12日
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intgetXmlAttrIntValue(org.jdom2.Element el, ModuleData moduleData, String attrId, int defaultValue) static StringgetXmlAttrValue(org.jdom2.Element el, ModuleData moduleData, String attrId) static StringgetXmlAttrValue(org.jdom2.Element el, ModuleData moduleData, String attrId, String defaultValue) 获取XML数据中,指定属性的value值,结构如下: <attr id="id" name="模块编号"> <value>7171887945</value> </attr>static StringgetXmlAttrValue_Auto(org.jdom2.Element el, String attrId) 解决自动查找属性static StringgetXmlSelfAttrValue(org.jdom2.Element el, String attrId) 获取XML数据中,指定属性的value值,结构如下: <attr s_id=\"\"/>static StringgetXmlTextValue(org.jdom2.Element el, String nodeName) 获取XML中的具体值parseCallShowComponentList(ModuleData moduleData) 找到所有被[call.showComponent(id)]引用的组件static voidparserComponent(ModuleParserContext context, List<org.jdom2.Element> componentElList, ModuleData moduleData) 解析组件static voidparserIncludeParam(org.jdom2.Element root, ModuleData moduleData) 解析引入文件static voidparserInParam(org.jdom2.Element root, ModuleData moduleData) 解析接入参数static voidparserModule(ModuleParserContext context, org.jdom2.Element root, ModuleData moduleData) 解析模块static voidparserSubComponent(ModuleParserContext context, org.jdom2.Element nodeEl, Component parent, ModuleData moduleData) 解析子组件
-
构造器详细资料
-
ParserModuleUtil
public ParserModuleUtil()
-
-
方法详细资料
-
parserModule
public static void parserModule(ModuleParserContext context, org.jdom2.Element root, ModuleData moduleData) 解析模块- 参数:
root- ElementmoduleData- ModuleData
-
parserInParam
解析接入参数- 参数:
root- ElementmoduleData- ModuleData
-
parserIncludeParam
解析引入文件- 参数:
root- ElementmoduleData- ModuleData
-
parserComponent
public static void parserComponent(ModuleParserContext context, List<org.jdom2.Element> componentElList, ModuleData moduleData) 解析组件- 参数:
componentElList- ListmoduleData- ModuleData
-
parseCallShowComponentList
找到所有被[call.showComponent(id)]引用的组件- 参数:
moduleData-- 返回:
-
parserSubComponent
public static void parserSubComponent(ModuleParserContext context, org.jdom2.Element nodeEl, Component parent, ModuleData moduleData) 解析子组件- 参数:
nodeEl- Elementparent- ComponentmoduleData- ModuleData
-
getXmlAttrValue
-
getXmlAttrIntValue
public static int getXmlAttrIntValue(org.jdom2.Element el, ModuleData moduleData, String attrId, int defaultValue) -
getXmlAttrValue
public static String getXmlAttrValue(org.jdom2.Element el, ModuleData moduleData, String attrId, String defaultValue) 获取XML数据中,指定属性的value值,结构如下: <attr id="id" name="模块编号"> <value>7171887945</value> </attr>- 参数:
el- ElementmoduleData- ModuleDataattrId- StringdefaultValue- String- 返回:
- String
-
getXmlAttrValue_Auto
解决自动查找属性- 参数:
el- ElementattrId- String- 返回:
- String
-
getXmlSelfAttrValue
获取XML数据中,指定属性的value值,结构如下: <attr s_id=\"\"/>- 参数:
el- ElementattrId- String- 返回:
- String
-
getXmlTextValue
获取XML中的具体值- 参数:
el- ElementnodeName- String- 返回:
- String
-