use of com.adaptris.core.services.metadata.xpath.MetadataXpathNodeQuery in project interlok by adaptris.
the class XpathObjectMetadataServiceTest method retrieveObjectForSampleConfig.
@Override
protected Object retrieveObjectForSampleConfig() {
XpathObjectMetadataService service = new XpathObjectMetadataService();
service.setXpathQueries(new ArrayList<XpathObjectQuery>(Arrays.asList(new ConfiguredXpathNodeQuery("key1", "//source-id"), new ConfiguredXpathNodeListQuery("key3", "//xpath/that/resolves/to/multiple/items"), new MetadataXpathNodeQuery("key4", "metadata_containing_an_xpath"), new MetadataXpathNodeListQuery("key5", "metadata_containing_a_nodelist_xpath"))));
service.setNamespaceContext(createContextEntries());
return service;
}
Aggregations