Package se.datadosen.jalbum
Class JSONMaker
java.lang.Object
se.datadosen.jalbum.JSONMaker
Create JSON formatted data out of album object metadata
- Since:
- 13
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEach
(BiConsumer<AlbumObject, MyJSONObject> consumer) Visit all AlbumObjects that take part in generation of JSON data tree and apply consumer on eachString[]
int
getTree
(AlbumObject rootFolder) getTreeAsString
(AlbumObject rootFolder) boolean
void
makeDeepJSONData
(File outputDir) Make one huge deep-data.json file in root of album based upon data.json files in subfoldersvoid
setIncludes
(String[] includes) List AlbumObject variables to add to the generated JSON datavoid
setMakeTree
(boolean makeTree) void
setPaging
(int paging)
-
Constructor Details
-
JSONMaker
-
JSONMaker
Sample config file content: {"paging":10, "include":["shopOptions","userVariables"]}- Throws:
FileNotFoundException
IOException
-
-
Method Details
-
getPaging
public int getPaging() -
setPaging
public void setPaging(int paging) -
isMakeTree
public boolean isMakeTree() -
setMakeTree
public void setMakeTree(boolean makeTree) -
getIncludes
-
setIncludes
List AlbumObject variables to add to the generated JSON data- Parameters:
includes
-
-
forEach
Visit all AlbumObjects that take part in generation of JSON data tree and apply consumer on each- Parameters:
consumer
- Consumer that takes the current AlbumObject and resulting JSON node as parameter- Since:
- 15.4
-
getTreeAsString
- Throws:
IOException
-
getTree
- Throws:
IOException
-
makeDeepJSONData
Make one huge deep-data.json file in root of album based upon data.json files in subfolders- Parameters:
outputDir
-- Throws:
IOException
- Since:
- 16.0.1
-