Package com.portal.pcm
Class JsonToFlist
java.lang.Object
com.portal.pcm.JsonToFlist
Class implementation to convert from
JSON format to Flist.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Method to convert input JsonNode object to Flist.void
Method to convert input JSON in string format to Flist.getFList()
Get the flist represented by the JSON.static JsonToFlist
Public method to instantiate this class.static void
Main method to test this class independently.
-
Method Details
-
getInstance
Public method to instantiate this class. The constructor has been made private.- Returns:
- JsonToFlist object.
-
convert
Method to convert input JSON in string format to Flist.- Parameters:
jsonString
- Input JSON string to be converted.- Throws:
IOException
- IO Exception.EBufException
- Generic Ebuf Exception.``
-
convert
Method to convert input JsonNode object to Flist.- Parameters:
rootJsonNode
- Input JSON Node object to be converted.- Throws:
EBufException
- Generic Ebuf Exception.``
-
getFList
Get the flist represented by the JSON.- Returns:
- FList form of the JSON
-
main
Main method to test this class independently.- Parameters:
args
- Filename with input flist.
-