|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JSONType
JSONType is implemented by classes which represent individual JSON schemas or types.
A JSONType determines a subset of Objects, through its contains method. Given a JSONType, users should call theorg.mule.common.metadata.parser.json.JSONType.contains method on values to see if each
value is in the type.
| Nested Class Summary | |
|---|---|
static class |
JSONType.BooleanType
|
static class |
JSONType.DoubleType
|
static class |
JSONType.Empty
|
static class |
JSONType.Everything
|
static class |
JSONType.IntegerType
|
static class |
JSONType.NumberType
|
static class |
JSONType.StringType
|
| Method Summary | |
|---|---|
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()
|
| Method Detail |
|---|
boolean contains(Object obj)
String explain(Object obj)
boolean isOptional()
boolean isJSONPrimitive()
boolean isJSONArray()
boolean isJSONObject()
boolean isJSONPointer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||