public interface SaltProject extends Serializable
SaltProject object the entry point for a salt
model. In case you have more than one salt project, you can name it by
setName(String)| Modifier and Type | Method and Description |
|---|---|
void |
addCorpusGraph(SCorpusGraph corpusGraph)
Adds the passed
SCorpusGraph object to the list of corpus graphs. |
SCorpusGraph |
createCorpusGraph()
Creates a new corpus graph and adds it to the Salt project.
|
List<SCorpusGraph> |
getCorpusGraphs()
Returns all corpus structures contained in this project.
|
String |
getName()
Returns the name of this salt project.
|
void |
loadCorpusStructure(org.eclipse.emf.common.util.URI saltProjectURI)
Reads a saltProject.salt file and imports the contained corpus structure,
without importing the document structure corresponding to the imported
SDocument nodes. |
void |
loadSaltProject(org.eclipse.emf.common.util.URI saltProjectURI)
Loads data from URI into this SaltProject object.
|
void |
removeCorpusGraph(SCorpusGraph corpusGraph)
Removes the passed
SCorpusGraph object to the list of corpus
graphs. |
void |
saveSaltProject(org.eclipse.emf.common.util.URI saltProjectURI)
Persists this
SaltProject object to the location given by the
passed URI object as SaltXML. |
void |
setName(String name)
Sets the name of this salt project.
|
List<SCorpusGraph> getCorpusGraphs()
void addCorpusGraph(SCorpusGraph corpusGraph)
SCorpusGraph object to the list of corpus graphs.corpusGraph - new corpus graph objectvoid removeCorpusGraph(SCorpusGraph corpusGraph)
SCorpusGraph object to the list of corpus
graphs.corpusGraph - new corpus graph objectString getName()
void setName(String name)
name - of the projectvoid saveSaltProject(org.eclipse.emf.common.util.URI saltProjectURI)
SaltProject object to the location given by the
passed URI object as SaltXML.saltProjectURI - the URI to the location to persist the projectvoid loadSaltProject(org.eclipse.emf.common.util.URI saltProjectURI)
This will load all document graphs into memory as well. If you only
intend to load the corpus structure call
loadCorpusStructure(org.eclipse.emf.common.util.URI) instead.
Then you can load the single document graphs you are interested in with
SDocument.loadDocumentGraph().
saltProjectURI - the URI to the location to load the projectvoid loadCorpusStructure(org.eclipse.emf.common.util.URI saltProjectURI)
SDocument nodes.saltProjectURI - the uri to the location of the folder containing the
saltProject.salt file.SCorpusGraph createCorpusGraph()
Copyright © 2009–2016 Humboldt-Universität zu Berlin, INRIA. All rights reserved.