Package com.avoka.fc.core.service
Class XmlPrefillService
- java.lang.Object
-
- com.avoka.fc.core.service.XmlPrefillService
-
public class XmlPrefillService extends Object
Provides a XML prefill service.
-
-
Constructor Summary
Constructors Constructor Description XmlPrefillService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mergeXmlData(Document sourceDocument, Document targetDocument, List<XmlInputMap> xmlInputMaps)
Merge the source Document with the prefilled mappings into the target document.void
mergeXmlData(Document sourceDocument, Document targetDocument, Map<String,String> xmlPrefillMappings)
Apply the specified prefill mappings to copy content from the source document to the target document.void
mergeXmlData2(Document sourceDocument, Document targetDocument, List<XmlInputMapVO> xmlInputMaps)
Merge the source Document with the prefilled mappings into the target document.
-
-
-
Method Detail
-
mergeXmlData
public void mergeXmlData(Document sourceDocument, Document targetDocument, List<XmlInputMap> xmlInputMaps)
Merge the source Document with the prefilled mappings into the target document. This method traverse the XML mapping lists and copy the value of source Xpath location to the target Xpath location.- Parameters:
sourceDocument
- the source XML documenttargetDocument
- the target XML documentxmlInputMaps
- the XML mapping lists
-
mergeXmlData2
public void mergeXmlData2(Document sourceDocument, Document targetDocument, List<XmlInputMapVO> xmlInputMaps)
Merge the source Document with the prefilled mappings into the target document. This method traverse the XML mapping lists and copy the value of source Xpath location to the target Xpath location.- Parameters:
sourceDocument
- the source XML documenttargetDocument
- the target XML documentxmlInputMaps
- the XML mapping lists- Since:
- 5.1.0
-
mergeXmlData
public void mergeXmlData(Document sourceDocument, Document targetDocument, Map<String,String> xmlPrefillMappings)
Apply the specified prefill mappings to copy content from the source document to the target document.- Parameters:
sourceDocument
- the source XML document containing prefill data (required)targetDocument
- the target XML document to which prefill data shall be applied (required)xmlPrefillMappings
- the XML prefill mappings (key = XPath in the source document containing a prefill value, value = XPath in the target document where the prefill value shall be stored)- Since:
- 4.0.0
-
-