| Modifier and Type | Method and Description |
|---|---|
static JSONValue |
JSONMapper.toJSON(Object aPojo)
Map a POJO to the JSON representation.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
JSONMapper.toJava(JSONValue aValue)
Map a JSON representation to a Java object.
|
static Object |
JSONMapper.toJava(JSONValue aValue,
Class aPojoClass)
Map a JSON representation to a Java object.
|
static Object |
JSONMapper.toJava(JSONValue aValue,
ParameterizedType aGenericType)
Map a JSON representation to a Java object.
|
| Modifier and Type | Method and Description |
|---|---|
JSONValue |
SimpleMapperHelper.toJSON(Object aPojo) |
JSONValue |
ComplexMapperHelper.toJSON(Object aPojo) |
| Modifier and Type | Method and Description |
|---|---|
Object |
SimpleMapperHelper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
ComplexMapperHelper.toJava(JSONValue aValue,
Class aRequestedClass,
Type[] aTypes) |
| Modifier and Type | Method and Description |
|---|---|
JSONValue |
ByteMapper.toJSON(Object aPojo) |
JSONValue |
DateMapper.toJSON(Object aPojo) |
JSONValue |
CollectionMapper.toJSON(Object aPojo) |
JSONValue |
DoubleMapper.toJSON(Object aPojo) |
JSONValue |
ObjectMapper.toJSON(Object aPojo) |
JSONValue |
ShortMapper.toJSON(Object aPojo) |
JSONValue |
FloatMapper.toJSON(Object aPojo) |
JSONValue |
MapMapper.toJSON(Object aPojo) |
JSONValue |
BigIntegerMapper.toJSON(Object aPojo) |
JSONValue |
ArrayMapper.toJSON(Object aObj) |
JSONValue |
BigDecimalMapper.toJSON(Object aPojo) |
JSONValue |
LongMapper.toJSON(Object aPojo) |
JSONValue |
BooleanMapper.toJSON(Object aPojo) |
JSONValue |
IntegerMapper.toJSON(Object aPojo) |
JSONValue |
ObjectMapperDirect.toJSON(Object aPojo) |
JSONValue |
AbstractMapper.toJSON(Object aPojo) |
| Modifier and Type | Method and Description |
|---|---|
Object |
ByteMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
DateMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
EnumMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
CollectionMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
DoubleMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
ObjectMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
ShortMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
FloatMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
CharacterMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
MapMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
BigIntegerMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
StringMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
ArrayMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
BigDecimalMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
LongMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
BooleanMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
IntegerMapper.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
ObjectMapperDirect.toJava(JSONValue aValue,
Class aRequestedClass) |
Object |
CollectionMapper.toJava(JSONValue aValue,
Class aRawClass,
Type[] aTypes) |
Object |
MapMapper.toJava(JSONValue aValue,
Class aRawClass,
Type[] aTypes) |
| Modifier and Type | Class and Description |
|---|---|
class |
JSONArray
Represents a JSON array (list), an ordered list of values ...
|
class |
JSONBoolean
Represents a JSON boolean value.
|
class |
JSONComplex
Superclass of JSON complex types, namely
JSONArray and JSONObject. |
class |
JSONDecimal
Represents a JSON float.
|
class |
JSONInteger
Represents a JSON int.
|
class |
JSONNull
Represents a JSON null value.
|
class |
JSONNumber
The parent class of numerical types, being
JSONInteger and JSONDecimal. |
class |
JSONObject
Representation of a JSON object, a collection (unordered) of name/value pairs.
|
class |
JSONSimple
|
class |
JSONString
Represents a JSON delimited string.
|
| Modifier and Type | Method and Description |
|---|---|
static JSONValue |
JSONValue.decorate(Object anObject)
This method is the reverse of a strip, it converts a construction of Java objects to a JSON decorated
composition.
|
JSONValue |
JSONArray.get(int i)
Utility method, get an element at a specific position in the list.
|
JSONValue |
JSONObject.get(String aKey)
Utility method, get the element with specified name without having to
retreive the map first using getValue().
|
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,JSONValue> |
JSONObject.getValue() |
List<JSONValue> |
JSONArray.getValue() |
| Modifier and Type | Method and Description |
|---|---|
JSONValue |
JSONParser.nextValue()
Read the next JSON structure from the stream and convert it into a
Java model.
|
| Modifier and Type | Method and Description |
|---|---|
JSONValue |
JSONParserAntlr.atomic(String aStreamName) |
JSONValue |
JSONParserAntlr.value(String aStreamName) |
| Modifier and Type | Method and Description |
|---|---|
JSONValue |
ValidationException.getCulprit() |
| Modifier and Type | Method and Description |
|---|---|
void |
JSONValidator.validate(JSONValue aValue)
Validate a JSON value according to the rules described in the
validator rules.
|
void |
Validator.validate(JSONValue aValue)
Validate a JSONValue.
|
| Constructor and Description |
|---|
ValidationException(JSONValue aCulprit,
String aRule) |
ValidationException(String aComments,
JSONValue aCulprit,
String aRule) |
| Modifier and Type | Method and Description |
|---|---|
static Validator |
ValidatorUtil.buildValidator(JSONValue aVal) |
static Validator |
ValidatorUtil.buildValidator(JSONValue aVal,
HashMap<String,Validator> aRuleset) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
Predicate.fail(JSONValue aValue) |
protected void |
Predicate.fail(String aMessage,
JSONValue aValue) |
void |
Complex.validate(JSONValue aValue) |
void |
Bool.validate(JSONValue aValue) |
void |
Not.validate(JSONValue aValue) |
void |
Array.validate(JSONValue aValue) |
void |
Length.validate(JSONValue aValue) |
void |
CustomPredicate.validate(JSONValue aValue) |
void |
Or.validate(JSONValue aValue) |
void |
False.validate(JSONValue aValue) |
void |
Str.validate(JSONValue aValue) |
void |
Properties.validate(JSONValue aValue) |
void |
And.validate(JSONValue aValue) |
void |
Regexp.validate(JSONValue aValue) |
void |
Decimal.validate(JSONValue aValue) |
void |
Int.validate(JSONValue aValue) |
void |
Switch.validate(JSONValue aValue) |
void |
Nr.validate(JSONValue aValue) |
void |
Object.validate(JSONValue aValue) |
void |
Enumeration.validate(JSONValue aValue) |
void |
Content.validate(JSONValue aValue) |
void |
Simple.validate(JSONValue aValue) |
void |
Ref.validate(JSONValue aValue) |
void |
Range.validate(JSONValue aValue) |
void |
Null.validate(JSONValue aValue) |
void |
Let.validate(JSONValue aValue) |
void |
True.validate(JSONValue aValue) |
Copyright © 2013. All Rights Reserved.