info.sswap.http.representation.json
Class JsonIndividualFactory

java.lang.Object
  extended by info.sswap.http.representation.json.JsonIndividualFactory

public class JsonIndividualFactory
extends java.lang.Object

Creates a map of individuals from their definitions ("definitions" section of the JSON document).

Author:
Blazej Bulka

Constructor Summary
JsonIndividualFactory()
           
 
Method Summary
static java.util.Map<java.lang.String,Entity> buildIndividualsMap(org.json.JSONObject object, Prefixes prefixes)
          Builds a map with defined individuals individuals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonIndividualFactory

public JsonIndividualFactory()
Method Detail

buildIndividualsMap

public static java.util.Map<java.lang.String,Entity> buildIndividualsMap(org.json.JSONObject object,
                                                                         Prefixes prefixes)
                                                                  throws org.json.JSONException
Builds a map with defined individuals individuals

Parameters:
object - the object that contains the individual definitions
prefixes - the definition of prefixes for this JSON document
Returns:
the map whose keys are definitions of individuals, and the values are the parsed JSON Entities
Throws:
org.json.JSONException - if JSON data is not syntactically valid


Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.