Interface ProjectProperties
- All Known Implementing Classes:
LocalProjectProperties
public interface ProjectProperties
Extension for
Project
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 ClassesModifier and TypeInterfaceDescriptionstatic interface
Functional interface for atomic property modifications -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
Get the project JSON object.void
Atomically modify the project JSON object
-
Method Details
-
getProjectJson
org.json.JSONObject getProjectJson()Get the project JSON object.- Returns:
- a copy of the project JSON object
-
modifyProjectJson
Atomically modify the project JSON object- Parameters:
modifier
- function that receives current JSON and returns modified JSON- Throws:
IOException
- on error
-