JSONType.BooleanType, JSONType.DoubleType, JSONType.Empty, JSONType.Everything, JSONType.IntegerType, JSONType.NumberType, JSONType.StringType| Constructor and Description |
|---|
OptionalType(JSONType t) |
| 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() |
boolean |
isOptional() |
public OptionalType(JSONType t)
public boolean contains(Object obj)
JSONTypepublic String explain(Object obj)
JSONTypepublic boolean isOptional()
isOptional in interface JSONTypepublic boolean isJSONPrimitive()
isJSONPrimitive in interface JSONTypepublic boolean isJSONArray()
isJSONArray in interface JSONTypepublic boolean isJSONObject()
isJSONObject in interface JSONTypepublic boolean isJSONPointer()
isJSONPointer in interface JSONTypeCopyright © 2018 MuleSoft, Inc.. All rights reserved.