| | |
| | | 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("读取属性映射文件出错!"); |
| | | } |
| | | } |
| | | } |