Package | Description |
---|---|
com.sdicons.json.serializer |
Serializing Java instances to JSON domain objects together with all
type info and structure so that we can restore the Java model in its
original form.
|
com.sdicons.json.serializer.helper |
All specialized serializers that know how to serialize the instances for
specific classes.
|
com.sdicons.json.validator |
Validating a JSON model with validation rules.
|
com.sdicons.json.validator.predicates |
The building blocks to create validation expressions.
|
Modifier and Type | Method and Description |
---|---|
JSONObject |
JSONSerializer.marshal(boolean aValue)
Convert a boolean primitive to JSON.
|
JSONObject |
JSONSerializer.marshal(byte aValue)
Convert a byte primitive to JSON.
|
JSONObject |
JSONSerializer.marshal(char aValue)
Convert a char primitive to JSON.
|
JSONObject |
JSONSerializer.marshal(double aValue)
Convert a double primitive to JSON.
|
JSONObject |
JSONSerializer.marshal(float aValue)
Convert a float primitive to JSON.
|
JSONObject |
JSONSerializer.marshal(int aValue)
Convert an int primitive to JSON.
|
JSONObject |
JSONSerializer.marshal(long aValue)
Convert a long primitive to JSON.
|
JSONObject |
JSONSerializer.marshal(Object aObj)
Convert a Java object to JSON.
|
JSONObject |
JSONSerializer.marshal(short aValue)
Convert a short primitive to JSON.
|
JSONObject |
JSONSerializer.marshalImpl(Object aObj,
HashMap<Object,Object> aPool) |
Modifier and Type | Method and Description |
---|---|
static void |
JSONSerializer.requireStringAttribute(JSONObject aElement,
String anAttribute) |
SerializerValue |
JSONSerializer.unmarshal(JSONObject aElement)
Convert a JSON representation to the Java primitive or reference.
|
Object |
JSONSerializer.unmarshalImpl(JSONObject aElement,
HashMap<Object,Object> aObjectPool) |
Modifier and Type | Method and Description |
---|---|
Object |
StringSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ShortSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ObjectSerializerProps.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ObjectSerializerMeta.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ObjectSerializerFields.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
MapSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
LongSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
IntegerSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
FontSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
FloatSerializer.toJava(JSONObject aObjectValue,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
EnumSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
DoubleSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
DateSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ColorSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
CollectionSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ClassSerializer.toJava(JSONObject jsonObj,
JSONSerializer serializer,
HashMap<Object,Object> aPool)
Convert JSON representation into an instance of a class.
|
Object |
CharacterSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ByteSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
BooleanSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
BigIntegerSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
BigDecimalSerializer.toJava(JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Object |
ArraySerializer.toJava(JSONObject jsonObject,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
ObjectSerializerProps.toJSON(Object aObj,
JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
ObjectSerializerMeta.toJSON(Object aObj,
JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
ObjectSerializerFields.toJSON(Object aObj,
JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
MapSerializer.toJSON(Object aObj,
JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
FontSerializer.toJSON(Object aObj,
JSONObject aParent,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
DateSerializer.toJSON(Object aObj,
JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
ColorSerializer.toJSON(Object aObj,
JSONObject aParent,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
CollectionSerializer.toJSON(Object aObj,
JSONObject aObjectElement,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
ClassSerializer.toJSON(Object javaObj,
JSONObject jsonContainer,
JSONSerializer serializer,
HashMap<Object,Object> aPool)
Convert an element to JSON.
|
void |
ArraySerializer.toJSON(Object javaArray,
JSONObject jsonContainer,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
void |
AbstractSerializer.toJSON(Object javaObj,
JSONObject jsonContainer,
JSONSerializer serializer,
HashMap<Object,Object> aPool) |
Modifier and Type | Method and Description |
---|---|
static JSONObject |
ValidatorUtil.createRule(String name,
String type) |
Modifier and Type | Method and Description |
---|---|
static void |
ValidatorUtil.requiresAttribute(JSONObject aTarget,
String aAttrib,
Class<?> aValueType) |
Constructor and Description |
---|
JSONValidator(JSONObject aValidation)
Construct the validator based on the JSON description.
|
Copyright © 2012. All Rights Reserved.