org.semispace.comet.jsonschema
Class JsonSchema

java.lang.Object
  extended by org.semispace.comet.jsonschema.JsonSchema

public class JsonSchema
extends Object


Method Summary
static JsonSchema createJsonSchema(Reader jsonSchemaSource)
           
static JsonSchema createJsonSchemaFromJsonString(String json)
           
 SchemaRoot getSchemaRoot()
           
static String readContents(Reader source)
          Return read as string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSchemaRoot

public SchemaRoot getSchemaRoot()

createJsonSchema

public static JsonSchema createJsonSchema(Reader jsonSchemaSource)

readContents

public static String readContents(Reader source)
Return read as string. Will throw exception if source cannot be read. TODO: May consider to move this method to a more clean cut utility method.


createJsonSchemaFromJsonString

public static JsonSchema createJsonSchemaFromJsonString(String json)


Copyright © 2008-2012. All Rights Reserved.