%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import ="com.sysmodel.datamodel.xmlmodel.impl.*"
%>
根据配置文件获得需要统一的字段
<%
ArrayList arrMdpClasses = SysModelImpl.getInstance().getMdpClasses();
MdpClassImpl imp = null;
Map> FieldKeysMap = new HashMap>();
Vector classesVec = new Vector();
for (int i = 0 ; i< arrMdpClasses.size() ; i++ ){
imp = (MdpClassImpl)arrMdpClasses.get(i);
List mdpAttributes = imp.getAllMdpAttributes();
MdpAttributeImpl mdpAttribute = null;
classesVec = new Vector();
for (int j = 0 ; j
中文名称 |
出现次数 |
英文名命名分析 |
<%
while (iterator.hasNext()) {
Map.Entry mapentry = (Map.Entry)iterator.next();
classesVec = (Vector)mapentry.getValue();
String sUseCondion = "";
String EnName = (String)classesVec.firstElement();
EnName = EnName.substring(EnName.indexOf(".") + 1);
boolean bAllEquals = true;
StringBuffer sb = new StringBuffer();
for (int j = 0 ; j < classesVec.size() ; j ++ ){
String tempStr = (String)classesVec.get(j);
sb.append( tempStr + "
");
if(bAllEquals == true && tempStr.indexOf(EnName) == -1){
bAllEquals = false;
}
}
if(bAllEquals){
sUseCondion = "字段一致翻译为:" + EnName;
} else {
sUseCondion = "字段翻译没有保持一致,具体情况:
"+sb.toString()+"";
}
if(classesVec.size() > 1){
%>
<%= (String)mapentry.getKey()%> |
<%= classesVec.size()%> |
<%= sUseCondion%> |
<%
}
}
%>