public class JSONObjectType extends AbstractType
JSONType.BooleanType, JSONType.DoubleType, JSONType.Empty, JSONType.Everything, JSONType.IntegerType, JSONType.NumberType, JSONType.StringType| Constructor and Description |
|---|
JSONObjectType(SchemaEnv env,
org.json.JSONObject obj) |
| 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.
|
String |
getDescription() |
String |
getId() |
String |
getName() |
String[] |
getProperties() |
JSONType |
getPropertyType(String propName) |
boolean |
isJSONArray() |
boolean |
isJSONObject() |
boolean |
isJSONPointer() |
boolean |
isJSONPrimitive() |
void |
putInEnv(SchemaEnv newEnv) |
void |
setId(String id) |
isOptionalpublic JSONObjectType(SchemaEnv env, org.json.JSONObject obj) throws SchemaException
SchemaExceptionpublic void putInEnv(SchemaEnv newEnv)
public boolean contains(Object obj)
JSONTypecontains in interface JSONTypecontains in class AbstractTypepublic String explain(Object obj)
JSONTypeexplain in interface JSONTypeexplain in class AbstractTypepublic String getName()
public String getDescription()
public String[] getProperties()
public boolean isJSONPrimitive()
public boolean isJSONArray()
public boolean isJSONObject()
public boolean isJSONPointer()
public String getId()
public void setId(String id)
Copyright © 2015 MuleSoft, Inc.. All rights reserved.