public class SaltProjectImpl extends Object implements SaltProject
| Constructor and Description |
|---|
SaltProjectImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCorpusGraph(SCorpusGraph corpusGraph)
Adds the passed
SCorpusGraph object to the list of corpus graphs. |
void |
basic_addCorpusGraph(SCorpusGraph corpusGraph)
Adds the corpus graph to the internal list of corpus graphs.
|
void |
basic_removeCorpusGraph(SCorpusGraph corpusGraph)
Removes the corpus graph to the internal 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.
|
String |
toString() |
public List<SCorpusGraph> getCorpusGraphs()
getCorpusGraphs in interface SaltProjectpublic void addCorpusGraph(SCorpusGraph corpusGraph)
SCorpusGraph object to the list of corpus graphs.addCorpusGraph in interface SaltProjectcorpusGraph - new corpus graph objectpublic void basic_addCorpusGraph(SCorpusGraph corpusGraph)
corpusGraph - to addpublic void removeCorpusGraph(SCorpusGraph corpusGraph)
SaltProjectSCorpusGraph object to the list of corpus
graphs.removeCorpusGraph in interface SaltProjectcorpusGraph - new corpus graph objectpublic void basic_removeCorpusGraph(SCorpusGraph corpusGraph)
corpusGraph - graph to removepublic String getName()
getName in interface SaltProjectpublic void setName(String name)
setName in interface SaltProjectname - of the projectpublic void saveSaltProject(org.eclipse.emf.common.util.URI saltProjectURI)
SaltProjectSaltProject object to the location given by the
passed URI object as SaltXML.saveSaltProject in interface SaltProjectsaltProjectURI - the URI to the location to persist the projectpublic void loadSaltProject(org.eclipse.emf.common.util.URI saltProjectURI)
SaltProject
This will load all document graphs into memory as well. If you only
intend to load the corpus structure call
SaltProject.loadCorpusStructure(org.eclipse.emf.common.util.URI) instead.
Then you can load the single document graphs you are interested in with
SDocument.loadDocumentGraph().
loadSaltProject in interface SaltProjectsaltProjectURI - the URI to the location to load the projectpublic void loadCorpusStructure(org.eclipse.emf.common.util.URI saltProjectURI)
SaltProjectSDocument nodes.loadCorpusStructure in interface SaltProjectsaltProjectURI - the uri to the location of the folder containing the
saltProject.salt file.public SCorpusGraph createCorpusGraph()
createCorpusGraph in interface SaltProjectCopyright © 2009–2020 Humboldt-Universität zu Berlin, INRIA. All rights reserved.