|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Importer
Content 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 | |
---|---|
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 propInfos)
Called to start the import of a node. |
Method Detail |
---|
void start() throws RepositoryException
RepositoryException
- on a repository errorvoid startNode(NodeInfo nodeInfo, List propInfos) throws RepositoryException
endNode(NodeInfo)
call is made with the
same node information.
nodeInfo
- information about the node being importedpropInfos
- information abouth 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 imported
RepositoryException
- on a repository errorvoid end() throws RepositoryException
RepositoryException
- on a repository error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |