类 ParserModuleUtil

java.lang.Object
com.sh.wf.module.parser.ParserModuleUtil

public class ParserModuleUtil extends Object

Description:

Title:首亨软件 - TSS/CRM等

从以下版本开始:
2015年1月12日
  • 构造器详细资料

    • ParserModuleUtil

      public ParserModuleUtil()
  • 方法详细资料

    • parserModule

      public static void parserModule(ModuleParserContext context, org.jdom2.Element root, ModuleData moduleData)
      解析模块
      参数:
      root - Element
      moduleData - ModuleData
    • parserInParam

      public static void parserInParam(org.jdom2.Element root, ModuleData moduleData)
      解析接入参数
      参数:
      root - Element
      moduleData - ModuleData
    • parserIncludeParam

      public static void parserIncludeParam(org.jdom2.Element root, ModuleData moduleData)
      解析引入文件
      参数:
      root - Element
      moduleData - ModuleData
    • parserComponent

      public static void parserComponent(ModuleParserContext context, List<org.jdom2.Element> componentElList, ModuleData moduleData)
      解析组件
      参数:
      componentElList - List
      moduleData - ModuleData
    • parseCallShowComponentList

      public static Set<String> parseCallShowComponentList(ModuleData moduleData)
      找到所有被[call.showComponent(id)]引用的组件
      参数:
      moduleData -
      返回:
    • parserSubComponent

      public static void parserSubComponent(ModuleParserContext context, org.jdom2.Element nodeEl, Component parent, ModuleData moduleData)
      解析子组件
      参数:
      nodeEl - Element
      parent - Component
      moduleData - ModuleData
    • getXmlAttrValue

      public static String getXmlAttrValue(org.jdom2.Element el, ModuleData moduleData, String attrId)
    • 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 - Element
      moduleData - ModuleData
      attrId - String
      defaultValue - String
      返回:
      String
    • getXmlAttrValue_Auto

      public static String getXmlAttrValue_Auto(org.jdom2.Element el, String attrId)
      解决自动查找属性
      参数:
      el - Element
      attrId - String
      返回:
      String
    • getXmlSelfAttrValue

      public static String getXmlSelfAttrValue(org.jdom2.Element el, String attrId)
      获取XML数据中,指定属性的value值,结构如下: <attr s_id=\"\"/>
      参数:
      el - Element
      attrId - String
      返回:
      String
    • getXmlTextValue

      public static String getXmlTextValue(org.jdom2.Element el, String nodeName)
      获取XML中的具体值
      参数:
      el - Element
      nodeName - String
      返回:
      String