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 RepositoryException
RepositoryException - on a repository errorvoid startNode(NodeInfo nodeInfo, List<PropInfo> propInfos) throws 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)RepositoryException - on a repository errorvoid endNode(NodeInfo nodeInfo) throws 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 importedRepositoryException - on a repository errorvoid end() throws RepositoryException
RepositoryException - on a repository errorCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.