Package org.apache.jackrabbit.core.xml
Interface Importer
-
- All Known Implementing Classes:
SessionImporter,WorkspaceImporter
public interface ImporterContent importer. The XML import handlers use this interface to submit the parsed content to the repository. The implementation of this class decides how the content is actually persisted; either through the transient space of a session, or directly into the workspace.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidend()Called once at the end of the content import.voidendNode(NodeInfo nodeInfo)Called to end the import of a node.voidstart()Called once at the beginning of the content import.voidstartNode(NodeInfo nodeInfo, List<PropInfo> propInfos)Called to start the import of a node.
-
-
-
Method Detail
-
start
void start() throws RepositoryExceptionCalled once at the beginning of the content import.- Throws:
RepositoryException- on a repository error
-
startNode
void startNode(NodeInfo nodeInfo, List<PropInfo> propInfos) throws RepositoryException
Called to start the import of a node. Information about the imported node and all it's properties are passed as arguments. Possible child nodes are imported recursively using this same method until aendNode(NodeInfo)call is made with the same node information.- Parameters:
nodeInfo- information about the node being importedpropInfos- information about the properties being imported (list ofPropInfoinstances)- Throws:
RepositoryException- on a repository error
-
endNode
void endNode(NodeInfo nodeInfo) throws RepositoryException
Called to end the import of a node. This method is called after astartNode(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.
- Parameters:
nodeInfo- information about the node being imported- Throws:
RepositoryException- on a repository error
-
end
void end() throws RepositoryException
Called once at the end of the content import.- Throws:
RepositoryException- on a repository error
-
-