org.modeshape.jcr.xml

## Interface NodeImportDestination

-     public interface NodeImportDestination

  Interface which is expected to be implemented by clients that perform node importing via XML, using the `NodeImportXmlHandler` class.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ExecutionContext` | `getExecutionContext()` Retrieves the execution context of the destination, in which the import will take place and which is used for creating values via the `ValueFactories` and for registering namespaces via the `NamespaceRegistry`
    `void` | `submit(TreeMap<Path,NodeImportXmlHandler.ImportElement> parseResults)` Processes the given [nodePath, parseElement] mappings, which represent the results of the xml parsing.

- - ### Method Detail

    - #### getExecutionContext

          ExecutionContext getExecutionContext()

      Retrieves the execution context of the destination, in which the import will take place and which is used for creating values via the `ValueFactories` and for registering namespaces via the `NamespaceRegistry`
      Returns:
        a non-null `ExecutionContext`

    - #### submit

          void submit(TreeMap<Path,NodeImportXmlHandler.ImportElement> parseResults)
                      throws RepositoryException

      Processes the given [nodePath, parseElement] mappings, which represent the results of the xml parsing. The given map is always sorted in ascending order of the node paths.
      Parameters:
        `parseResults` - a `TreeMap`, never null.
      Throws:
        `RepositoryException` - if any error occurs while processing the parse results

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.