Interface ProjectProperties
- All Known Implementing Classes:
LocalProjectProperties
public interface ProjectProperties
Extension for
Projects. 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 interfaceFunctional interface for atomic property modifications -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectGet the project JSON object.voidAtomically 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
-