Class LocalProjectProperties
java.lang.Object
ca.phon.project.LocalProjectProperties
- All Implemented Interfaces:
ProjectProperties
Extension for
LocalProject
s. This class will be used to
load, access, modify and save project properties in the form of
a JSON object.-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.phon.project.ProjectProperties
ProjectProperties.PropertyModifier
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
Get the project JSON objectprotected void
loadProjectJson
(File projectJsonFile) Load project JSON data from a provided filevoid
Atomically modify the project JSON objectvoid
protected void
Deprecated.
-
Field Details
-
PROJECT_MEDIAFOLDER_PROP
Deprecated.Media folders for project- See Also:
-
PROJECT_MEDIAFOLDERS_KEY
- See Also:
-
CORPUS_MEDIAFOLDER_PROP
-
PROJECT_NAME_PROP
Deprecated.Project name property- See Also:
-
PROJECT_NAME_KEY
- See Also:
-
PROJECT_UUID_PROP
Deprecated.Project UUID property- See Also:
-
PROJECT_UUID_KEY
- See Also:
-
-
Constructor Details
-
LocalProjectProperties
-
-
Method Details
-
getProjectJson
public org.json.JSONObject getProjectJson()Get the project JSON object- Specified by:
getProjectJson
in interfaceProjectProperties
- Returns:
-
modifyProjectJson
Description copied from interface:ProjectProperties
Atomically modify the project JSON object- Specified by:
modifyProjectJson
in interfaceProjectProperties
- Parameters:
modifier
- function that receives current JSON and returns modified JSON- Throws:
IOException
- on error
-
loadProjectJson
Load project JSON data from a provided file- Parameters:
projectJsonFile
-
-
saveProjectJson
- Throws:
IOException
-
saveProperties
-