|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.graph.GraphImporter
public class GraphImporter
Constructor Summary | |
---|---|
GraphImporter(Graph graph)
|
Method Summary | |
---|---|
ExecutionContext |
getContext()
Get the context in which the importer will be executed. |
Graph |
getGraph()
The graph that this importer uses. |
Graph.Batch |
importXml(URI uri,
Location location)
Read the content from the supplied URI and import into the repository at the supplied location. |
Graph.Batch |
importXml(URI uri,
Location location,
boolean skip)
Read the content from the supplied URI and import into the repository at the supplied location. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphImporter(Graph graph)
Method Detail |
---|
public ExecutionContext getContext()
public Graph getGraph()
public Graph.Batch importXml(URI uri, Location location) throws IOException, SAXException, RepositorySourceException
uri
- the URI where the importer can read the content that is to be importedlocation
- the location in the repository source
where the content is to be written; may not
be null
IllegalArgumentException
- if the uri
or destination path are null
IOException
- if there is a problem reading the content
SAXException
- if there is a problem with the SAX Parser
RepositorySourceException
- if there is a problem while writing the content to the repository
source
public Graph.Batch importXml(URI uri, Location location, boolean skip) throws IOException, SAXException, RepositorySourceException
uri
- the URI where the importer can read the content that is to be importedlocation
- the location in the repository source
where the content is to be written; may not
be nullskip
- true if the root element should be skipped, or false if a node should be created for the root XML element
IllegalArgumentException
- if the uri
or destination path are null
IOException
- if there is a problem reading the content
SAXException
- if there is a problem with the SAX Parser
RepositorySourceException
- if there is a problem while writing the content to the repository
source
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |