public class CustomAttributeSerializer extends Object implements SerializationRule
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomAttributeSerializer.CustomAttribute
Used to override an attribute with a custom serializer.
|
| Constructor and Description |
|---|
CustomAttributeSerializer(Class<?> type,
String name,
CustomSerializer serializer)
Constructor.
|
CustomAttributeSerializer(SerializationContextPattern.OnClassAttribute pattern,
CustomSerializer serializer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing)
Apply the rule to the given type, knowing the given context.
|
boolean |
isEquivalent(SerializationRule rule)
Check if this rule is equivalent to the given rule.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanInstantiate, convertSerializationValue, getDeserializationType, getDeserializationValue, instantiate, onInstantiationpublic CustomAttributeSerializer(SerializationContextPattern.OnClassAttribute pattern, CustomSerializer serializer)
public CustomAttributeSerializer(Class<?> type, String name, CustomSerializer serializer)
public boolean apply(SerializationClass type, SerializationContext context, List<SerializationRule> rules, boolean serializing)
SerializationRuleapply in interface SerializationRulepublic boolean isEquivalent(SerializationRule rule)
SerializationRuleisEquivalent in interface SerializationRuleCopyright © 2019. All rights reserved.