public class AnalyseXmlHelper extends BaseAnalyseHtmlHelper
AnalyseXmlHelper
功能描述: 解析xml用于控件过滤
创建人: 陈伟
创建日期: 2013-12-9 下午03:08:18
开发环境: JDK6.0| Modifier and Type | Class and Description |
|---|---|
class |
AnalyseXmlHelper.AnalyseXmlVisitorForReadOnly
类:
AnalyseXmlVisitorForReadOnly
功能描述: 用于将控件设置为只读的xml访问者
创建人: 陈伟
创建日期: 2013-12-9 下午03:14:32
开发环境: JDK6.0 |
class |
AnalyseXmlHelper.AnalyseXmlVisitorForRemove
类:
AnalyseXmlVisitorForRemove
功能描述: 用于删除的xml访问者对象
创建人: 陈伟
创建日期: 2013-12-9 下午03:12:31
开发环境: JDK6.0 |
fieldNameSet, replaceText| Constructor and Description |
|---|
AnalyseXmlHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.dom4j.Document |
processDocument(org.dom4j.Document xmlDoc,
java.util.List<Widget> wdList,
java.util.List<java.lang.String> removedIdList,
java.util.List<java.lang.String> readIdList)
功能描述:过滤xml
|
static org.dom4j.Document |
processDocument(org.dom4j.Document xmlDoc,
java.util.List<Widget> wdList,
java.util.List<java.lang.String> removedIdList,
java.util.List<java.lang.String> readIdList,
java.util.List<Widget> allWdigesInGroup)
功能描述:过滤xml
|
static org.dom4j.Document |
processDocumentByRight(org.dom4j.Document xmlDoc,
java.util.List<Widget> widgetList,
java.util.List<java.lang.String> readOnlyIdList,
java.util.List<java.lang.String> removedIdList,
java.util.List<java.lang.String> editIdList)
功能描述:过滤xml
|
static void |
readOnlyElement(org.dom4j.Element e)
功能描述:根据控件的实际类型将控件设置为只读
|
static void |
replaceElement(org.dom4j.Element pEle,
org.dom4j.Node cNode) |
getReplaceText, isButtonOrFieldpublic static org.dom4j.Document processDocument(org.dom4j.Document xmlDoc,
java.util.List<Widget> wdList,
java.util.List<java.lang.String> removedIdList,
java.util.List<java.lang.String> readIdList)
xmlDoc - wdList - removedIdList - readIdList - public static org.dom4j.Document processDocument(org.dom4j.Document xmlDoc,
java.util.List<Widget> wdList,
java.util.List<java.lang.String> removedIdList,
java.util.List<java.lang.String> readIdList,
java.util.List<Widget> allWdigesInGroup)
xmlDoc - wdList - 需处理的控件对象集合removedIdList - 不可见权限的控件id集合readIdList - 只读权限的控件id集合allWdigesInGroup - 当前控件组中的所有的控件public static org.dom4j.Document processDocumentByRight(org.dom4j.Document xmlDoc,
java.util.List<Widget> widgetList,
java.util.List<java.lang.String> readOnlyIdList,
java.util.List<java.lang.String> removedIdList,
java.util.List<java.lang.String> editIdList)
xmlDoc - wdList - 需处理的控件对象集合removedIdList - 不可见权限的控件id集合readIdList - 只读权限的控件id集合allWdigesInGroup - 当前控件组中的所有的控件public static void replaceElement(org.dom4j.Element pEle,
org.dom4j.Node cNode)
public static void readOnlyElement(org.dom4j.Element e)
e -