public class XmlDataCopy
extends java.lang.Object
XmlDataMap
s.
It allows copying from an XmlData infoset to another XmlData infoset using the same path expressions used by XmlDataMap.
However, the paths used by XmlDataCopy have been enhanced significantly with the introduction of the iterator-tag.
The iterator-tag acts like a wildcard, iterating over the names or indexes of instance data.
XmlDataIteratorTags must begin with the ! character and are not namespace-qualified.
Same-named iterator tags in the source map and output are matched during iteration over the entire input infoset, copying the values to the corresponding output infoset.Constructor and Description |
---|
XmlDataCopy(XmlDataMap source,
XmlDataMap dest)
Creates an XmlDataCopy executor, providing a source map and a destination map.
|
Modifier and Type | Method and Description |
---|---|
static void |
copy(IData input,
NSRecord inputRecord,
java.lang.String inputPath,
IData output,
NSRecord outputRecord,
java.lang.String outputPath)
Convenience method that performs a single copy operation.
|
void |
copy(java.lang.String sourcePath,
java.lang.String destinationPath)
Convenience method that performs a copy using String form of the path specification.
|
void |
copy(XmlDataContentTag[] sourcePath,
XmlDataContentTag[] destinationPath)
Performs a copy operation using the specified source and destination paths.
|
public XmlDataCopy(XmlDataMap source, XmlDataMap dest)
source
- source mapdest
- destination mappublic void copy(XmlDataContentTag[] sourcePath, XmlDataContentTag[] destinationPath)
sourcePath
- source path array of tagsdestinationPath
- destination path array of tagspublic void copy(java.lang.String sourcePath, java.lang.String destinationPath)
sourcePath
- source path StringdestinationPath
- destination path Stringpublic static void copy(IData input, NSRecord inputRecord, java.lang.String inputPath, IData output, NSRecord outputRecord, java.lang.String outputPath)
input
- input XmlData infosetinputRecord
- document type providing the input schemainputPath
- the source path specified as a Stringoutput
- output XmlData infosetoutputRecord
- Document Type providing the output schemeoutputPath
- the destination path specified as a String