Package ca.phon.app.project
Class ShadowProject
java.lang.Object
ca.phon.project.AbstractProject
ca.phon.project.LocalProject
ca.phon.app.project.ShadowProject
- All Implemented Interfaces:
IExtendable
,Project
,ProjectRefresh
Shadow projects are used as temporary projects with the same
data and properties as a delegate project. This is useful
when running queries where some temporary files are stored
inside the project folder.
-
Field Summary
Fields inherited from class ca.phon.project.LocalProject
CORPUS_MEDIAFOLDER_PROP, PREV_PROJECT_PROPERTIES_FILE, PROJECT_MEDIAFOLDER_PROP, PROJECT_NAME_PROP, PROJECT_PROPERTIES_FILE, PROJECT_UUID_PROP
Fields inherited from class ca.phon.project.AbstractProject
PROJECT_XML_FILE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of corpora in this project.getCorpusMediaFolder
(String corpus) Get the media folder for the specified corpus.getCorpusPath
(String corpus) Return the path to the given corpus.getName()
The name of the project.Get media folder for the project.static ShadowProject
Create a new shadow project.void
setCorpusPath
(String corpus, String path) Set path of corpus.Methods inherited from class ca.phon.project.LocalProject
addCorpus, checkSessionWriteLock, createSessionFromTemplate, getCorpusDescription, getCorpusFolder, getCorpusSessions, getLocation, getParticipants, getResourceInputStream, getResourceLocation, getResourceOutputStream, getSessionByteSize, getSessionByteSize, getSessionFile, getSessionModificationTime, getSessionModificationTime, getSessionPath, getSessionPath, getSessionTemplate, getSessionWriteLock, getSessionWriteLock, getUUID, getVersion, hasCustomCorpusMediaFolder, hasCustomProjectMediaFolder, isSessionLocked, isSessionLocked, numberOfRecordsInSession, openSession, openSession, refresh, releaseSessionWriteLock, releaseSessionWriteLock, removeCorpus, removeSession, removeSession, renameCorpus, saveProjectData, saveProperties, saveSession, saveSession, saveSession, saveSessionTemplate, setCorpusDescription, setCorpusMediaFolder, setName, setProjectMediaFolder, setResourceLocation, setUUID, toString
Methods inherited from class ca.phon.project.AbstractProject
addProjectListener, fireProjectDataChanged, fireProjectStructureChanged, fireProjectWriteLocksChanged, getExtension, getExtensions, getProjectListeners, loadProjectData, putExtension, removeExtension, removeProjectListener
-
Constructor Details
-
ShadowProject
- Throws:
ProjectConfigurationException
-
-
Method Details
-
of
Create a new shadow project.- Parameters:
preject
-- Returns:
- shadow project
- Throws:
ProjectConfigurationException
-
getProjectMediaFolder
Description copied from interface:Project
Get media folder for the project.- Specified by:
getProjectMediaFolder
in interfaceProject
- Overrides:
getProjectMediaFolder
in classLocalProject
-
getCorpusMediaFolder
Description copied from interface:Project
Get the media folder for the specified corpus.- Specified by:
getCorpusMediaFolder
in interfaceProject
- Overrides:
getCorpusMediaFolder
in classLocalProject
- Returns:
- mediaFolder or the project media folder if not specified
-
getCorpusPath
Description copied from interface:Project
Return the path to the given corpus.- Specified by:
getCorpusPath
in interfaceProject
- Overrides:
getCorpusPath
in classLocalProject
-
setCorpusPath
Description copied from interface:Project
Set path of corpus.- Specified by:
setCorpusPath
in interfaceProject
- Overrides:
setCorpusPath
in classLocalProject
-
getName
Description copied from interface:Project
The name of the project.- Specified by:
getName
in interfaceProject
- Overrides:
getName
in classLocalProject
- Returns:
- project name
-
getCorpora
Description copied from interface:Project
Get the list of corpora in this project. Corpus names are returned in alphabetical order.- Specified by:
getCorpora
in interfaceProject
- Overrides:
getCorpora
in classLocalProject
- Returns:
- list of corpora
-