info.sswap.http.representation.json
Class JsonEntityFactory

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

public class JsonEntityFactory
extends java.lang.Object

Creates an Entity based on its parsed description (in the form of a JSONObject)

Author:
Blazej Bulka

Constructor Summary
JsonEntityFactory()
           
 
Method Summary
static Entity buildEntity(java.lang.String uri, org.json.JSONObject object, Prefixes prefixes)
          Creates an entity based on its parsed description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonEntityFactory

public JsonEntityFactory()
Method Detail

buildEntity

public static Entity buildEntity(java.lang.String uri,
                                 org.json.JSONObject object,
                                 Prefixes prefixes)
                          throws org.json.JSONException
Creates an entity based on its parsed description

Parameters:
uri - the uri of the entity to be created
object - the JSON object describing all the properties of an entity
prefixes - the prefix definitions (used to resolve QNames within the entity)
Returns:
a created entity
Throws:
org.json.JSONException - if there is a syntax error


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