public interface PropertyManager
Modifier and Type | Method and Description |
---|---|
PropertyMap |
emptyPropertyMap()
Returns an empty property map.
|
PropertyMap |
fromJSON(java.lang.String json)
Creates a property map from its JSON-serialized form.
|
PropertyMap |
loadJSON(java.io.File file)
Create a property map from its JSON-serialized form stored in a file.
|
PropertyMap.Builder |
propertyMapBuilder()
Provides an easy way for a script to obtain a PropertyMap Builder
|
PropertyMap.Builder propertyMapBuilder()
PropertyMap emptyPropertyMap()
PropertyMap fromJSON(java.lang.String json) throws java.io.IOException
PropertyMapJSONSerializer
json
- json formatted String to be converted into a PropertyMapjava.io.IOException
- if json
is invalid JSON or if it does not
represent a valid property mapPropertyMap loadJSON(java.io.File file) throws java.io.IOException
PropertyMapJSONSerializer
file
- File containing JSON serialized Properties.java.io.IOException
- if there was a problem reading file
or if the
file contained invalid JSON or if the JSON did not represent a valid
property mapjava.io.FileNotFoundException
- this subclass of IOException
is thrown if file
does not exist