public interface Importer
Modifier and Type | Method and Description |
---|---|
void |
end()
Called once at the end of the content import.
|
void |
endNode(NodeInfo nodeInfo)
Called to end the import of a node.
|
void |
start()
Called once at the beginning of the content import.
|
void |
startNode(NodeInfo nodeInfo,
List<PropInfo> propInfos)
Called to start the import of a node.
|
void start() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- on a repository errorvoid startNode(NodeInfo nodeInfo, List<PropInfo> propInfos) throws javax.jcr.RepositoryException
endNode(NodeInfo)
call is made with the
same node information.nodeInfo
- information about the node being importedpropInfos
- information about the properties being imported
(list of PropInfo
instances)javax.jcr.RepositoryException
- on a repository errorvoid endNode(NodeInfo nodeInfo) throws javax.jcr.RepositoryException
startNode(NodeInfo, List)
call with the stame node
information and after all the possible child nodes have been
imported with respective startNode/endNode calls.
Just like XML elements, the startNode/endNode calls are guaranteed to be properly nested and complete.
nodeInfo
- information about the node being importedjavax.jcr.RepositoryException
- on a repository errorvoid end() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- on a repository errorCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.