Interface PropertyManager
public interface PropertyManager
Provides access to PropertyMaps. And instance of this interface is obtained
through Studio.properties() and Studio.propertyManager();
-
Method Summary
Modifier and TypeMethodDescriptionReturns an empty property map.Creates a property map from its JSON-serialized form.Create a property map from its JSON-serialized form stored in a file.Provides an easy way for a script to obtain a PropertyMap Builder.
-
Method Details
-
propertyMapBuilder
PropertyMap.Builder propertyMapBuilder()Provides an easy way for a script to obtain a PropertyMap Builder.- Returns:
- PropertyMap Builder
-
emptyPropertyMap
-
fromJSON
Creates a property map from its JSON-serialized form. JSON format is described inPropertyMapJSONSerializer.- Parameters:
json- json formatted String to be converted into a PropertyMap- Returns:
- PropertyMap result from conversion
- Throws:
IOException- ifjsonis invalid JSON or if it does not represent a valid property map
-
loadJSON
Create a property map from its JSON-serialized form stored in a file. JSON format is described inPropertyMapJSONSerializer.- Parameters:
file- File containing JSON serialized Properties.- Returns:
- PropertyMap resulting from conversion fo JSON in file.
- Throws:
IOException- if there was a problem readingfileor if the file contained invalid JSON or if the JSON did not represent a valid property mapFileNotFoundException- this subclass ofIOExceptionis thrown iffiledoes not exist
-