All Methods Static Methods Instance Methods Abstract Methods Concrete Methods
| Modifier and Type |
Method and Description |
protected List<SerializationRule> |
addRulesForAttribute(SerializationClass.Attribute a,
List<SerializationRule> currentList) |
protected List<SerializationRule> |
addRulesForType(SerializationClass type,
List<SerializationRule> currentList) |
static void |
convertBigDecimalValue(BigDecimal n,
Class<?> type,
AsyncWork<Number,Exception> result)
Convert a BigDecimal into the specified type.
|
static Number |
convertStringToInteger(Class<?> type,
String str,
Class<? extends IntegerUnit> targetUnit)
Convert a string into an integer, optionally doing convertion into the targetUnit if any.
|
<T> AsyncWork<T,Exception> |
deserialize(TypeDefinition type,
IO.Readable input,
List<SerializationRule> rules)
Deserialize an object/value of the given type from the given input.
|
protected AsyncWork<Boolean,Exception> |
deserializeBooleanAttributeValue(SerializationContext.AttributeContext context,
boolean nullable) |
protected abstract AsyncWork<Boolean,Exception> |
deserializeBooleanValue(boolean nullable) |
protected AsyncWork<Character,Exception> |
deserializeCharacterAttributeValue(SerializationContext.AttributeContext context,
boolean nullable)
By default, deserialize a string and get the first character.
|
protected AsyncWork<Character,Exception> |
deserializeCharacterValue(boolean nullable)
By default, deserialize a string and get the first character.
|
protected AsyncWork<Object,Exception> |
deserializeCollectionAttributeValue(SerializationContext.AttributeContext context,
String path,
List<SerializationRule> rules) |
protected AsyncWork<Pair<Object,Boolean>,Exception> |
deserializeCollectionAttributeValueElement(SerializationContext.CollectionContext context,
int elementIndex,
String colPath,
List<SerializationRule> rules)
Return the element with true if an element is found, or null with false if the end of the collection has been reached.
|
protected AsyncWork<Object,Exception> |
deserializeCollectionValue(SerializationContext context,
TypeDefinition type,
String path,
List<SerializationRule> rules) |
protected abstract AsyncWork<Pair<Object,Boolean>,Exception> |
deserializeCollectionValueElement(SerializationContext.CollectionContext context,
int elementIndex,
String colPath,
List<SerializationRule> rules)
Return the element (possibly null) with true if an element is found, or null with false if the end of the collection has been reached.
|
protected AsyncWork<InputStream,Exception> |
deserializeInputStreamAttributeValue(SerializationContext.AttributeContext context,
List<SerializationRule> rules) |
protected AsyncWork<InputStream,Exception> |
deserializeInputStreamValue(SerializationContext context,
List<SerializationRule> rules) |
protected abstract AsyncWork<IO.Readable,Exception> |
deserializeIOReadableAttributeValue(SerializationContext.AttributeContext context,
List<SerializationRule> rules) |
protected abstract AsyncWork<IO.Readable,Exception> |
deserializeIOReadableValue(SerializationContext context,
List<SerializationRule> rules) |
protected AsyncWork<Map<?,?>,Exception> |
deserializeMapAttributeValue(SerializationContext.AttributeContext context,
String path,
List<SerializationRule> rules) |
protected AsyncWork<Map<?,?>,Exception> |
deserializeMapValue(SerializationContext context,
TypeDefinition typeDef,
String path,
List<SerializationRule> rules) |
protected void |
deserializeNextCollectionAttributeValueElement(SerializationContext.CollectionContext context,
int elementIndex,
String colPath,
List<SerializationRule> rules,
AsyncWork<Object,Exception> result) |
protected void |
deserializeNextCollectionValueElement(SerializationContext.CollectionContext context,
int elementIndex,
String colPath,
List<SerializationRule> rules,
AsyncWork<Object,Exception> result) |
protected void |
deserializeNextObjectAttribute(SerializationContext.ObjectContext context,
String path,
List<SerializationRule> rules,
AsyncWork<Object,Exception> result) |
protected AsyncWork<? extends Number,Exception> |
deserializeNumericAttributeValue(SerializationContext.AttributeContext context,
boolean nullable) |
protected abstract AsyncWork<? extends Number,Exception> |
deserializeNumericValue(Class<?> type,
boolean nullable,
Class<? extends IntegerUnit> targetUnit) |
protected abstract AsyncWork<String,Exception> |
deserializeObjectAttributeName(SerializationContext.ObjectContext context)
Return the name of the attribute read, or null if the object is closed.
|
protected AsyncWork<Object,Exception> |
deserializeObjectAttributeObjectValue(SerializationContext.AttributeContext context,
String path,
List<SerializationRule> rules) |
protected void |
deserializeObjectAttributes(SerializationContext parentContext,
Object instance,
TypeDefinition typeDef,
String path,
List<SerializationRule> rules,
AsyncWork<Object,Exception> result) |
protected AsyncWork<?,Exception> |
deserializeObjectAttributeValue(SerializationContext.AttributeContext context,
String path,
List<SerializationRule> rules) |
protected ISynchronizationPoint<Exception> |
deserializeObjectAttributeValue(SerializationContext.ObjectContext context,
SerializationClass.Attribute a,
String path,
List<SerializationRule> rules) |
protected <T> AsyncWork<T,Exception> |
deserializeObjectValue(SerializationContext context,
TypeDefinition type,
String path,
List<SerializationRule> rules) |
protected AsyncWork<? extends CharSequence,Exception> |
deserializeStringAttributeValue(SerializationContext.AttributeContext context) |
protected abstract AsyncWork<? extends CharSequence,Exception> |
deserializeStringValue() |
<T> AsyncWork<T,Exception> |
deserializeValue(SerializationContext context,
TypeDefinition type,
String path,
List<SerializationRule> rules)
Deserialize a value.
|
protected abstract ISynchronizationPoint<Exception> |
finalizeDeserialization() |
protected static Map<?,?> |
getMap(ArrayList<SerializationUtil.MapEntry> entries,
TypeDefinition type,
SerializationContext context,
List<SerializationRule> rules) |
protected abstract ISynchronizationPoint<Exception> |
initializeDeserialization(IO.Readable input) |
protected AsyncWork<Boolean,Exception> |
startCollectionAttributeValue(SerializationContext.AttributeContext context)
Return true if the start has been found, false if null has been found, or an error.
|
protected abstract AsyncWork<Boolean,Exception> |
startCollectionValue()
Return true if the start has been found, false if null has been found, or an error.
|
protected abstract AsyncWork<Object,Exception> |
startObjectValue(SerializationContext context,
TypeDefinition type,
List<SerializationRule> rules)
Instantiate the type if the start of an object has been found, null if null has been found, or an error.
|
protected static Object |
toArray(SerializationContext.CollectionContext context) |