Class ShadowProject
java.lang.Object
ca.phon.project.AbstractProject
ca.phon.project.LocalProject
ca.phon.app.project.ShadowProject
- All Implemented Interfaces:
IExtendable
,MutableProject
,Project
,ProjectDeprecated
,ProjectEvents
,ProjectMediaFolders
,ProjectPaths
,ProjectRefresh
,ProjectResources
,SessionDetails
,SessionTemplate
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_DESC_FILE, PREV_PROJECT_PROPERTIES_FILE, PROJECT_FILE_EXT, PROJECT_PROPERTIES_FILE, PROJECT_RES_FOLDER, sessionTemplateFile
Fields inherited from class ca.phon.project.AbstractProject
PROJECT_XML_FILE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCorpusPath
(String corpus) Return the path to the given corpus.getName()
The name of 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, addCorpus, addProjectMediaFolder, addProjectMediaFolder, checkSessionWriteLock, createSessionFromTemplate, getCorpora, getCorpusDescription, getCorpusFolder, getCorpusIterator, getCorpusMediaFolder, getCorpusSessions, getLocation, getParticipants, getProjectMediaFolder, getProjectMediaFolders, getResourceInputStream, getResourceLocation, getResourceOutputStream, getSessionByteSize, getSessionByteSize, getSessionFile, getSessionIterator, getSessionModificationTime, getSessionModificationTime, getSessionPath, getSessionPath, getSessionTemplate, getSessionWriteLock, getSessionWriteLock, getUUID, getVersion, hasCorpus, hasCustomCorpusMediaFolder, hasCustomProjectMediaFolder, hasSession, isSessionLocked, isSessionLocked, numberOfRecordsInSession, openSession, openSession, refresh, releaseSessionWriteLock, releaseSessionWriteLock, removeCorpus, removeProjectMediaFolder, removeSession, removeSession, renameCorpus, saveProjectData, 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, putExtension, removeExtension, removeProjectListener
-
Constructor Details
-
ShadowProject
- Throws:
ProjectConfigurationException
-
-
Method Details
-
of
Create a new shadow project.- Parameters:
project
-- Returns:
- shadow project
- Throws:
ProjectConfigurationException
-
getCorpusPath
Description copied from interface:ProjectPaths
Return the path to the given corpus.- Specified by:
getCorpusPath
in interfaceProjectPaths
- Overrides:
getCorpusPath
in classLocalProject
- Parameters:
corpus
- the corpus name- Returns:
- the path to the corpus, usually relative to the project
-
setCorpusPath
Description copied from interface:ProjectPaths
Set path of corpus.- Specified by:
setCorpusPath
in interfaceProjectPaths
- Overrides:
setCorpusPath
in classLocalProject
- Parameters:
corpus
- the corpus namepath
- the new path for the corpus
-
getName
-