Search in sources :

Example 1 with ConfiguredXpathNodeListQuery

use of com.adaptris.core.services.metadata.xpath.ConfiguredXpathNodeListQuery 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;
}
Also used : XpathObjectQuery(com.adaptris.core.services.metadata.xpath.XpathObjectQuery) MetadataXpathNodeListQuery(com.adaptris.core.services.metadata.xpath.MetadataXpathNodeListQuery) ConfiguredXpathNodeListQuery(com.adaptris.core.services.metadata.xpath.ConfiguredXpathNodeListQuery) MetadataXpathNodeQuery(com.adaptris.core.services.metadata.xpath.MetadataXpathNodeQuery) ConfiguredXpathNodeQuery(com.adaptris.core.services.metadata.xpath.ConfiguredXpathNodeQuery)

Aggregations

ConfiguredXpathNodeListQuery (com.adaptris.core.services.metadata.xpath.ConfiguredXpathNodeListQuery)1 ConfiguredXpathNodeQuery (com.adaptris.core.services.metadata.xpath.ConfiguredXpathNodeQuery)1 MetadataXpathNodeListQuery (com.adaptris.core.services.metadata.xpath.MetadataXpathNodeListQuery)1 MetadataXpathNodeQuery (com.adaptris.core.services.metadata.xpath.MetadataXpathNodeQuery)1 XpathObjectQuery (com.adaptris.core.services.metadata.xpath.XpathObjectQuery)1