Java Code Examples for org.dozer.DozerBeanMapper#setMappingFiles()

The following examples show how to use org.dozer.DozerBeanMapper#setMappingFiles() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RoutingMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static RoutingType mapRoutingType(Routing input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-routing.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (RoutingType)mapper.map(input, RoutingType.class);
}
 
Example 2
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInputType(CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (CommonInputType)mapper.map(input, CommonInputType.class);
}
 
Example 3
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genins-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInputType destObject = new CommonInputType();
   mapper.map(input, destObject);
   return destObject;
}
 
Example 4
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genasync-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInput destObject = new CommonInput();
   mapper.map(input, destObject);
   return destObject;
}
 
Example 5
Source File: RoutingMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static RoutingType mapRoutingType(Routing input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-routing.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (RoutingType)mapper.map(input, RoutingType.class);
}
 
Example 6
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInputType(CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (CommonInputType)mapper.map(input, CommonInputType.class);
}
 
Example 7
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genins-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInputType destObject = new CommonInputType();
   mapper.map(input, destObject);
   return destObject;
}
 
Example 8
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genasync-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInput destObject = new CommonInput();
   mapper.map(input, destObject);
   return destObject;
}
 
Example 9
Source File: RoutingMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static RoutingType mapRoutingType(Routing input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-routing.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (RoutingType)mapper.map(input, RoutingType.class);
}
 
Example 10
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInputType(CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (CommonInputType)mapper.map(input, CommonInputType.class);
}
 
Example 11
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genins-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInputType destObject = new CommonInputType();
   mapper.map(input, destObject);
   return destObject;
}
 
Example 12
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genasync-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInput destObject = new CommonInput();
   mapper.map(input, destObject);
   return destObject;
}
 
Example 13
Source File: RoutingMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static RoutingType mapRoutingType(Routing input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-routing.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (RoutingType)mapper.map(input, RoutingType.class);
}
 
Example 14
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInputType(CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/dmg-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   return (CommonInputType)mapper.map(input, CommonInputType.class);
}
 
Example 15
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInputType mapCommonInput(CommonInput input) throws TechnicalConnectorException, GenInsBusinessConnectorException, InstantiationException {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genins-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInputType destObject = new CommonInputType();
   mapper.map(input, destObject);
   return destObject;
}
 
Example 16
Source File: CommonInputMapper.java    From freehealth-connector with GNU Affero General Public License v3.0 5 votes vote down vote up
public static CommonInput mapCommonInputType(be.ehealth.business.mycarenetdomaincommons.domain.CommonInput input) {
   List<String> myMappingFiles = new ArrayList();
   myMappingFiles.add("dozer/genasync-commoninput.xml");
   DozerBeanMapper mapper = new DozerBeanMapper();
   mapper.setMappingFiles(myMappingFiles);
   CommonInput destObject = new CommonInput();
   mapper.map(input, destObject);
   return destObject;
}