public class JSONResourceType extends AbstractType
File,
which contain JSON Schema expressions. However, the JSON schema expression is only loaded and parsed
the first time that either contains or explain is called on this object: lazy
loading. This is so that we can support resolution of mutually-recursive types, from files in a single
directory.JSONType.BooleanType, JSONType.DoubleType, JSONType.Empty, JSONType.Everything, JSONType.IntegerType, JSONType.NumberType, JSONType.StringType| Constructor and Description |
|---|
JSONResourceType(SchemaEnv env,
String resource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object obj)
The central method of JSONType; the type encompasses the values for which contains returns true.
|
String |
explain(Object obj)
Returns a non-null String explanation, suitable for display to a user, explaining why the given object fails to conform to the JSONType's contains method.
|
boolean |
isJSONArray() |
boolean |
isJSONObject() |
boolean |
isJSONPointer() |
boolean |
isJSONPrimitive() |
void |
loadType() |
isOptionalpublic void loadType()
public boolean contains(Object obj)
JSONTypecontains in interface JSONTypecontains in class AbstractTypepublic String explain(Object obj)
JSONTypeexplain in interface JSONTypeexplain in class AbstractTypepublic boolean isJSONPrimitive()
public boolean isJSONArray()
public boolean isJSONObject()
public boolean isJSONPointer()
Copyright © 2016 MuleSoft, Inc.. All rights reserved.