public class SchemaEnv extends Object
| Constructor and Description |
|---|
SchemaEnv() |
SchemaEnv(org.json.JSONObject contextJsonObject,
URL contextJsonURL) |
SchemaEnv(SchemaEnv p) |
SchemaEnv(SchemaEnv p,
org.json.JSONObject contextJsonObject) |
SchemaEnv(SchemaEnv p,
org.json.JSONObject contextJsonObject,
URL contextJsonURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
addType(String name,
JSONType t) |
boolean |
containsType(String name) |
JSONType |
evaluate(Object obj)
Primary entry point to the JSONType parsing framework.
|
org.json.JSONObject |
getContextJsonObject() |
URL |
getContextJsonURL() |
SchemaEnv |
getParent() |
JSONType |
lookupType(String name) |
Iterator<String> |
names() |
public SchemaEnv()
public SchemaEnv(SchemaEnv p)
public SchemaEnv(SchemaEnv p, org.json.JSONObject contextJsonObject)
public SchemaEnv(org.json.JSONObject contextJsonObject,
URL contextJsonURL)
public org.json.JSONObject getContextJsonObject()
public JSONType evaluate(Object obj) throws SchemaException
obj - The schema expression, either a String or a JSONObject.SchemaExceptionIllegalArgumentException - if the supplied argument is null, or if it is not of the correct type.public boolean containsType(String name)
public SchemaEnv getParent()
public URL getContextJsonURL()
Copyright © 2018 MuleSoft, Inc.. All rights reserved.