| Package | Description |
|---|---|
| net.lecousin.framework.io.serialization |
Serialization and deserialization framework.
|
| net.lecousin.framework.io.serialization.annotations |
Annotations used for serialization and deserialization, to customize the process.
|
| net.lecousin.framework.io.serialization.rules |
Serialization rules to customize serialization and deserialization.
|
| net.lecousin.framework.xml.serialization |
XML serialization and deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
static List<SerializationRule> |
TypeAnnotationToRule.addRules(Class<?> clazz,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
static List<SerializationRule> |
AttributeAnnotationToRuleOnAttribute.addRules(SerializationClass.Attribute attr,
boolean onGet,
List<SerializationRule> rules)
Search for annotations on the given attributes, and try to convert them into
serialization rules.
|
static List<SerializationRule> |
AttributeAnnotationToRuleOnType.addRules(SerializationClass type,
boolean onGet,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
static List<SerializationRule> |
TypeAnnotationToRule.addRules(SerializationClass type,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AttributeAnnotationToRuleOnType.addRuleFromAttribute(SerializationClass.Attribute attr,
Annotation a,
AttributeAnnotationToRuleOnType toRule,
List<SerializationRule> rules,
List<SerializationRule> newRules)
Create a rule from annotation and add it to the new rules.
|
static void |
AttributeAnnotationToRuleOnType.addRuleFromAttribute(SerializationClass.Attribute attr,
Annotation a,
AttributeAnnotationToRuleOnType toRule,
List<SerializationRule> rules,
List<SerializationRule> newRules)
Create a rule from annotation and add it to the new rules.
|
static List<SerializationRule> |
TypeAnnotationToRule.addRules(Class<?> clazz,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
static List<SerializationRule> |
AttributeAnnotationToRuleOnAttribute.addRules(SerializationClass.Attribute attr,
boolean onGet,
List<SerializationRule> rules)
Search for annotations on the given attributes, and try to convert them into
serialization rules.
|
static List<SerializationRule> |
AttributeAnnotationToRuleOnType.addRules(SerializationClass type,
boolean onGet,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
static List<SerializationRule> |
TypeAnnotationToRule.addRules(SerializationClass type,
List<SerializationRule> rules)
Search for annotations on the given type, and try to convert them into
serialization rules.
|
static void |
TypeAnnotationToRule.processAnnotations(Class<?> clazz,
List<SerializationRule> newRules,
List<SerializationRule> rules)
Convert annotations into rules.
|
static void |
TypeAnnotationToRule.processAnnotations(Class<?> clazz,
List<SerializationRule> newRules,
List<SerializationRule> rules)
Convert annotations into rules.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAttributeInstantiation
Base class specifying a rule on how to instantiate an attribute.
|
class |
AddAttributeToType
Add a custom attribute to a class.
|
class |
AttributeInstantiation
Base class specifying a rule on how to instantiate an attribute by providing a factory which
will be given the context as parameter to instantiate the attribute.
|
class |
CustomAttributeSerializer
Rule to customize the serialization of an attribute.
|
class |
CustomTypeSerializer
Rule that specifies a custom serializer.
|
class |
IgnoreAttribute
This rule ignore a specific attribute or all attributes in a class.
|
class |
MergeTypeAttributes
Merge attributes of a class into the class of a specified attribute.
|
class |
RenameAttribute
This rule change the name of a specific attribute in a class.
|
class |
TypeFactory<T>
A factory to instantiate a specific type during deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TypeFactory.isEquivalent(SerializationRule rule) |
boolean |
SerializationRule.isEquivalent(SerializationRule rule)
Check if this rule is equivalent to the given rule.
|
boolean |
RenameAttribute.isEquivalent(SerializationRule rule) |
boolean |
MergeTypeAttributes.isEquivalent(SerializationRule rule) |
boolean |
IgnoreAttribute.isEquivalent(SerializationRule rule) |
boolean |
CustomTypeSerializer.isEquivalent(SerializationRule rule) |
boolean |
CustomAttributeSerializer.isEquivalent(SerializationRule rule) |
boolean |
AttributeInstantiation.isEquivalent(SerializationRule rule) |
boolean |
AddAttributeToType.isEquivalent(SerializationRule rule) |
boolean |
AbstractAttributeInstantiation.isEquivalent(SerializationRule rule) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TypeFactory.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
SerializationRule.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing)
Apply the rule to the given type, knowing the given context.
|
boolean |
RenameAttribute.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
MergeTypeAttributes.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
IgnoreAttribute.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
CustomTypeSerializer.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
CustomAttributeSerializer.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
AttributeInstantiation.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
AddAttributeToType.apply(SerializationClass sc,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
boolean |
AbstractAttributeInstantiation.apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing) |
Copyright © 2019. All rights reserved.