Package org.drip.service.jsonparser
Interface ContainerFactory
public interface ContainerFactory
ContainerFactory is an Adaptation of the ContainerFactory Interface from the RFC4627 compliant JSON
Simple (https://code.google.com/p/json-simple/). It provides the following Functionality:
- Retrieve the Map instance to store JSON object, or null if you want to use
org.json.simple.JSONObject
- Retrieve the Map instance to store JSON array, or null if you want to use
org.json.simple.JSONArray
Module | Computational Core Module |
Library | Computation Support |
Project | Environment, Product/Definition Containers, and Scenario/State Manipulation APIs |
Package | RFC4627 Compliant JSON Message Parser |
- Author:
- Fang Yidong, Lakshmi Krishnamurthy
-
Method Summary
Modifier and Type Method Description java.util.List
creatArrayContainer()
Retrieve the List instance to store JSON array, or null if you want to useorg.json.simple.JSONArray
java.util.Map
createObjectContainer()
Retrieve the Map instance to store JSON object, or null if you want to useorg.json.simple.JSONObject
-
Method Details
-
createObjectContainer
java.util.Map createObjectContainer()Retrieve the Map instance to store JSON object, or null if you want to useorg.json.simple.JSONObject
- Returns:
- A Map instance to store JSON object, or null if you want to use
org.json.simple.JSONObject
.
-
creatArrayContainer
java.util.List creatArrayContainer()Retrieve the List instance to store JSON array, or null if you want to useorg.json.simple.JSONArray
- Returns:
- A List instance to store JSON array, or null if you want to use
org.json.simple.JSONArray
.
-