ludc
2023-05-17 cc1ce57e34ce3f5f5a8a6879333d7ff1fe97a7d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.vci.ubcs.code.vo.webserviceModel.attrmap;
 
public class GeneralMappingUtil {
 
    private static GeneralMappingUtil newInstance=null;
    public static GeneralMappingUtil getNewInstance() {
        if(newInstance==null){
            newInstance=new GeneralMappingUtil();
        }
        return newInstance;
    }
 
    /***
     * 通过系统标识获取对应的集成属性映射
     * @param system
     */
    private void getLibraryClsfAttrMapping(String system){
        try {
           /** String fileNamePath=LocalFileUtil.getProjectFolder();
            fileNamePath+=File.separator+"mdmInMapXml"+File.separator+"clsfAttrMap.xml";
            String  clasAttrXml= LocalFileUtil.readContentForFile(fileNamePath);
            XStream xStream = new XStream(new DomDriver());
            xStream.processAnnotations(ApplyCodeDO.class);
            xStream.autodetectAnnotations(true);
            ApplyCodeDO applyCodeDO = (ApplyCodeDO) xStream.fromXML(clasAttrXml);**/
        }catch (Throwable e){
            new Throwable("读取属性映射文件出错!");
        }
    }
}